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 40911 - NPE occurs when select to Open the sun-web.xml file
Summary: NPE occurs when select to Open the sun-web.xml file
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: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 21:37 UTC by davisn
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Fix by checking for null ConfigurationStorage cookie (1.41 KB, patch)
2004-03-10 23:10 UTC, Nam Nguyen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2004-03-10 21:37:24 UTC
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)
Comment 1 Nam Nguyen 2004-03-10 22:06:49 UTC
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 ***
Comment 2 davisn 2004-03-10 22:23:53 UTC
This problem can also be re-created by just mounting an archive file
(war file), then select to Open the sun-web.xml file
Comment 3 Nam Nguyen 2004-03-10 23:10:20 UTC
Created attachment 13931 [details]
Fix by checking for null ConfigurationStorage cookie
Comment 4 Nam Nguyen 2004-03-10 23:12:24 UTC
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.
Comment 5 Martin Grebac 2004-03-11 09:46:48 UTC
These are not usual developer activities, so downgrading to P3.
Marking as fixed, as it has been already addressed in trunk.
Comment 6 Martin Grebac 2004-03-11 09:47:06 UTC
rf