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.
[010620_1] If servlet was created under some directory structure and then other directory from this structure is mounted, moving servlet throws exception. How to reproduce: 1. Suppose you have directory "first" and in this directory you have directory "second". 2. Mount directory "second". 3. Create in this new mounted directory new servlet form template. It will look like this: first +--- second (-> mount point) +---- servlet.java 4. Unmount this filesystem and mount directory "first". In this directory create new directory, e.g. third. Now it will look like this: first (-> mount point) +--- second | +---- servlet.java +--- third 5. Cut "second" directory and paste it under "third" directory. Following exception is thrown. If you delete .nbattr before moving then exception isn't thown. Thu Jun 21 16:41:13 CEST 2001: java.lang.NullPointerException: null java.lang.NullPointerException at org.netbeans.modules.web.core.jsploader.ServletDataObject.handleMove(ServletData Object.java:226) at org.netbeans.modules.web.ie.servlets.ServletIEDataObject.handleMove(ServletIEDat aObject.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.handleMove(DataFolder.java:642) 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:1409) at org.openide.loaders.DataFolder$Paste.paste(DataFolder.java:1629) 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) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenu ItemUI.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) [catch] 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)
duplicate *** This issue has been marked as a duplicate of 13706 ***
closing