Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WSDL with custom Fault fails generation
WSDL with custom Fault fails generation [message #199613] Tue, 11 September 2007 10:23
Michael Marconi is currently offline Michael Marconi
Messages: 4
Registered: July 2009
Junior Member
Hi

I'm trying to define a custom Fault for my web service. Using the WSDL
editor, I 'Add Fault' to my operation.

When I attempt to generate an Axis2 web service from this WSDL, I get an
error dialog that states 'Exception occurred while code generation for the
WSDL null' and the following stack trace:

---

Exception occurred while code generation for the WSDL null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.jst.ws.axis2.creation.core.command.Axis2WSDL2Jav aCommand.execute(Axis2WSDL2JavaCommand.java:169)
at
org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.runCommand(CommandFragmentEngine.java:418)
at
org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.visitTop(CommandFragmentEngine.java:358)
at
org.eclipse.wst.command.internal.env.core.fragment.CommandFr agmentEngine.moveForwardToNextStop(CommandFragmentEngine.jav a:253)
at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleComman dEngineManager$5.run(SimpleCommandEngineManager.java:252)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 934)
at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleComman dEngineManager.runForwardToNextStop(SimpleCommandEngineManag er.java:222)
at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageMa nager.runForwardToNextStop(WizardPageManager.java:96)
at
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageMa nager.getNextPage(WizardPageManager.java:147)
at
org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizard Page.getNextPage(SimpleWizardPage.java:136)
at
org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:813)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:616)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.j ava:182)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Element QName is null for
NewOperation_faultMsg!
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate( CodeGenerationEngine.java:265)
... 55 more
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Element QName is null for
NewOperation_faultMsg!
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmi tter.java:1368)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate( CodeGenerationEngine.java:247)
... 55 more
Caused by: java.lang.RuntimeException: Element QName is null for
NewOperation_faultMsg!
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.getFaultParamElements(AxisServiceBasedMultiLa nguageEmitter.java:2756)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.getFaultElement(AxisServiceBasedMultiLanguage Emitter.java:2678)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.generateMethodElement(AxisServiceBasedMultiLa nguageEmitter.java:2204)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.loadOperations(AxisServiceBasedMultiLanguageE mitter.java:2122)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.createDOMDocumentForSkeletonInterface(AxisSer viceBasedMultiLanguageEmitter.java:2079)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiL anguageEmitter.java:1988)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiL anguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmi tter.java:1314)
... 56 more

---

Anyone have an idea why this is happening?
Regards,
Michael
Previous Topic:Deploy WebTools Project with version control system
Next Topic:Set default value of an element in the xsd schema editor
Goto Forum:
  


Current Time: Thu Apr 24 01:23:25 EDT 2014

Powered by FUDForum. Page generated in 0.01758 seconds