You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tom Kirkman (JIRA)" <ji...@apache.org> on 2009/07/30 00:57:14 UTC

[jira] Created: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

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


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.


[jira] Updated: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

Posted by "Tom Kirkman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Kirkman updated AXIS2-4454:
-------------------------------

    Attachment: Test.wsdl

> 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.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.


[jira] Commented: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

Posted by "Leon Koch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750773#action_12750773 ] 

Leon Koch commented on AXIS2-4454:
----------------------------------

Looks like that's an issue with the Eclipse WSDL editor: https://bugs.eclipse.org/bugs/show_bug.cgi?id=237918

> 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.


[jira] Updated: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

Posted by "Leon Koch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leon Koch updated AXIS2-4454:
-----------------------------

    Attachment: Test-working.wsdl

Working Test.wsdl

> 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.


[jira] Commented: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

Posted by "Leon Koch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750250#action_12750250 ] 

Leon Koch commented on AXIS2-4454:
----------------------------------

This looks to more an issue with the provided wsdl, rather than Axis.

If you add the following under the "operation" node, wsdl2java will successfully generate the code. 

 <wsdl:fault name="fault">
  <soap:fault name="fault" use="literal"/>
 </wsdl: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.


[jira] Resolved: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4454.
-------------------------------------------------

    Resolution: Invalid

you need to specify the faults at the binding level as well.

> 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.


[jira] Commented: (AXIS2-4454) A Fault Message is being parsed such that AxisMessage.elementQname is null for a valid Element QName value.

Posted by "Tom Kirkman (JIRA)" <ji...@apache.org>.
    [ 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.