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.
when double clik on a meta-inf/context node in the exploer which is not mounted as a web module file system, I have: (either tomcat5 or j2ee 1.4): java.lang.RuntimeException: Failed to get ModuleFolderCookie from org.openide.lo aders.DataFolder@141e53f[bug] at org.netbeans.modules.j2ee.deployment.config.ConfigDataObject.getProvi der(ConfigDataObject.java:114) at org.netbeans.modules.j2ee.deployment.config.ConfigDataObject.getStora ge(ConfigDataObject.java:125) [catch] at org.netbeans.modules.j2ee.deployment.config.ConfigDataObject.getCooki e(ConfigDataObject.java:75) at org.netbeans.modules.j2ee.deployment.config.ConfigOpenSupport.open(Co nfigOpenSupport.java:59) at org.openide.actions.OpenAction.performAction(OpenAction.java:54) at org.openide.util.actions.NodeAction$1.run(NodeAction.java:174) at org.openide.util.actions.CallableSystemAction.doPerformAction(Callabl eSystemAction.java:135) at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:1 72) at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView .java:1114) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21 2) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21 1) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21 1) at java.awt.Component.processMouseEvent(Component.java:5103) 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:3207) 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) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.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) java.lang.NullPointerException at org.netbeans.modules.j2ee.deployment.config.ConfigurationStorage.<ini t>(ConfigurationStorage.java:52) at org.netbeans.modules.j2ee.deployment.config.ui.ConfigBeanTopComponent .initialize(ConfigBeanTopComponent.java:109) at org.netbeans.modules.j2ee.deployment.config.ui.ConfigBeanTopComponent .<init>(ConfigBeanTopComponent.java:97) at org.netbeans.modules.j2ee.deployment.config.ui.ConfigBeanTopComponent .<init>(ConfigBeanTopComponent.java:81) at org.netbeans.modules.j2ee.deployment.config.ConfigOpenSupport.open(Co nfigOpenSupport.java:74) at org.openide.actions.OpenAction.performAction(OpenAction.java:54) at org.openide.util.actions.NodeAction$1.run(NodeAction.java:174) at org.openide.util.actions.CallableSystemAction.doPerformAction(Callabl eSystemAction.java:135) at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:1 72) at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView .java:1114) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21 2) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21 1) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21 1) at java.awt.Component.processMouseEvent(Component.java:5103) 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:3207) 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) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.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) ConfigBeanTopComponent.initialize() ConfigBeanNode is null, returning. ConfigBeanTopComponent.open() editorMode null ConfigBeanTopComponent.open() about to call super.open().
Pavel can you take this one. The context node is config dataobject for tomcat. Double click is same as open which we did regularly and don't see any problem. I have both plugins and just try it now and it works fine. Ludo could you try to establish a test case to reproduce this.
test case is to make sure the file system mounted is NOT a Web App. For my case, I have a web app mounted under: c:\tmp\nb\sampledir\myWebApp but c:\tmp\nb\sampledir is Also mounted as a FS. Explore this FS and use the sun-web or context node from this FS, not the one from the Web App FS.
ok, will take a look at this (I can reproduce it)
Created attachment 13271 [details] another exception
the other exception happens when you click on the context.xml file after it was deployed (you can click on it in any filesystem and get this ex rather then the one pasted above)
*** Issue 40911 has been marked as a duplicate of this issue. ***
Aside from not throwing exception, maybe the desirable behaviour would be open the file as xml editor?
I have committed the fix for 40911 and that also fix this issue. The test case for 40911 is slightly different but same fix. The fix is check for null return from getProvider, if so open xml editor instead of ConfigBeanTopComponent.