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 "Harald Rieder (JIRA)" <ji...@apache.org> on 2011/04/21 11:51:05 UTC

[jira] [Created] (AXIS2-5007) Current 1.7.0 snapshot generates incompilable Java code from complex WSDL

Current 1.7.0 snapshot generates incompilable Java code from complex WSDL
-------------------------------------------------------------------------

                 Key: AXIS2-5007
                 URL: https://issues.apache.org/jira/browse/AXIS2-5007
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.7.0
            Reporter: Harald Rieder


Java code is generated from WSDL (see attachment) like shown in these Ant tasks:
{noformat}
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="false" dir="${basedir}">
			<classpath refid="axis2.classpath" />
			<arg value="-S" />
			<arg value="source" />
			<arg value="-uri" />
			<!-- file URI should not contain spaces, Axis2 would fail: -->
			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_LTU_service.wsdl" />
			<!-- synchronous only : -->
			<arg value="-s" />
			<!-- generate test client code: -->
			<arg value="-t" />
			<!-- do not destroy any present build.xml: -->
			<arg value="--noBuildXML" />
			<!-- generate the java stubs always freshly: -->
			<arg value="-or" />
			<!-- build a server -->
			<arg value="-ss" />
			<arg value="-p" />
			<arg value="com.danet.epm.tcs.generated" />
			<arg value="-R" />
			<arg value="WebContent/WEB-INF/services/ltu/META-INF" />
			<arg value="-sd" />
		</java>
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
			<classpath refid="axis2.classpath" />
			<arg value="-S" />
			<arg value="source" />
			<arg value="-uri" />
			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_Weather_service.wsdl" />
			<arg value="-s" />
			<arg value="-t" />
			<arg value="--noBuildXML" />
			<arg value="-or" />
			<arg value="-ss" />
			<arg value="-p" />
			<arg value="com.danet.epm.tcs.generated" />
			<arg value="-R" />
			<arg value="WebContent/WEB-INF/services/weather/META-INF" />
			<arg value="-sd" />
		</java>
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
			<classpath refid="axis2.classpath" />
			<arg value="-S" />
			<arg value="source" />
			<arg value="-uri" />
			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_TLS_service.wsdl" />
			<arg value="-s" />
			<arg value="-t" />
			<arg value="--noBuildXML" />
			<arg value="-or" />
			<arg value="-ss" />
			<arg value="-p" />
			<arg value="com.danet.epm.tcs.generated" />
			<arg value="-R" />
			<arg value="WebContent/WEB-INF/services/tls/META-INF" />
			<arg value="-sd" />
		</java>
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
			<classpath refid="axis2.classpath" />
			<arg value="-S" />
			<arg value="source" />
			<arg value="-uri" />
			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/LTU_for_TCS_service.wsdl" />
			<arg value="-s" />
			<arg value="-t" />
			<arg value="--noBuildXML" />
			<arg value="-or" />
			<arg value="-ss" />
			<arg value="-p" />
			<arg value="com.danet.epm.tcs.generated" />
			<arg value="-R" />
			<arg value="WebContent/WEB-INF/services/ltusim/META-INF" />
			<arg value="-sd" />
		</java>
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
			<classpath refid="axis2.classpath" />
			<arg value="-S" />
			<arg value="source" />
			<arg value="-uri" />
			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/Weather_for_TCS_service.wsdl" />
			<arg value="-s" />
			<arg value="-t" />
			<arg value="--noBuildXML" />
			<arg value="-or" />
			<arg value="-ss" />
			<arg value="-p" />
			<arg value="com.danet.epm.tcs.generated" />
			<arg value="-R" />
			<arg value="WebContent/WEB-INF/services/weathersim/META-INF" />
			<arg value="-sd" />
		</java>
{noformat}
The generated Java code has these errors:
{noformat}
Buildfile: D:\HR09044\EPMWeblogicADF11\TCSWebService\projectBuilder.xml
build:
    [javac] Compiling 118 source files to D:\HR09044\EPMWeblogicADF11\TCSWebService\WebContent\WEB-INF\classes
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt3.java:52: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "7") <= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt24.java:52: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "4095") <= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:52: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "254") <= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:59: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:52: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "127") <= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:59: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_DETyp.java:52: cannot find symbol
    [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
    [javac]                                                                                                     ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:309: cannot find symbol
    [javac] symbol  : method serialize(javax.xml.namespace.QName,javax.xml.stream.XMLStreamWriter)
    [javac] location: interface org.apache.axiom.om.OMElement
    [javac]                                            localDeviceState.serialize(new javax.xml.namespace.QName("","deviceState"),
    [javac]                                                            ^
    [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:695: cannot find symbol
    [javac] symbol  : variable Factory
    [javac] location: interface org.apache.axiom.om.OMElement
    [javac]                                                 object.setDeviceState(org.apache.axiom.om.OMElement.Factory.parse(reader));
    [javac]                                                                                                    ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 9 errors
{noformat}

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


[jira] [Commented] (AXIS2-5007) Current 1.7.0 snapshot generates incompilable Java code from complex WSDL

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

Sagara Gunathunga  commented on AXIS2-5007:
-------------------------------------------

Above zip file contains more than 12 WSDLs and number of XSDs, if you need support please attach a complete but very simple WSDL to reproduce to see your issue.
                
> Current 1.7.0 snapshot generates incompilable Java code from complex WSDL
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-5007
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5007
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.7.0
>            Reporter: Harald Rieder
>         Attachments: wsdl.zip
>
>
> Java code is generated from WSDL (see attachment) like shown in these Ant tasks:
> {noformat}
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="false" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<!-- file URI should not contain spaces, Axis2 would fail: -->
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_LTU_service.wsdl" />
> 			<!-- synchronous only : -->
> 			<arg value="-s" />
> 			<!-- generate test client code: -->
> 			<arg value="-t" />
> 			<!-- do not destroy any present build.xml: -->
> 			<arg value="--noBuildXML" />
> 			<!-- generate the java stubs always freshly: -->
> 			<arg value="-or" />
> 			<!-- build a server -->
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/ltu/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_Weather_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/weather/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_TLS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/tls/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/LTU_for_TCS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/ltusim/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/Weather_for_TCS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/weathersim/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> {noformat}
> The generated Java code has these errors:
> {noformat}
> Buildfile: D:\HR09044\EPMWeblogicADF11\TCSWebService\projectBuilder.xml
> build:
>     [javac] Compiling 118 source files to D:\HR09044\EPMWeblogicADF11\TCSWebService\WebContent\WEB-INF\classes
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt3.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "7") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt24.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "4095") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "254") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:59: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "127") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:59: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_DETyp.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:309: cannot find symbol
>     [javac] symbol  : method serialize(javax.xml.namespace.QName,javax.xml.stream.XMLStreamWriter)
>     [javac] location: interface org.apache.axiom.om.OMElement
>     [javac]                                            localDeviceState.serialize(new javax.xml.namespace.QName("","deviceState"),
>     [javac]                                                            ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:695: cannot find symbol
>     [javac] symbol  : variable Factory
>     [javac] location: interface org.apache.axiom.om.OMElement
>     [javac]                                                 object.setDeviceState(org.apache.axiom.om.OMElement.Factory.parse(reader));
>     [javac]                                                                                                    ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 9 errors
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (AXIS2-5007) Current 1.7.0 snapshot generates incompilable Java code from complex WSDL

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

Harald Rieder updated AXIS2-5007:
---------------------------------

    Attachment: wsdl.zip

> Current 1.7.0 snapshot generates incompilable Java code from complex WSDL
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-5007
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5007
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.7.0
>            Reporter: Harald Rieder
>         Attachments: wsdl.zip
>
>
> Java code is generated from WSDL (see attachment) like shown in these Ant tasks:
> {noformat}
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="false" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<!-- file URI should not contain spaces, Axis2 would fail: -->
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_LTU_service.wsdl" />
> 			<!-- synchronous only : -->
> 			<arg value="-s" />
> 			<!-- generate test client code: -->
> 			<arg value="-t" />
> 			<!-- do not destroy any present build.xml: -->
> 			<arg value="--noBuildXML" />
> 			<!-- generate the java stubs always freshly: -->
> 			<arg value="-or" />
> 			<!-- build a server -->
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/ltu/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_Weather_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/weather/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_TLS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/tls/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/LTU_for_TCS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/ltusim/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/Weather_for_TCS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/weathersim/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> {noformat}
> The generated Java code has these errors:
> {noformat}
> Buildfile: D:\HR09044\EPMWeblogicADF11\TCSWebService\projectBuilder.xml
> build:
>     [javac] Compiling 118 source files to D:\HR09044\EPMWeblogicADF11\TCSWebService\WebContent\WEB-INF\classes
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt3.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "7") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt24.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "4095") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "254") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:59: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "127") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:59: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_DETyp.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:309: cannot find symbol
>     [javac] symbol  : method serialize(javax.xml.namespace.QName,javax.xml.stream.XMLStreamWriter)
>     [javac] location: interface org.apache.axiom.om.OMElement
>     [javac]                                            localDeviceState.serialize(new javax.xml.namespace.QName("","deviceState"),
>     [javac]                                                            ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:695: cannot find symbol
>     [javac] symbol  : variable Factory
>     [javac] location: interface org.apache.axiom.om.OMElement
>     [javac]                                                 object.setDeviceState(org.apache.axiom.om.OMElement.Factory.parse(reader));
>     [javac]                                                                                                    ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 9 errors
> {noformat}

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


[jira] [Resolved] (AXIS2-5007) Current 1.7.0 snapshot generates incompilable Java code from complex WSDL

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

Sagara Gunathunga  resolved AXIS2-5007.
---------------------------------------

    Resolution: Incomplete
    
> Current 1.7.0 snapshot generates incompilable Java code from complex WSDL
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-5007
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5007
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.7.0
>            Reporter: Harald Rieder
>         Attachments: wsdl.zip
>
>
> Java code is generated from WSDL (see attachment) like shown in these Ant tasks:
> {noformat}
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="false" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<!-- file URI should not contain spaces, Axis2 would fail: -->
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_LTU_service.wsdl" />
> 			<!-- synchronous only : -->
> 			<arg value="-s" />
> 			<!-- generate test client code: -->
> 			<arg value="-t" />
> 			<!-- do not destroy any present build.xml: -->
> 			<arg value="--noBuildXML" />
> 			<!-- generate the java stubs always freshly: -->
> 			<arg value="-or" />
> 			<!-- build a server -->
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/ltu/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_Weather_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/weather/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/TCS_for_TLS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/tls/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/LTU_for_TCS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/ltusim/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" dir="${basedir}">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-S" />
> 			<arg value="source" />
> 			<arg value="-uri" />
> 			<arg value="file:///${basedir}/WebContent/WEB-INF/wsdl/Weather_for_TCS_service.wsdl" />
> 			<arg value="-s" />
> 			<arg value="-t" />
> 			<arg value="--noBuildXML" />
> 			<arg value="-or" />
> 			<arg value="-ss" />
> 			<arg value="-p" />
> 			<arg value="com.danet.epm.tcs.generated" />
> 			<arg value="-R" />
> 			<arg value="WebContent/WEB-INF/services/weathersim/META-INF" />
> 			<arg value="-sd" />
> 		</java>
> {noformat}
> The generated Java code has these errors:
> {noformat}
> Buildfile: D:\HR09044\EPMWeblogicADF11\TCSWebService\projectBuilder.xml
> build:
>     [javac] Compiling 118 source files to D:\HR09044\EPMWeblogicADF11\TCSWebService\WebContent\WEB-INF\classes
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt3.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "7") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\UnsignedInt24.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedInt,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "4095") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "254") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_Funktionsgruppe.java:59: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "127") <= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_AnwendungsID.java:59: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\devoteam\wsdl\tls2002\OSI7_DETyp.java:52: cannot find symbol
>     [javac] symbol  : method compare(org.apache.axis2.databinding.types.UnsignedByte,java.lang.String)
>     [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
>     [javac]                                                 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "1") >= 0){
>     [javac]                                                                                                     ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:309: cannot find symbol
>     [javac] symbol  : method serialize(javax.xml.namespace.QName,javax.xml.stream.XMLStreamWriter)
>     [javac] location: interface org.apache.axiom.om.OMElement
>     [javac]                                            localDeviceState.serialize(new javax.xml.namespace.QName("","deviceState"),
>     [javac]                                                            ^
>     [javac] D:\HR09044\EPMWeblogicADF11\TCSWebService\source\com\opel\schema\epm\weather_tcs\WeatherLTUState.java:695: cannot find symbol
>     [javac] symbol  : variable Factory
>     [javac] location: interface org.apache.axiom.om.OMElement
>     [javac]                                                 object.setDeviceState(org.apache.axiom.om.OMElement.Factory.parse(reader));
>     [javac]                                                                                                    ^
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 9 errors
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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