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.
Tested on build 010722 with userdir from Boston IE. Servlet created from template isn't ServletDataObject and any java can't be converted to servlet. If I set executor for servlet (but JavaDO) to J2EE Server Executor and execute it then exception is thrown and servlet isn't converted nor executed. If settings from Boston CE is used then it works. Mon Jul 23 15:43:12 CEST 2001: java.lang.ClassCastException: Posted StackTrace Annotation: Exception occurred in Request Processor Nested annotation: org.netbeans.modules.java.JavaDataObject org.openide.util.RequestProcessor$Holder: Posted StackTrace(task org.netbeans.core.ModuleActions$1@3ce763 [-2672, 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.java: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.java: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: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) Mon Jul 23 15:43:12 CEST 2001: java.lang.ClassCastException: org.netbeans.modules.java.JavaDataObject java.lang.ClassCastException: org.netbeans.modules.java.JavaDataObject at org.netbeans.modules.web.execution.ServletExecPerformer.readyForExecution(ServletExecPerformer.java:98) at org.netbeans.modules.web.execution.WebDefaultExecPerformer.startExecution(WebDefaultExecPerformer.java:160) at org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:54) 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)
The reason of this exception is bad ordering of loaders (Java objects has higher priority than Servlets). After fixing this there is another NPE when attempt to get properties of Servlet is done.
Created attachment 1941 [details] exception from delegating file system
Probably something can be broken when there is deserialized filesystem that is no longer valid (not existing path to root directory). When all suspicious filesystems are unmounted (using FileSystems | Customize dialog) I can proceed to next stage, where I get: java.lang.IncompatibleClassChangeError at org.netbeans.modules.web.core.WebExecUtil.waitAndShowInBrowser(WebExecUtil.java:108) at org.netbeans.modules.web.core.WebExecUtil$1.run(WebExecUtil.java:68) at java.lang.Thread.run(Thread.java:484)
fixed problem in DelegatingFileSystem and WebExecUtil in trunk. Will be fixed in pilsen_fcs too. Filled bug 13880 against core about wrong order of loaders.
fixed problem with NPE in delegating FS and exception in WebExecUtil. done for pilsen_fcs and trunk
verified in 010810_1