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 29755 - Exception thrown after setting context root
Summary: Exception thrown after setting context root
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
: 29689 (view as bug list)
Depends on: 26625
Blocks: 31920
  Show dependency tree
 
Reported: 2003-01-02 07:31 UTC by johnzoet
Modified: 2006-02-28 11:29 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 johnzoet 2003-01-02 07:31:30 UTC
When I switch to a new project, then set context
root on web module and then execute a JSP page the
IDE throws an exception:
==>
*********** Exception occurred ************ at Thu
Jan 02 20:16:25 NZDT 2003
java.lang.NullPointerException
	at
org.netbeans.modules.tomcat.tomcat40.Tomcat40DataObject.setNewContext(Tomcat40DataObject.java:650)
	at
org.netbeans.modules.tomcat.tomcat40.Tomcat40Installation.setTestComponent(Tomcat40Installation.java:656)
	at
org.netbeans.modules.tomcat.tomcat40.Tomcat40Installation.incrementalDeploy(Tomcat40Installation.java:596)
	at
org.netbeans.modules.tomcat.tomcat40.Tomcat40Instance.deploy(Tomcat40Instance.java:260)
	at
org.netbeans.modules.j2ee.impl.DefaultServerInstanceManager.doDeploy(DefaultServerInstanceManager.java:136)
	at
org.netbeans.modules.j2ee.impl.DefaultServerInstanceManager.startExecution(DefaultServerInstanceManager.java:150)
	at
org.netbeans.modules.j2ee.impl.DefaultServerInstanceManager.serverInstanceStartExecution(DefaultServerInstanceManager.java:101)
	at
org.netbeans.modules.j2ee.impl.DefaultExecPerformer.startExecution(DefaultExecPerformer.java:105)
	at
org.netbeans.modules.web.execution.WebDefaultExecPerformer.startExecution(WebDefaultExecPerformer.java:256)
	at
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:74)
	at
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:64)
	at
org.netbeans.modules.j2ee.impl.ExecSupport.start(ExecSupport.java:125)
	at
org.netbeans.modules.j2ee.impl.ServerExecSupport.start(ServerExecSupport.java:141)
	at
org.openide.actions.ExecuteAction.execute(ExecuteAction.java:139)
	at
org.openide.actions.ExecuteAction.execute(ExecuteAction.java:236)
	at
org.openide.actions.ExecuteAction.performAction(ExecuteAction.java:101)
	at
org.openide.util.actions.NodeAction.performAction(NodeAction.java:179)
	at
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:170)
	at
org.openide.awt.Actions.invokeAction(Actions.java:528)
	at
org.openide.awt.Actions$ButtonBridge.actionPerformed(Actions.java:484)
	at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
	at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
	at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
	at
javax.swing.AbstractButton.doClick(AbstractButton.java:289)
	at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
	at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
	at
java.awt.Component.processMouseEvent(Component.java:5093)
	at
java.awt.Component.processEvent(Component.java:4890)
	at
java.awt.Container.processEvent(Container.java:1566)
	at
java.awt.Component.dispatchEventImpl(Component.java:3598)
	at
java.awt.Container.dispatchEventImpl(Container.java:1623)
	at
java.awt.Component.dispatchEvent(Component.java:3439)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
	at
java.awt.Container.dispatchEventImpl(Container.java:1609)
	at
java.awt.Window.dispatchEventImpl(Window.java:1585)
	at
java.awt.Component.dispatchEvent(Component.java:3439)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
INFORMATIONAL *********** Exception occurred
************ at Thu Jan 02 20:16:41 NZDT 2003
java.lang.reflect.InvocationTargetException
	at
sun.reflect.GeneratedMethodAccessor59.invoke(Unknown
Source)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
org.openide.awt.Actions.invokeAction(Actions.java:505)
	at
org.openide.awt.Actions$ButtonBridge.actionPerformed(Actions.java:484)
	at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
	at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
	at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
	at
javax.swing.AbstractButton.doClick(AbstractButton.java:289)
	at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
	at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
	at
java.awt.Component.processMouseEvent(Component.java:5093)
	at
java.awt.Component.processEvent(Component.java:4890)
	at
java.awt.Container.processEvent(Container.java:1566)
	at
java.awt.Component.dispatchEventImpl(Component.java:3598)
	at
java.awt.Container.dispatchEventImpl(Container.java:1623)
	at
java.awt.Component.dispatchEvent(Component.java:3439)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
	at
java.awt.Container.dispatchEventImpl(Container.java:1609)
	at
java.awt.Window.dispatchEventImpl(Window.java:1585)
	at
java.awt.Component.dispatchEvent(Component.java:3439)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Caused by: java.lang.IllegalStateException:
RequestProcessor already stopped!
	at
org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:317)
	at
org.openide.util.RequestProcessor.post(RequestProcessor.java:178)
	at
org.openide.util.RequestProcessor.post(RequestProcessor.java:151)
	at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:111)
[catch] ... 30 more

==>
Comment 1 akemr 2003-01-31 13:59:49 UTC
*** Issue 29689 has been marked as a duplicate of this issue. ***
Comment 2 Milan Kuchtiak 2003-02-21 15:58:57 UTC
The issue is dependent on 26625.

If a we webmodule is starded - it loks to tomcat's 
server.xml configuration file. In our case (Issue 26625), 
the server.xml file is unavailable.
Comment 3 Milan Kuchtiak 2003-02-28 17:07:17 UTC
Fixed.
The fix of 26625 resolved this issue.
Comment 4 Jaroslav Pospisil 2006-02-28 11:29:01 UTC
VERIFIED