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.
Steps: - fresh build from cvs release32 - SDI - mount my "Test" directory - open a form - the IDE switches to GUI editing workspace, Explorer window is not shown - View -> Explorer, the following NPE happens (again and again) P1 because the IDE is unusable without Explorer Tue Mar 27 16:52:58 GMT+02:00 2001: java.lang.NullPointerException: null java.lang.NullPointerException at org.netbeans.core.windows.frames.DefaultContainerImpl.setAttached(DefaultContainerImpl.java:399) at org.netbeans.core.windows.frames.DefaultContainerImpl.addNotify(DefaultContainerImpl.java:376) at java.awt.Container.addNotify(Container.java:1579) at javax.swing.JComponent.addNotify(JComponent.java:4015) at java.awt.Container.addNotify(Container.java:1579) at javax.swing.JComponent.addNotify(JComponent.java:4015) at javax.swing.JRootPane.addNotify(JRootPane.java:483) at java.awt.Container.addNotify(Container.java:1579) at java.awt.Window.addNotify(Window.java:352) at java.awt.Frame.addNotify(Frame.java:361) at org.netbeans.core.windows.frames.TopFrameTypeImpl.addNotify(TopFrameTypeImpl.java:80) at java.awt.Window.show(Window.java:390) at java.awt.Component.show(Component.java:946) at java.awt.Component.setVisible(Component.java:903) at org.netbeans.core.windows.ModeImpl.setVisible(ModeImpl.java:581) at org.netbeans.core.windows.ModeImpl$1.performCommand(ModeImpl.java:276) at org.netbeans.core.windows.DeferredPerformer.processCommand(DeferredPerformer.java:165) at org.netbeans.core.windows.DeferredPerformer.putRequest(DeferredPerformer.java:83) at org.netbeans.core.windows.ModeImpl.dockInto(ModeImpl.java:255) at org.netbeans.core.windows.ModeImpl.dockInto(ModeImpl.java:239) at org.netbeans.core.windows.WindowManagerImpl$TopComponentManager.doOpen(WindowManagerImpl.java:1102) at org.netbeans.core.windows.WindowManagerImpl$TopComponentManager.access$700(WindowManagerImpl.java:983) at org.netbeans.core.windows.WindowManagerImpl$1.run(WindowManagerImpl.java:1067) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:331) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:96) at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
I found one way, how to reproduce this bug: 1.unpack fresh 3.2 build 2.start it with -single switch 3.mount some folder 4.under this folder create a form (f.e. JDialog) 5.leave the form opened and exit IDE 6.start IDE as multiuser (normal way) 7.do not close the opened form and create new project 8.note that the Component inspector is under new project, it should NOT be!!! 9.switch back to the previous project 10.NPE from form module is thrown (see attachment), the form window from previous project is trying to be saved!!! 11.after finishing openning of the first project open the second one again (is the new one from 7.) 12.note that the explorer under gui editting is not opened and try to open it through the view menu 13.mentioned NPE when setAttached() is thrown and the explorer is unusable!!!
Created attachment 908 [details] NPE from form module
Fixed, deserialization mechanism is now more robust. Point 8 and 10 are not solved yet, bug 11008 must be fixed to get this solved.
Target milestone 3.2
- closed