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 29274 - NPE from org.netbeans.core.windows.layers.ModeData
Summary: NPE from org.netbeans.core.windows.layers.ModeData
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 29666 30043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-04 11:53 UTC by Jiri Skrivanek
Modified: 2008-12-23 09:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace genereated by test case in description. (4.95 KB, text/plain)
2002-12-04 11:54 UTC, Jiri Skrivanek
Details
ide.log from automated test run. (40.09 KB, text/plain)
2002-12-04 11:55 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2002-12-04 11:53:47 UTC
NPE is thrown from
org.netbeans.core.windows.layers.ModeData$PropertyHandler.run(ModeData.java:1754)
and it causes further problems with storing system
settings like:

org.xml.sax.SAXParseException: Document root
element is missing.
I saw it for the first time in build 200212020100.
In build 200211290100 it was OK.
See attached stack traces.

It occurs in automated tests but I am also able to
reproduce it in 200212040100 build this way:

- run IDE
- create a new Java Classes -> Main
- type anything and toggle breakpoint there
- run debugger
- after a while debugger stops at the breakpoint
(it finishes because of bug 29269)
- try to switch tabs in the output window and
after while it throws exceptions
Comment 1 Jiri Skrivanek 2002-12-04 11:54:44 UTC
Created attachment 8163 [details]
Stack trace genereated by test case in description.
Comment 2 Jiri Skrivanek 2002-12-04 11:55:49 UTC
Created attachment 8164 [details]
ide.log from automated test run.
Comment 3 Marian Mirilovic 2002-12-04 12:08:47 UTC
lowering priority to P2

I cannot reproduce manually in [nb_dev](20021204).
Can you reproduce it manually ?
Comment 4 mslama 2002-12-04 14:38:35 UTC
It seems it is race condition. I will take this issue.
Comment 5 mslama 2002-12-05 11:23:18 UTC
Fixed in main trunk. Output buffer is now local variable to make code
thread safe. The same problem fixed in TCRefImpl, WorkspaceData,
WindowManagerData.

Modified:
core/src/org/netbeans/core/windows/layers/ModeData.java r.1.103
core/src/org/netbeans/core/windows/layers/TCRefImpl.java r.1.49
core/src/org/netbeans/core/windows/layers/WindowManagerData.java r.1.50
core/src/org/netbeans/core/windows/layers/WorkspaceData.java r.1.61
Comment 6 Jiri Skrivanek 2002-12-09 10:58:31 UTC
Verified in 200212090100.
Comment 7 mslama 2003-01-03 16:01:00 UTC
*** Issue 29666 has been marked as a duplicate of this issue. ***
Comment 8 mslama 2003-01-14 12:11:39 UTC
*** Issue 30043 has been marked as a duplicate of this issue. ***
Comment 9 Jan Chalupa 2003-11-03 17:17:25 UTC
*** Issue 29666 has been marked as a duplicate of this issue. ***