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 13706

Summary: Moving servlet outside webmodule throws exception
Product: javaee Reporter: L Martinek <lmartinek>
Component: CodeAssignee: _ rkubacki <rkubacki>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: -FFJ-   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 13065    
Attachments: patch

Description L Martinek 2001-07-18 17:10:59 UTC
Occurs in build 010717_1. It worked in EA build.

Suppose you have normal filesystem (not webmodule) mounted. 
1. Create servlet from template
2. Cut it and paste it to other directory.
Exception is thrown and package isn't changed in source so message "invalid
package declaration" appears in tooltip of servlet node.

Wed Jul 18 17:27:08 CEST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at
org.netbeans.modules.web.core.jsploader.ServletDataObject.handleMove(ServletDataObject.java:186)
        at
org.netbeans.modules.web.ie.servlets.ServletIEDataObject.handleMove(ServletIEDataObject.java:168)
        at org.openide.loaders.DataObject$5.run(DataObject.java:580)
        at
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:69)
        at
org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:366)
        at org.openide.loaders.DataObject.move(DataObject.java:578)
        at org.openide.loaders.DataFolder$5.handle(DataFolder.java:1422)
        at org.openide.loaders.DataFolder$Paste.paste(DataFolder.java:1642)
        at org.openide.actions.PasteAction.performAction(PasteAction.java:109)
        at
org.openide.actions.PasteAction$ActSubMenuModel.performActionAt(PasteAction.java:195)
        at
org.openide.awt.Actions$SubMenuBridge$ISubActionListener.actionPerformed(Actions.java:593)
        at org.openide.awt.Actions$SubMenu.doClick(Actions.java:863)
[catch] at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
        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:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 _ rkubacki 2001-07-18 18:17:24 UTC
Created attachment 1911 [details]
patch
Comment 2 _ rkubacki 2001-07-18 18:18:42 UTC
This is worth to be fixed for FFJ3.0
Comment 3 _ rkubacki 2001-07-23 11:45:10 UTC
fixed in pilsen_fcs branch and trunk
Comment 4 L Martinek 2001-07-24 09:43:51 UTC
verified in 010723
Comment 5 L Martinek 2001-07-24 09:45:16 UTC
*** Issue 13065 has been marked as a duplicate of this issue. ***