axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Kirkman (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.
Date Wed, 02 Sep 2009 14:34:32 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750453#action_12750453
] 

Tom Kirkman commented on AXIS2-4454:
------------------------------------

Right, but the provided wsdl was the one auto-generated by the Eclipse
WSDL editor plugin, after using the ui to add a Fault.



> A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid
Element QName value.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4454
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4454
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4.1
>         Environment: Windows 2003 Server, Axis2 Codegen Wizard 1.3 Eclipse plugin (Eclipse
Ganymede 3.4.2), jdk 1.5.0_12
>            Reporter: Tom Kirkman
>         Attachments: Test-working.wsdl, Test.wsdl
>
>
> During:
> C:\testWithFault>%AXIS2_HOME%\bin\wsdl2java.bat -uri file:\\\c:\testWithFault/Test.wsdl
-o c:\testWithFault -d adb -ss -sd
> Receive:
> Using AXIS2_HOME:   D:\apps\axis2\axis2-1.4
> Using JAVA_HOME:    d:/apps/java/jdk1.5.0_12
> Retrieving document at 'file:\\\c:\testWithFault/Test.wsdl'.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
> : org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeExcept
> ion: Element QName is null for NewOperation_faultMsg!
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:271)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.Runt
> imeException: Element QName is null for NewOperation_faultMsg!
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1370)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:253)
>         ... 2 more
> Caused by: java.lang.RuntimeException: Element QName is null for NewOperation_fa
> ultMsg!
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2829)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2748)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2269)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:206
> 5)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1991)
>         at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
> itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1327)
> Using a "Test.wsdl" file that is auto-generated by the WSDL Editor, and validates successfully:
> A. With no modifications - wsdl2java processes successfully.
> B. Added a Fault to the NewOperation via the graphical editor - wsdl2java throws the
above error, even though the Fault Message's QName has a valid value.
> Same problem occurs using Axis 1.5.
> Apparently the Test.wsdl's Fault Message is parsed incorrectly, such that the org.apache.axis2.description.AxisMessage
representing the Fault Message has a null elementQname field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message