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.
I imported project from NetBeans 321 and after opening it I got IllegalArgumentException and no windows were restored. The project is saved on Editing WS and 4 different files are opened in Editor. Exc is attached.
Created attachment 5948 [details] exception stack trace
Increasing priority since after this exception any other project cannot be opened.
Descreasing back to P3, because the problem was caused by another exception thrown too.
exception is thrown from core/winsys
x
The problem is in DefaultConainerImpl the field topComps is not synchronized enough, and accessing the field from threads (note from stack trace it is accessed not from AWT ) leads to race condition, what causes this bug. Will try to synchronize the tomComps variable, hopefully it won't cause any big pref regression.
Fixed in [trunk] Fix: core/../windows/frames/DefaultContainerImpl.java [1.58] SplitContainerImpl.java [1.37] MultiTabbedContainerImpl.java [1.37] Note: There was not enough synchronized access to topComps (now I renamed it to topComponents) field in DefaultContainerImpl and its subclasses, what led to the issue.
Reopening, I reproduced it, with different component - Component Inspector, after opening project imported from ffjce30. The project was saved on GUI Editing WS.
Created attachment 6038 [details] exc stack trace with Comp. Inspector
Fixed in [trunk] Fix: core/../windows/frames/MultiTabbedContainerImpl.java [1.40] Note: This was another cause of exception (there was planned selecting of component, and in case it is not contained, was choosen the last one, but the data were taken from previous task, not current one, thus could happen were in incosistent state). Please create new issue necxt time, so we can differ the patches later.
Verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.