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.
Occasionally a NPE can be thrown when exiting debugger.
Created attachment 22605 [details] The NPE.
Now it happens quite often in UI commit validation tests. That's why I raising priority. Please, evaluate.
Created attachment 23588 [details] Stack trace of NPE from tests on Solaris Sparc, JDK1.4.2_08.
Created attachment 23738 [details] NegativeArraySizeException thrown when exiting debugger - maybe related
The last exception is caused by missing synchronization in DebuggerManager class. Many methods in that class need to be fixed to have it thread safe...
DebuggerManager should be thread-safe now: /cvs/debuggercore/api/src/org/netbeans/api/debugger/DebuggerManager.java,v <-- DebuggerManager.java new revision: 1.21; previous revision: 1.20 Therefore the NegativeArraySizeException should not occur any more.
I've tried to kill the debugger many times, but I can not reproduce the NullPointerException at DebuggerOutput.propertyChange(DebuggerOutput.java:114) or DebuggerOutput.print(DebuggerOutput.java:336) any more. From the code it's not apparent what was wrong.
NPE appeared again in build 20050817-0730.
Created attachment 23975 [details] NPE stack trace
I got similar exception that might be related. If not I will file new issue for it.
Created attachment 24011 [details] exc stack trace
Hopefully finally fixed. Synchronization added: /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/DebuggerOutput.java,v <-- DebuggerOutput.java new revision: 1.25; previous revision: 1.24
Seems to be fixed by this commit. /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/BreakpointOutput.java,v <-- BreakpointOutput.java new revision: 1.16; previous revision: 1.15