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.
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
Created attachment 8163 [details] Stack trace genereated by test case in description.
Created attachment 8164 [details] ide.log from automated test run.
lowering priority to P2 I cannot reproduce manually in [nb_dev](20021204). Can you reproduce it manually ?
It seems it is race condition. I will take this issue.
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
Verified in 200212090100.
*** Issue 29666 has been marked as a duplicate of this issue. ***
*** Issue 30043 has been marked as a duplicate of this issue. ***