[
https://issues.apache.org/jira/browse/AXIS2-4966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Harald Rieder updated AXIS2-4966:
---------------------------------
Component/s: kernel
Added affected component "kernel", since WSDL11ToAxisServiceBuilder is part of
axis2-kernel.jar.
The problem seems to be solved on the trunk SVN Rev. 1095638. The WSDL can be
compiled with 1.7.0-SNAPSHOT from yesterday.
> NullPointerException on compiling complex WSDL with
> org.apache.axis2.wsdl.WSDL2Java
> -----------------------------------------------------------------------------------
>
> Key: AXIS2-4966
> URL: https://issues.apache.org/jira/browse/AXIS2-4966
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.5.4
> Environment: Apache Ant
> Reporter: Harald Rieder
> Attachments: wsdl.zip
>
>
> When compiling the WSDL in TCS.wsdl of the attachment wsdl.zip, this is the
> output:
> [java] Retrieving document at
> 'file:///D:\HR09044\EPMWeblogicADF11\TCSWebService/WebContent/WEB-INF/wsdl/TCS.wsdl'.
> [java] Retrieving document at 'TCS_for_LTU.wsdl', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/TCS.wsdl'.
> [java] Retrieving document at 'LTU-TCS.wsdl', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/TCS_for_LTU.wsdl'.
> [java] Retrieving document at 'EPM_common.wsdl', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'ResultCodeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'DeviceStateEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'MeasurementTypeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'PhysicalQuantityEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'LabelTypeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'SectionModeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'BarModeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'BarStateEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'PassageTypeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'TrafficLightModeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'TrafficLightStateEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'RFIDCommandEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving document at
> 'file:///D:\HR09044\EPMWeblogicADF11\TCSWebService/WebContent/WEB-INF/wsdl/TCS.wsdl'.
> [java] Retrieving document at 'TCS_for_LTU.wsdl', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/TCS.wsdl'.
> [java] Retrieving document at 'LTU-TCS.wsdl', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/TCS_for_LTU.wsdl'.
> [java] Retrieving document at 'EPM_common.wsdl', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'ResultCodeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'DeviceStateEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'MeasurementTypeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'PhysicalQuantityEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/EPM_common.wsdl'.
> [java] Retrieving schema at 'LabelTypeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'SectionModeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'BarModeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'BarStateEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'PassageTypeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'TrafficLightModeEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'TrafficLightStateEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] Retrieving schema at 'RFIDCommandEnum.xsd', relative to
> 'file:/D:/HR09044/EPMWeblogicADF11/TCSWebService/WebContent/WEB-INF/wsdl/LTU-TCS.wsdl'.
> [java] log4j:WARN No appenders could be found for logger
> (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
> [java] log4j:WARN Please initialize the log4j system properly.
> [java] Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
> [java] at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
> [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [java] Caused by: org.apache.axis2.AxisFault
> [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> [java] at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
> [java] at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
> [java] at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
> [java] ... 2 more
> [java] Caused by: java.lang.NullPointerException
> [java] at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1340)
> [java] at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:591)
> [java] at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:468)
> [java] at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:362)
> [java] ... 4 more
> WSDL2Java has been called by Ant from a build file like this:
> <path id="axis2.classpath">
> <fileset dir="${workspace}/axis2-1.5.4/lib">
> <include name="**/*.jar"/>
> </fileset>
> </path>
> <target name="wscompile"
> description="Compile WSDLs with Axis2 compiler">
> <mkdir dir="${basedir}/WebContent/WEB-INF/classes"/>
> <java classname="org.apache.axis2.wsdl.WSDL2Java"
> fork="true" dir="${basedir}">
> <classpath refid="axis2.classpath"/>
> <arg value="-uri"/>
> <arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS.wsdl"/>
> </java>
> </target>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]