axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith Ranabahu" <ajith.ranab...@gmail.com>
Subject Re: SOAPFaultException with Axis2 WSDL2Java
Date Mon, 28 Aug 2006 17:43:31 GMT
Hi,
This is a question for the mailing list so I recommend you to ansl
these questions from the list (axis-dev, axis-user). Anyway I a not so
sure what the problem here. Can you attach the WSDL file ?

Ajith

On 8/28/06, Kumar, Sanjeev <Sanjeev.Kumar@cycos.com> wrote:
>
>
>
>
> Hello Ajith,
>
>
>
> I am using Axis2. Downloaded the nightly build and ran the WSDL2Java.
>
> Following error is seen:
>
> Using AXIS2_HOME:   D:\Axis2
>
> Using JAVA_HOME:    D:\j2sdk1.4.2_12
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: Element QName is null for
> SOAPFaultExceptionSession!
>
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>
>         at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>
>         at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>
> Caused by:
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: Element QName is null for
> SOAPFaultExceptionSession!
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:322)
>
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
>
>         ... 2 more
>
> Caused by: java.lang.RuntimeException: Element QName is null for
> SOAPFaultExceptionSession!
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1778)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1728)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1449)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:640)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:616)
>
>         at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:300)
>
>         ... 3 more
>
>
>
>
>
> I inserted following lines
>
>                                     <wsdl:fault
> name="SOAPFaultException"
> message="tns:SOAPFaultExceptionSession">
>
>                                     </wsdl:fault>
>
>
>
> In the downloaded sample Axis2SampleDocLit.wsdl I inserted the above line
> for exception.
>
>
>
>
>
> Could you please let me know why this error occurs when this exception
> support is added in wsdl file.
>
>
>
> Without SOAPFaultException insertion it works fine.
>
>
>
> It seems that "falult" is not supported??
>
>
>
>
>
> Best Regards
>
>
>
> Sanjeev
>
> Software Developer
>
> Phone: +49-2404-901-524
>
> Fax:   +49-2404-901-724
>
> sanjeev.kumar@cycos.com
>
> www.cycos.com
>
>
>
> Cycos AG
>
> Joseph-Von-Fraunhofer-Str. 7
>
> D-52477, Alsdorf.
>
>


-- 
Ajith Ranabahu

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message