wsdl2 codegen fails if the wsdl2 includes schema imports
--------------------------------------------------------
Key: AXIS2-3379
URL: https://issues.apache.org/jira/browse/AXIS2-3379
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: wsdl
Affects Versions: 1.3
Environment: winxp, jdk15
Reporter: Charitha Kankanamge
Assignee: Keith Godwin Chapman
Priority: Blocker
wsdl2 codegen fails with the following exception if the wsdl2 document includes
schema imports.
Service archive is attached here with.
C:\Axis2\Axis2-1.3\axis2-1.3\bin>wsdl2java.bat -uri
http://10.100.1.118:9762/services/calculatorImportSchema?wsdl2 -wv 2 -o
C:\Axis2\Axis2-1.3\axis2-1.3\bin\out
Using AXIS2_HOME: C:\Axis2\Axis2-1.3\axis2-1.3
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_12
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
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.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:236)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:101)
... 2 more
Caused by: java.lang.NullPointerException
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.createAxisMessage(WSDL20ToAxisServiceBuilder.java:976)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOperations(WSDL20ToAxisServiceBuilder.java:926)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterface(WSDL20ToAxisServiceBuilder.java:849)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:306)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:233)
... 3 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]