MyEclipse: Java Breakpoint error with JBoss 3.2.2 in Debug mode

KennethAitken - Jan 09, 2004 - 04:41 PM
Post subject: Java Breakpoint error with JBoss 3.2.2 in Debug mode
I 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
support-scott - Jan 12, 2004 - 05:20 AM
Post subject:
Kenneth,

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
KennethAitken - Jan 13, 2004 - 09:02 AM
Post subject:
I 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
tfaqir - Apr 13, 2004 - 08:20 PM
Post subject: eclipse debug "Absent line number information"
Hi 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
support-rkalla - Apr 13, 2004 - 09:52 PM
Post subject:
Tahir,
By default Ant will compile source files with debugging turned off, make sure you set the "debug=true" in the javac task.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits