This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After one NullPointerException occurs, NB cannot step anymore. F8 results in continue instead of step. This happens in NB 4.1 and 5.0 with JDK 5.0_04 and 5.0_05. Repro: String accs; String[] accArray; for(int n = 0; n < 20; n++) { try { accs = null; accArray = accs.split(",", -1); } catch(Throwable t) { t.printStackTrace(); } finally { } } Put this in a main method, set breakpoint on line "accs = null;" and start in debugger. First time it stops, you can do one step, then the NPE happens and then you can't step anymore (you cannot step into the catch and you cannot step from the breakpoint to the next line). F8 always continues the program.
Reproduced. We'll check the behavior of JDI to see where the problem really is...
I think the root cause may be the same as in Issue #50315.
I am able to reproduce it with Java 1.4.2_07. This issue is caused by some bug in JDI, which is already fixed in JDK 1.6 (not reproducible in the test-case with java 1.6).
Sorry, I have to reopen that issue, even if it is a JDK bug. You cannot leave NB users without a workaround or something until JDK 6.0! As far as I know, Eclipse does not suffer from the JDK bug. That does not mean, that it is not possible that NB does, but it means, there should be some solution other than waiting for JDK 6.0 for NB users. Otherwise this just adds to the reasons to choose Eclipse over NB for some people.
The same problem in Eclipse 3.0 ...
You're right. Same in Eclipse 3.1.0. No workaround possible in NB?
Probably caused by JDI issue #6181784. To be sure I filed a new JDK bug with the repro above for duplicate--verification. I am afraid there is no workaround on the client side. NB is JDI client and fully depends on JDI step events. After NPE occurs in debuggee step requests are ignored -> step request resumes VM The issue is also reproducible in Eclipse and other debuggers.
Maybe you can convince the JDK folks to put the fix not only in JDK 6.0, but also in JDK 5.0_06 or _07?
I will try ... ;-)
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.