Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » NPE when creating web service
NPE when creating web service [message #42629] Fri, 10 September 2004 10:52 Go to next message
Eclipse UserFriend
Originally posted by: csconnea.us.ibm.com

I'm following the instructions in Getting Started section 3.2 verbatim with
one exception. I'm trying to use tomcat 5.0 instead of 4.1. When I click
finish on the new Web Service wizard, I get the following exception. Any
ideas?

java.lang.NullPointerException
at
com.ibm.etools.webservice.consumption.common.WebServiceStart ServerRegistry.g
etServerStartByTypeId(WebServiceStartServerRegistry.java:85)
at
com.ibm.etools.webservice.consumption.command.common.CreateW ebProjectCommand
..stopServer(CreateWebProjectCommand.java:344)
at
com.ibm.etools.webservice.consumption.command.common.CreateW ebProjectCommand
..execute(CreateWebProjectCommand.java:143)
at
com.ibm.etools.webservice.consumption.command.common.CreateS erviceProjectCom
mand.execute(CreateServiceProjectCommand.java:81)
at
com.ibm.env.command.fragment.CommandFragmentEngine.runComman d(CommandFragmen
tEngine.java:312)
at
com.ibm.env.command.fragment.CommandFragmentEngine.visitTop( CommandFragmentE
ngine.java:278)
at
com.ibm.env.command.fragment.CommandFragmentEngine.moveForwa rdToNextStop(Com
mandFragmentEngine.java:198)
at
com.ibm.env.widgets.SimpleCommandEngineManager$4.run(SimpleC ommandEngineMana
ger.java:196)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
a:303)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 752)
at
com.ibm.env.widgets.SimpleCommandEngineManager.runForwardToN extStop(SimpleCo
mmandEngineManager.java:165)
at
com.ibm.env.internal.widgets.WizardPageManager.runForwardToN extStop(WizardPa
geManager.java:59)
at
com.ibm.env.internal.widgets.WizardPageManager.performFinish (WizardPageManag
er.java:147)
at
com.ibm.env.widgets.DynamicWizard.performFinish(DynamicWizar d.java:319)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:609)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:305)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:506)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java(Compile
d Code))
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled
Code))
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va(Compiled
Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled
Code))
at org.eclipse.jface.window.Window.runEventLoop(Window.java(Com piled
Code))
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:163)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
ContributionItem.java:915)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
tem.java:866)
at
org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContribu
tionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled
Code))
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va(Compiled
Code))
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled
Code))
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a(Compiled
Code))
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:85
)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:58
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Re: NPE when creating web service [message #43111 is a reply to message #42629] Sat, 11 September 2004 14:47 Go to previous message
Eclipse UserFriend
Tomcat 5.0 is not yet supported in the initial code contribution, but it
will be in the next code drop. In any case, the wizard should display a
proper error message instead of a NPE, I will get this fixed.

Jeff

"Colleen" <csconnea@us.ibm.com> wrote in message
news:chset8$thp$1@eclipse.org...
> I'm following the instructions in Getting Started section 3.2 verbatim
with
> one exception. I'm trying to use tomcat 5.0 instead of 4.1. When I click
> finish on the new Web Service wizard, I get the following exception. Any
> ideas?
>
> java.lang.NullPointerException
> at
>
com.ibm.etools.webservice.consumption.common.WebServiceStart ServerRegistry.g
> etServerStartByTypeId(WebServiceStartServerRegistry.java:85)
> at
>
com.ibm.etools.webservice.consumption.command.common.CreateW ebProjectCommand
> .stopServer(CreateWebProjectCommand.java:344)
> at
>
com.ibm.etools.webservice.consumption.command.common.CreateW ebProjectCommand
> .execute(CreateWebProjectCommand.java:143)
> at
>
com.ibm.etools.webservice.consumption.command.common.CreateS erviceProjectCom
> mand.execute(CreateServiceProjectCommand.java:81)
> at
>
com.ibm.env.command.fragment.CommandFragmentEngine.runComman d(CommandFragmen
> tEngine.java:312)
> at
>
com.ibm.env.command.fragment.CommandFragmentEngine.visitTop( CommandFragmentE
> ngine.java:278)
> at
>
com.ibm.env.command.fragment.CommandFragmentEngine.moveForwa rdToNextStop(Com
> mandFragmentEngine.java:198)
> at
>
com.ibm.env.widgets.SimpleCommandEngineManager$4.run(SimpleC ommandEngineMana
> ger.java:196)
> at
>
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
> a:303)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 752)
> at
>
com.ibm.env.widgets.SimpleCommandEngineManager.runForwardToN extStop(SimpleCo
> mmandEngineManager.java:165)
> at
>
com.ibm.env.internal.widgets.WizardPageManager.runForwardToN extStop(WizardPa
> geManager.java:59)
> at
>
com.ibm.env.internal.widgets.WizardPageManager.performFinish (WizardPageManag
> er.java:147)
> at
> com.ibm.env.widgets.DynamicWizard.performFinish(DynamicWizar d.java:319)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:609)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:305)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:506)
> at
>
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java(Compile
> d Code))
> at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
> Code))
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined
Compiled
> Code))
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va(Compiled
> Code))
> at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled
> Code))
> at org.eclipse.jface.window.Window.runEventLoop(Window.java(Com piled
> Code))
> at org.eclipse.jface.window.Window.open(Window.java:648)
> at
org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:163)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:881 )
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(Action
> ContributionItem.java:915)
> at
>
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionI
> tem.java:866)
> at
>
org.eclipse.jface.action.ActionContributionItem$7.handleEven t(ActionContribu
> tionItem.java:785)
> at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
> Code))
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined
Compiled
> Code))
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va(Compiled
> Code))
> at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled
> Code))
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a(Compiled
> Code))
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
> at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:335)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:85
> )
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:58
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> .java:60)
> at java.lang.reflect.Method.invoke(Method.java:391)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
> at org.eclipse.core.launcher.Main.run(Main.java:644)
> at org.eclipse.core.launcher.Main.main(Main.java:628)
>
>
Previous Topic:Running Tomcat
Next Topic:[LOMBOZ] - Initial Contribution
Goto Forum:
  


Current Time: Mon May 12 23:41:33 EDT 2025

Powered by FUDForum. Page generated in 0.06382 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top