Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 269086 - NPE When Generating sample JSPs if no server instance created
Summary: NPE When Generating sample JSPs if no server instance created
Status: CLOSED DUPLICATE of bug 247535
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mark Hutchinson CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-17 16:39 EDT by Mark Hutchinson CLA
Modified: 2009-05-04 17:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hutchinson CLA 2009-03-17 16:39:29 EDT
Build ID: WTP 3.1

Steps To Reproduce:
1. Install two server runtimes (e.g. Tomcat 5.5 and Tomcat 6)
2. Do Not create any server instances in the servers view.
3. Right click on a Client proxy Java file, and select "Web Services" then "Generate JAX-RPC JSPs"
4. Notice the "Server" combo box says Tomcat 5.5, but the "Server instance" combo is empty.  (Also notice that a tomcat 6.0 instance was created in the servers view automatically for some reason)
5. Press Finish to generate the JSPs
6. Get a NPE.


More information:
It looks like these combo boxes were added in bug 221232.  This bug also seems related to bug 247535.

Here is the error stack trace:

    java.lang.NullPointerException
    at org.eclipse.jst.ws.internal.consumption.ui.widgets.test.wssample.GSTCLaunchCommand.launchSample(GSTCLaunchCommand.java:111)
    at org.eclipse.jst.ws.internal.consumption.ui.widgets.test.wssample.GSTCLaunchCommand.execute(GSTCLaunchCommand.java:70)
    at org.eclipse.jst.ws.internal.consumption.ui.widgets.test.ClientTestDelegateCommand.commandFactoryExecution(ClientTestDelegateCommand.java:126)
    at org.eclipse.jst.ws.internal.consumption.ui.widgets.test.ClientTestDelegateCommand.execute(ClientTestDelegateCommand.java:107)
    at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
    at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
    at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
    at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
    at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
    at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.performFinish(WizardPageManager.java:262)
    at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:382)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:625)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3875)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3470)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:412)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3875)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3470)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2388)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:599)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1270)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1246)
Comment 1 Mark Hutchinson CLA 2009-03-24 10:34:39 EDT
Will fix this as part of bug 247535, as it is related to the sample JSP server selection.

*** This bug has been marked as a duplicate of bug 247535 ***
Comment 2 Mark Hutchinson CLA 2009-05-04 17:11:20 EDT
verified fixed in wtp-3.1-20090430