JDI Event Dispatch nullpointerexception
Asked Answered
S

4

15

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

Specify answered 18/7, 2012 at 16:36 Comment(0)
P
33

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).

Paulo answered 8/8, 2012 at 9:35 Comment(2)
Your first option makes it happen less frequently, which is great already. Now it only happens after having eclipse open for a long time (after 6-7 hours of working).Specify
The solution for me was to remove all existing breakpoint before starting the debugger. Thank you to Holger/Conde for the tip related to error log. That has given me a guess on the origin of the issue in my case.Stall
B
2

Try Removing all the breakpoint. It happens if you have too many breakpoints.

Broadbrim answered 6/1, 2015 at 13:40 Comment(0)
F
0

I got this error on Eclipse Kepler too while trying to remote debug.

enter image description here

I did not have to do anything special to get past this error. All I did was launch debug mode again.

Fumikofumitory answered 2/3, 2016 at 20:11 Comment(0)
A
0

It happened to me because I had a conditional breakpoint with a boolean test too long in terms of number of characters.

Attenuator answered 2/5, 2018 at 12:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.