JDI Event Dispatch nullpointerexception
Pregunta
When I try to debug on my device I sometimes get an error and the debugger doesn't stop on any breakpoint. Also, the application doesn't even start properly, it just freezes at kinda black screen with the app icon and name at the top.
The error is a popup in eclipse with title "'JDI Event Dispatch' has encountered a problem. An internal error occured during: 'JDI Event Dispatch'." I have an ok and details button, when I press the latter I get the following details: "An internal error occurred during: "JDI Event Dispatch". java.lang.NullPointerException"
I work in Eclipse Java EE Helios Service Release 2. Any help would be appreciated
Solución
Try increasing the debugger timeout in eclipse menu Window > Preferences > Java > Debug
. That worked for me in a similar situation.
Otherwise you could try to get a clue on the problem cause by looking at the error log entries (Window > Show View > Others > Error Log
).
Otros consejos
Try Removing all the breakpoint. It happens if you have too many breakpoints.
It happened to me because I had a conditional breakpoint with a boolean test too long in terms of number of characters.