facebook

Java Breakpoint error with JBoss 3.2.2 in Debug mode

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #201647 Reply

    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

    #201682 Reply

    Scott Anderson
    Participant

    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

    #201746 Reply

    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

    #205938 Reply

    tfaqir
    Member

    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

    #205947 Reply

    Riyad Kalla
    Member

    Tahir,
    By default Ant will compile source files with debugging turned off, make sure you set the “debug=true” in the javac task.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Java Breakpoint error with JBoss 3.2.2 in Debug mode

You must be logged in to post in the forum log in