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 11999 - Executing Servlet without assigned webmodule throws exception
Summary: Executing Servlet without assigned webmodule throws exception
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-07 17:08 UTC by L Martinek
Modified: 2003-07-02 08:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description L Martinek 2001-05-07 17:10:57 UTC
[20010507-1037]

1. Create some servlet in normal filesystem, not webmodule.
2. Convert the filesystem into webmodule.
3. Execute this servlet. Dialog for setting webmodule and URI appears. Set 
correct values. Click on OK. 
Exception is thrown. If you look at servlet properties you could note that URI 
is set, but webmodule isn't.

Mon May 07 17:58:38 GMT+02:00 2001: java.lang.NullPointerException: Posted 
StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.core.ModuleActions$1@591c09 [-13422, 1, -1])
        at 
org.openide.util.RequestProcessor$Task.createHolder(RequestProcessor.java:322)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:89)
        at 
org.openide.awt.Actions$ButtonBridge.actionPerformed(Actions.java:351)
        at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
        at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.ja
va:1504)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
[catch] at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenu
ItemUI.java:886)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
        at 
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
 
Mon May 07 17:58:38 GMT+02:00 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at 
org.netbeans.modules.web.ie.webdata.WebDataFactoryIEImpl.findServerInstance(WebD
ataFactoryIEImpl.java:76)
        at 
org.netbeans.modules.web.execution.WebDefaultExecPerformer.getServerInstance(Web
DefaultExecPerformer.java:110)
        at 
org.netbeans.modules.j2ee.impl.DefaultExecPerformer.startExecution(DefaultExecPe
rformer.java:70)
        at 
org.netbeans.modules.web.execution.ServletExecPerformer.startExecution(ServletEx
ecPerformer.java:115)
        at 
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:55)
        at 
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:42)
        at org.openide.loaders.ExecSupport.start(ExecSupport.java:92)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:140)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:237)
        at 
org.openide.actions.ExecuteAction.performAction(ExecuteAction.java:102)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:92)
        at 
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:83)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:76)
        at org.openide.util.Task.run(Task.java:124)
[catch] at 
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:626)
Comment 1 _ rkubacki 2001-05-09 15:24:14 UTC
WebModule property appears when FS is converted.
Comment 2 L Martinek 2001-05-09 17:39:02 UTC
...but the exception is still thrown.
Comment 3 L Martinek 2001-05-10 18:35:46 UTC
The exception is thrown even if webmodule is set. If you copy servlet created 
outdside IDE to webmodule and convert it to servlet then it has webmodule 
property set. Execute it and Servlet configuration dialog appears with correct 
webmodule. Click on OK and exception is thrown. Look at property sheet of the 
servlet. Now webmodule property is empty.
Comment 4 _ rkubacki 2001-05-16 08:15:19 UTC
Change of e-mail address
Comment 5 _ rkubacki 2001-05-16 11:12:21 UTC
Can't reproduce it now
Comment 6 L Martinek 2001-05-16 11:31:52 UTC
Works on Linux, doesn't work on Windows
Comment 7 _ rkubacki 2001-05-28 15:53:40 UTC
fixed (mixed display and system name of FileSystem)
Comment 8 L Martinek 2001-06-11 10:49:47 UTC
Bug is still on build 010608.
When I created servlet from template in normal filesystem (not webmodule) and 
execute it following exception is thrown

Mon Jun 11 11:45:03 CEST 2001: java.lang.NullPointerException: Posted StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.core.ModuleActions$1@3be58 [-3704, 1, -1])
        at 
org.openide.util.RequestProcessor$Task.createHolder(RequestProcessor.java:322)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:89)
        at 
org.openide.awt.Actions$ButtonBridge.actionPerformed(Actions.java:351)
        at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
        at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.ja
va:1504)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at 
org.openide.awt.EnabledButtonModel.setPressed(EnabledButtonModel.java:83)
        at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:216)
[catch] at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.Component.processMouseEvent(Component.java:3715)
        at java.awt.Component.processEvent(Component.java:3544)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:914)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:1
31)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
 
Mon Jun 11 11:45:03 CEST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at java.util.Hashtable.get(Hashtable.java:320)
        at 
org.openide.filesystems.Repository.findFileSystem(Repository.java:275)
        at 
org.netbeans.modules.web.ie.servlets.ServletIEDataObject$ServletConfigSupport.ge
tServletMappings(ServletIEDataObject.java:423)
        at 
org.netbeans.modules.web.core.jsploader.ServletExecParamsPanel.fillServletMappin
gs(ServletExecParamsPanel.java:99)
        at 
org.netbeans.modules.web.core.jsploader.ServletExecParamsPanel.fillValues(Servle
tExecParamsPanel.java:88)
        at 
org.netbeans.modules.web.core.jsploader.ServletExecParamsPanel.<init>(ServletExe
cParamsPanel.java:54)
        at 
org.netbeans.modules.web.core.jsploader.ServletExecParamsAction.performAction(Se
rvletExecParamsAction.java:61)
        at 
org.netbeans.modules.web.execution.ServletExecPerformer.readyForExecution(Servle
tExecPerformer.java:102)
        at 
org.netbeans.modules.web.execution.WebDefaultExecPerformer.startExecution(WebDef
aultExecPerformer.java:158)
        at 
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:55)
        at 
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:42)
        at org.openide.loaders.ExecSupport.start(ExecSupport.java:92)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:140)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:237)
        at 
org.openide.actions.ExecuteAction.performAction(ExecuteAction.java:102)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:92)
        at 
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:83)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:76)
        at org.openide.util.Task.run(Task.java:124)
[catch] at 
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:626)
Comment 9 _ rkubacki 2001-06-15 09:48:04 UTC
fixed conflict between system and display name of FS
Comment 10 L Martinek 2001-06-20 16:43:28 UTC
Now it seems that there is no way how to have webmodule property empty.
Comment 11 Quality Engineering 2003-07-02 08:32:17 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.