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.

Bug 59830 - NPE when exiting debugger
Summary: NPE when exiting debugger
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 12:43 UTC by Martin Entlicher
Modified: 2005-09-05 09:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The NPE. (3.13 KB, text/plain)
2005-06-10 12:44 UTC, Martin Entlicher
Details
Stack trace of NPE from tests on Solaris Sparc, JDK1.4.2_08. (1.04 KB, text/plain)
2005-08-09 08:48 UTC, Jiri Skrivanek
Details
NegativeArraySizeException thrown when exiting debugger - maybe related (1.11 KB, text/plain)
2005-08-12 07:59 UTC, Jiri Skrivanek
Details
NPE stack trace (1.05 KB, text/plain)
2005-08-17 10:10 UTC, Jiri Skrivanek
Details
exc stack trace (1.14 KB, text/plain)
2005-08-17 22:01 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2005-06-10 12:43:42 UTC
Occasionally a NPE can be thrown when exiting debugger.
Comment 1 Martin Entlicher 2005-06-10 12:44:22 UTC
Created attachment 22605 [details]
The NPE.
Comment 2 Jiri Skrivanek 2005-08-09 08:47:52 UTC
Now it happens quite often in UI commit validation tests. That's why I raising
priority. Please, evaluate.
Comment 3 Jiri Skrivanek 2005-08-09 08:48:44 UTC
Created attachment 23588 [details]
Stack trace of NPE from tests on Solaris Sparc, JDK1.4.2_08.
Comment 4 Jiri Skrivanek 2005-08-12 07:59:32 UTC
Created attachment 23738 [details]
NegativeArraySizeException thrown when exiting debugger - maybe related
Comment 5 Martin Entlicher 2005-08-15 11:20:17 UTC
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...
Comment 6 Martin Entlicher 2005-08-15 15:52:12 UTC
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.
Comment 7 Martin Entlicher 2005-08-15 18:13:41 UTC
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.
Comment 8 Jiri Skrivanek 2005-08-17 10:10:14 UTC
NPE appeared again in build 20050817-0730.
Comment 9 Jiri Skrivanek 2005-08-17 10:10:45 UTC
Created attachment 23975 [details]
NPE stack trace
Comment 10 Milan Kubec 2005-08-17 22:01:10 UTC
I got similar exception that might be related. If not I will file new issue for it.
Comment 11 Milan Kubec 2005-08-17 22:01:56 UTC
Created attachment 24011 [details]
exc stack trace
Comment 12 Martin Entlicher 2005-08-18 13:44:18 UTC
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
Comment 13 Jiri Skrivanek 2005-08-29 11:03:27 UTC
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