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.
Build used: Netbean 03/09/04 Plugin: 03/09/04 STEPS TO REPRODUCE: 1. Install Netbean and plugin 2. Start Netbean IDE 3. From the Filesystem, select to mount a directory (eg. c:\test\bug) 4. Create a web module by right-clicking at the c:\test\bug directory 5. Unmount the c:\test\bug directory 6. Mount the c:\test directory 7. Expand the C:\test directory > right-click at the c:\test\bug\WEB-INF\sun-web node and select Open menu BUG: NPE occured --------------------------------------------------- java.lang.NullPointerException at org.netbeans.modules.j2ee.deployment.config.ConfigurationStorage.init(ConfigurationStorage.java:63) at org.netbeans.modules.j2ee.deployment.config.ConfigurationStorage.<init>(ConfigurationStorage.java:58) at org.netbeans.modules.j2ee.deployment.config.ui.ConfigBeanTopComponent.initialize(ConfigBeanTopComponent.java:146) at org.netbeans.modules.j2ee.deployment.config.ui.ConfigBeanTopComponent.<init>(ConfigBeanTopComponent.java:100) at org.netbeans.modules.j2ee.deployment.config.ui.ConfigBeanTopComponent.<init>(ConfigBeanTopComponent.java:83) at org.netbeans.modules.j2ee.deployment.config.ConfigDataObject.open(ConfigDataObject.java:156) at org.openide.actions.OpenAction.performAction(OpenAction.java:54) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:438) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
This is just another exhibition of issue 39396. The stack is different because after so much code changes, but essentially the same test case. *** This issue has been marked as a duplicate of 39396 ***
This problem can also be re-created by just mounting an archive file (war file), then select to Open the sun-web.xml file
Created attachment 13931 [details] Fix by checking for null ConfigurationStorage cookie
Is mounting the WAR and browsing its content a normal web developer activity? If so we might need to raise the priority and at least fix the exception. To let webapp team evaluate and decide, I reopen this bug and I attach a fix in case we decide to go ahead with fix in release36.
These are not usual developer activities, so downgrading to P3. Marking as fixed, as it has been already addressed in trunk.
rf