I am trying to debug a problem in my Java application that does not cause errors, exceptions, or even break the application (it seems that the crash is happening in a separate thread).
The problem is the library function call (this is JAXBContext.newInstance(String) if that matters). The program will reach the line immediately before the call, but not immediately after it. My catch blocks are not entered and the program continues to run.
The problem occurs when you try to map an XML response to a web request that comes through Struts. The request is processed, and the code must marshal the response object. The client immediately receives a response (so the code does not seem to hang in a loop), but it is simply empty.
I set a breakpoint just before the problematic line, but the debugger just runs through it, I don’t know why.
I use eclipse and the application runs inside the OSGi container (Apache Felix), which was launched using -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y . Inside Eclipse, I use the Debug settings for the “Remote Java Application” to connect the debugger.
What are the methods to solve this problem?
java debugging eclipse remote-debugging
Hanno Fietz Jun 24 '09 at 9:36 2009-06-24 09:36
source share