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.

Bug 39396 - double click on meta-inf/context node->RTE
Summary: double click on meta-inf/context node->RTE
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-30 00:54 UTC by _ ludo
Modified: 2004-03-12 20:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
another exception (4.51 KB, text/plain)
2004-02-05 15:49 UTC, Pavel Buzek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ ludo 2004-01-30 00:54:18 UTC
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().
Comment 1 Nam Nguyen 2004-01-30 01:15:27 UTC
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.
Comment 2 _ ludo 2004-01-30 01:30:40 UTC
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.
Comment 3 Pavel Buzek 2004-02-05 15:48:05 UTC
ok, will take a look at this (I can reproduce it)
Comment 4 Pavel Buzek 2004-02-05 15:49:17 UTC
Created attachment 13271 [details]
another exception
Comment 5 Pavel Buzek 2004-02-05 15:51:01 UTC
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)
Comment 6 Nam Nguyen 2004-03-10 22:06:47 UTC
*** Issue 40911 has been marked as a duplicate of this issue. ***
Comment 7 Nam Nguyen 2004-03-10 22:10:05 UTC
Aside from not throwing exception, maybe the desirable behaviour would
be open the file as xml editor?
Comment 8 Nam Nguyen 2004-03-12 20:56:01 UTC
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.