Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 89121 - Error creating WS from simple Java bean
Summary: Error creating WS from simple Java bean
Status: CLOSED DUPLICATE of bug 92603
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.ws (show other bugs)
Version: 0.7   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Seng Phung Lu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 14:20 EST by Eric McIntyre CLA
Modified: 2007-04-05 06:03 EDT (History)
2 users (show)

See Also:


Attachments
Simple test project (5.81 KB, application/zip)
2005-03-25 14:24 EST, Eric McIntyre CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric McIntyre CLA 2005-03-25 14:20:44 EST
The Web service creation wizard is failing after the "Service Deployment
Configuration" page. The stack trace is:
IWAB0019E Error in getting method from Java bean.
    java.lang.NullPointerException
    at
org.eclipse.jst.ws.internal.axis.creation.ui.command.JavaToWSDLMethodCommand.execute(JavaToWSDLMethodCommand.java:95)
    at
org.eclipse.wst.command.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:322)
    at
org.eclipse.wst.command.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:288)
    at
org.eclipse.wst.command.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:208)
    at
org.eclipse.wst.command.env.ui.widgets.SimpleCommandEngineManager$4.run(SimpleCommandEngineManager.java:206)
    at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:344)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:289)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:824)
    at
org.eclipse.wst.command.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:175)
    at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:69)
    at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:91)
    at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:123)
    at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:741)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:338)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:543)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2908)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:718)
    at org.eclipse.jface.window.Window.open(Window.java:696)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:173)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:1003)
    at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:557)
    at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:507)
    at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:421)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2908)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
    at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
    at org.eclipse.core.launcher.Main.run(Main.java:887)
    at org.eclipse.core.launcher.Main.main(Main.java:871)

I have followed the instructions for enabling Web services at
http://www.eclipse.org/webtools/jst/components/ws/tutorials/GettingStartedWebService.html.
I am using Tomcat 5.0.28 as my container.
Comment 1 Eric McIntyre CLA 2005-03-25 14:24:34 EST
Created attachment 19200 [details]
Simple test project

This is the simple project I was using. I was trying to use HelloWorldImpl to
generate the service.
Comment 2 Eric McIntyre CLA 2005-03-28 14:37:18 EST
Looks like the bug only shows up when running under JDK 1.5 (Sun JDK
1.5.0_01/Win2K).
Comment 3 Chris Brealey CLA 2005-03-31 10:41:43 EST
Seng, we know that JRE 1.5 is not Axis friendly (or vice versa), but I'd 
like us to verify that this is the typical symptom for bottom-up scenarios and 
document it front-and-centre on the WTP Web site. Would you please run with 
this? Thanks - CB.
Comment 4 Seng Phung Lu CLA 2005-04-25 12:13:29 EDT
This is to confirm/reinforce the problem with running Axis 1.1 Web services on 
JRE 1.5.

It appears Axis 1.1 isn't compatible with the Xerces included in the Sun 1.5 
runtime.  An NPE is thrown, and the Web service wizard appropriately pops up an 
error dialog saying that Axis Deployment has failed.

See the following bug for more details:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=92603
Comment 5 Seng Phung Lu CLA 2005-04-27 15:34:47 EDT
Duplicate bug.  Will be addressed in support for JDK1.5.

*** This bug has been marked as a duplicate of 92603 ***
Comment 6 Seng Phung Lu CLA 2005-06-07 16:05:37 EDT
Done
Comment 7 David Williams CLA 2005-06-15 01:32:54 EDT
Changed Version field given new release numbering.
Comment 8 Alex Chan CLA 2006-11-21 01:47:41 EST
I have downloaded the latest version of Eclipse 3.2.1 M20060921-0945 and tried to generate the web service from wizard, but some how it show me the same error mentioned above
Comment 9 Seng Phung Lu CLA 2006-11-21 10:02:22 EST
Alex, 
this bug is related to Axis 1.1 running with Java 5 JRE.  The latest offering of WTP supports Axis 1.3 which is compatible with Java 5. 

Please try the latest maintenance release found here:
http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/drops/R1.5/M-1.5.3-200611161917/wtp-M-1.5.3-200611161917.zip

If you still see problems, please open a new bug as this one has already been closed.

Thank you!
Comment 10 Mirza Hadzic CLA 2007-04-05 06:02:41 EDT
I have same issue with 1.4.2_06 version, Eclipse Callisto, WTP 1.5.1. Trying to create web service from java class (Tomcat 5).