- This topic has 4 replies, 4 voices, and was last updated 20 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
KennethAitkenMemberI am running MyEclipse 2.6.4 on Eclipse 2.1.2 using JRE 1.4.2_03.
When I run JBoss 3.2.2 in debug mode in MyEclipse and set breakpoints in certain places in original MyEclipse-created entity beans (e.g. a CustomerBean) and deploy the Bean in Exploded mode, I get the following error:
<<Title bar: Java Breakpoint
(severe error icon – red circle with white cross)
Attempting to install a breakpoint in the type com.mybean.HelloEntityBean$Proxy that has no line number arttributes. The breakpoint cannot be installed. Class files must be generated with the line number attributes.
Reason:
Absent Line Number Information>>And yes, the setting under Compiler preferences is ticked:
“Add line number attributes to generated class files”It is annoying to be unable to set breakpoints in deployed beans, so I would very much appreciate support or information about it.
Kenneth
Scott AndersonParticipantKenneth,
This is typically caused when compiled code does not have debug attributes. How are you deploying your project? Using our exploded deployer? Are you doing any precompilation for JBoss using any of its tools or an Ant script? Can you set a breakpoint and debug in any other Java classes (non-EJB) in the same application? Does that work? Can you please post all the information we request in the Posting Guidelines thread to help us run this down?
–Scott
MyEclipse Support
KennethAitkenMemberI use your exploded deployer. I don’t do any precompilation. There is no problem with breakpoints in non-EJB classes. The error seems to occur when I deploy the project or redeploy it and then add new lines of code to deployed Entity EJBs, while JBoss is running in debug mode (I have not tested Session EJBs).
I also sometimes get the errors after adding new lines of code:
Hot Code Replace Failed – Delete Method Not Implemented (or Add Method Not Implemented).Kenneth
tfaqirMemberHi All
I have the same issues but with Weblogic Remote debug.
I compile and deployed my code from Ant. I have to use ant since it generates company specific shell scripts for launching the proxy and app weblogic servers.
Thanks
Tahir
Riyad KallaMemberTahir,
By default Ant will compile source files with debugging turned off, make sure you set the “debug=true” in the javac task. -
AuthorPosts