axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (AXIS2-4533) CodeGen Exception reusing messages for multiple faults.
Date Thu, 11 Aug 2011 22:40:27 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen reopened AXIS2-4533:
------------------------------------

      Assignee: Andreas Veithen

As explained in AXIS2-5034, this change causes a couple of issues. In particular, the code
generated by 1.5.x and 1.6.0 is very different (with respect to exceptions). I'm preparing
a different fix that avoids the "Element QName is null" error, but that leaves the code generation
conventions intact.

> CodeGen Exception reusing messages for multiple faults.
> -------------------------------------------------------
>
>                 Key: AXIS2-4533
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4533
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5
>         Environment: Windows Vista Business 64bit
> Java 1.5
>            Reporter: Christoph Kreidler
>            Assignee: Andreas Veithen
>            Priority: Minor
>         Attachments: IdaresWS.wsdl, idares-model.xsd
>
>
> I have a WSDL file with multiple ports and operations. I declared two WSDL messages as
fault messages and ran WSDL2Code:
> #########################
> -uri ${project_loc:IdaresEvalProcess}/IdaresWS.wsdl
> -p de.ahija.thesis.idares.skeleton
> -Emp de.ahija.thesis.idares.skeleton
> -d adb
> -ss
> -sd
> -ssi
> -g
> -S gen/skeleton
> -R gen/res
> -or
> --noBuildXML
> #########################
> Unexpectedly I got an Exception:
> #########################
> Retrieving document at 'C:\Users\Ahija\Documents\Studium\S10\Diplomarbeit\Java\code\Idares\IdaresEvalProcess/IdaresWS.wsdl'.
> Retrieving schema wsdl:imported from 'idares-model.xsd', relative to 'file:/C:/Users/Ahija/Documents/Studium/S10/Diplomarbeit/Java/code/Idares/IdaresEvalProcess/IdaresWS.wsdl'.
> Retrieving document at 'C:\Users\Ahija\Documents\Studium\S10\Diplomarbeit\Java\code\Idares\IdaresEvalProcess/IdaresWS.wsdl'.
> Retrieving schema wsdl:imported from 'idares-model.xsd', relative to 'file:/C:/Users/Ahija/Documents/Studium/S10/Diplomarbeit/Java/code/Idares/IdaresEvalProcess/IdaresWS.wsdl'.
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Element QName is null for sqlErrorMessage!
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
Element QName is null for sqlErrorMessage!
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1432)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:253)
> 	... 1 more
> Caused by: java.lang.RuntimeException: Element QName is null for sqlErrorMessage!
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2908)
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2827)
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2348)
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2224)
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:2181)
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:2083)
> 	at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1378)
> 	... 2 more
> #########################
> Interestingly the bug does not appear, if I use a different message for each fault.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message