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

Fungijl
  • 153
  • 1
  • 1
  • 7

4 Answers4

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

John Conde
  • 217,595
  • 99
  • 455
  • 496
Holger
  • 346
  • 3
  • 2
  • 1
    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). – Fungijl Aug 14 '12 at 11:54
  • 2
    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. – Younes Dec 04 '13 at 09:50
2

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

Fenil
  • 1,194
  • 10
  • 11
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.

javaPlease42
  • 4,699
  • 7
  • 36
  • 65
0

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

BaptisteL
  • 490
  • 6
  • 15