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 25849 - NPE throwing on the Tomcat4.0 node
Summary: NPE throwing on the Tomcat4.0 node
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Damian Frach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-20 09:52 UTC by Milan Kuchtiak
Modified: 2006-02-27 15:26 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 Milan Kuchtiak 2002-07-20 09:52:44 UTC
How to reproduce :

- start the Tomcat4.0 server (on some Tomcat4.0 
installation node)
- stop that Tomcat4.0 server
- rigt click on the node to display the context menu (See 
that Start Server action is disabled.
- click on the Tomcat 4.0 server node.

The Exception occurs :


java.lang.NullPointerException
        at 
org.netbeans.modules.tomcat.tomcat40.StartServerAction.enabl
e(StartServerAction.java:61)
        at org.openide.util.actions.NodeAction.isEnabled
(NodeAction.java:118)
        at org.openide.awt.Actions$MenuBridge.updateState
(Actions.java:508)
        at org.openide.awt.Actions.connect(Actions.java:93)
        at org.openide.awt.Actions.connect(Actions.java:81)
        at org.openide.awt.Actions$MenuItem.<init>
(Actions.java:784)
        at 
org.openide.util.actions.CallableSystemAction.getPopupPresen
ter(CallableSystemAction.java:43)
        at org.openide.nodes.NodeOp.findContextMenuImpl
(NodeOp.java:152)
        at org.openide.nodes.Node.getContextMenu
(Node.java:424)
        at org.openide.nodes.NodeOp.findContextMenu
(NodeOp.java:86)
        at org.openide.explorer.view.TreeView.createPopup
(TreeView.java:983)
        at 
org.openide.explorer.view.TreeView$PopupAdapter.showPopup
(TreeView.java:914)
        at 
org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased
(MouseUtils.java:151)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:228)
        at java.awt.Component.processMouseEvent
(Component.java:5021)
        at java.awt.Component.processEvent
(Component.java:4818)
        at java.awt.Container.processEvent
(Container.java:1380)
        at java.awt.Component.dispatchEventImpl
(Component.java:3526)
        at java.awt.Container.dispatchEventImpl
(Container.java:1437)
        at java.awt.Component.dispatchEvent
(Component.java:3367)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3214)
        at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2929)
        at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2859)
        at java.awt.Container.dispatchEventImpl
(Container.java:1423)
        at java.awt.Window.dispatchEventImpl
(Window.java:1566)
        at java.awt.Component.dispatchEvent
(Component.java:3367)
[catch] at java.awt.EventQueue.dispatchEvent
(EventQueue.java:445)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:190)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
        at java.awt.EventDispatchThread.run
(EventDispatchThread.java:98)
Comment 1 Milan Kuchtiak 2002-07-25 10:38:17 UTC
Fixed in trunk
Comment 2 Jaroslav Pospisil 2006-02-27 15:26:59 UTC
VERIFIED