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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/10/17 10:51:51 UTC

[jira] Resolved: (AXIS2-1449) Creation of web service client from wsdl fails with xmlbeans binding where scomp suceeds for the same wsdl

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

Amila Chinthaka Suriarachchi resolved AXIS2-1449.
-------------------------------------------------

    Resolution: Fixed

please reopen the issue if it still exists with the -Ewdc option

> Creation of web service client from wsdl fails with xmlbeans binding where scomp suceeds for the same wsdl
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1449
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1449
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Microsoft Windows, Sun JDK 1.5.0_09-b01, Axis2 1.1 Standard and the SNAPSHOT from 10-17-2006
>            Reporter: David Schaefgen
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: sample.zip
>
>
> I am attempting to create a web service client for a pre-existing service based on the wsdl.  The wsdl is WS-I compliant and validates.
> 1. I run WSDL2Java.bat -o c:\development\src\customer -d xmlbeans -uri path\to\syncCustomerPartyMaster.wsdl
> 2. I get the following results:
> Using AXIS2_HOME:   C:\development\tools\axis2-std-1.1
> Using JAVA_HOME:    c:\development\sdks\jdk1.5.0_09
> Retrieving schema at 'AchUniversalDataModel/schema/BODs/SyncCustomerPartyMaster.xsd', relative to 'file:/c:/Program%20Fi
> les/Apache%20Group/Apache2/htdocs/ws/'.
> Retrieving schema at '../OAGIS/9.0/Resources/Nouns/CustomerPartyMaster.xsd', relative to 'file:/c:/Program%20Files/Apach
> e%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/BODs/SyncCustomerPartyMaster.xsd'.
> Retrieving schema at '../Components/Common/Components.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2
> /htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Nouns/CustomerPartyMaster.xsd'.
> Retrieving schema at 'Meta.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/AchUniversalData
> Model/schema/OAGIS/9.0/Resources/Components/Common/Components.xsd'.
> Retrieving schema at 'Fields.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/AchUniversalDa
> taModel/schema/OAGIS/9.0/Resources/Components/Common/Meta.xsd'.
> Retrieving schema at '../CoreComponents/UnqualifiedDataTypes.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/
> Apache2/htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/Fields.xsd'.
> Retrieving schema at '../Common/CodeLists.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/A
> chUniversalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/UnqualifiedDataTypes.xsd'.
> Retrieving schema at '../CoreComponents/CodeList_CurrencyCode_ISO_7_04.xsd', relative to 'file:/c:/Program%20Files/Apach
> e%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/CodeLists.xsd'.
> Retrieving schema at '../CoreComponents/CodeList_MIMEMediaTypeCode_IANA_7_04.xsd', relative to 'file:/c:/Program%20Files
> /Apache%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/CodeLists.xsd'.
> Retrieving schema at '../CoreComponents/CodeList_UnitCode_UNECE_7_04.xsd', relative to 'file:/c:/Program%20Files/Apache%
> 20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/CodeLists.xsd'.
> Retrieving schema at '../CoreComponents/CodeList_LanguageCode_ISO_7_04.xsd', relative to 'file:/c:/Program%20Files/Apach
> e%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/CodeLists.xsd'.
> Retrieving schema at '../CoreComponents/QualifiedDataTypes.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Ap
> ache2/htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/Fields.xsd'.
> Retrieving schema at 'UnqualifiedDataTypes.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/
> AchUniversalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/QualifiedDataTypes.xsd'.
> Retrieving schema at '../Common/CodeLists.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/A
> chUniversalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/QualifiedDataTypes.xsd'.
> Retrieving schema at '../Common/CodeLists.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/A
> chUniversalDataModel/schema/OAGIS/9.0/Resources/Components/Common/Fields.xsd'.
> Retrieving schema at '../Resources/Components/Common/Components.xsd', relative to 'file:/c:/Program%20Files/Apache%20Gro
> up/Apache2/htdocs/ws/AchUniversalDataModel/schema/BODs/SyncCustomerPartyMaster.xsd'.
> Retrieving schema at '../../../OAGIS/9.0/Resources/Components/Common/Components.xsd', relative to 'file:/c:/Program%20Fi
> les/Apache%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/Resources/Components/Common/Components.xsd'.
> Retrieving schema at 'Fields.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdocs/ws/AchUniversalDa
> taModel/schema/Resources/Components/Common/Components.xsd'.
> Retrieving schema at '../../../OAGIS/9.0/Resources/Components/Common/CodeLists.xsd', relative to 'file:/c:/Program%20Fil
> es/Apache%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/Resources/Components/Common/Fields.xsd'.
> Retrieving schema at '../../../OAGIS/9.0/Resources/Components/Common/Fields.xsd', relative to 'file:/c:/Program%20Files/
> Apache%20Group/Apache2/htdocs/ws/AchUniversalDataModel/schema/Resources/Components/Common/Fields.xsd'.
> Retrieving schema at 'AchUniversalDataModel/schema/OAGIS/9.0/BODs/Developer/ConfirmBOD.xsd', relative to 'file:/c:/Progr
> am%20Files/Apache%20Group/Apache2/htdocs/ws/'.
> Retrieving schema at '../../Resources/Nouns/BOD.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2/htdoc
> s/ws/AchUniversalDataModel/schema/OAGIS/9.0/BODs/Developer/ConfirmBOD.xsd'.
> Retrieving schema at '../Components/Common/Components.xsd', relative to 'file:/c:/Program%20Files/Apache%20Group/Apache2
> /htdocs/ws/AchUniversalDataModel/schema/OAGIS/9.0/Resources/Nouns/BOD.xsd'.
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://ns.achfood.com/oagis] and systemId [AchUniversalDataModel/schema/BODs/SyncC
> ustomerPartyMaster.xsd]
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9] and systemId [AchUniversalDataModel/schem
> a/OAGIS/9.0/Resources/Nouns/CustomerPartyMaster.xsd]
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [null] and systemId [AchUniversalDataModel/schema/Resources/Components/Common/Compo
> nents.xsd]
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9] and systemId [AchUniversalDataModel/schem
> a/OAGIS/9.0/Resources/Components/Common/Components.xsd]
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [null] and systemId [AchUniversalDataModel/schema/Resources/Components/Common/Field
> s.xsd]
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9] and systemId [AchUniversalDataModel/schem
> a/OAGIS/9.0/Resources/Components/Common/Fields.xsd]
> Oct 18, 2006 3:29:51 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9/codelists] and systemId [AchUniversalDataM
> odel/schema/OAGIS/9.0/Resources/Components/Common/CodeLists.xsd]
> Oct 18, 2006 3:29:52 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9/currencycode/54217:2001] and systemId [Ach
> UniversalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/CodeList_CurrencyCode_ISO_7_04.xsd]
> Oct 18, 2006 3:29:52 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9/languagecode/5639:1988] and systemId [AchU
> niversalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/CodeList_LanguageCode_ISO_7_04.xsd]
> Oct 18, 2006 3:29:52 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9/IANAMIMEMediaTypes:2003] and systemId [Ach
> UniversalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/CodeList_MIMEMediaTypeCode_IANA_7_04.xsd]
> Oct 18, 2006 3:29:52 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity
> INFO: Resolving schema with publicId [http://www.openapplications.org/oagis/9/unitcode/66411:2001] and systemId [AchUniv
> ersalDataModel/schema/OAGIS/9.0/Resources/Components/CoreComponents/CodeList_UnitCode_UNECE_7_04.xsd]
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.
> reflect.InvocationTargetException
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:92)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177)
>         ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:82)
>         ... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: C:\development\tools\axis2-std-1.1\bin\AchUnive
> rsalDataModel\schema\BODs\SyncCustomerPartyMaster.xsd:2:1: error: java.io.CharConversionException: Characters larger tha
> n 4 bytes are not supported: byte 0xa7 implies a length of more than 4 bytes
>         at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:242)
>         ... 8 more
> Caused by: org.apache.xmlbeans.XmlException: C:\development\tools\axis2-std-1.1\bin\AchUniversalDataModel\schema\BODs\Sy
> ncCustomerPartyMaster.xsd:2:1: error: java.io.CharConversionException: Characters larger than 4 bytes are not supported:
>  byte 0xa7 implies a length of more than 4 bytes
>         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
>         at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:168)
>         ... 8 more
> 3. The exception seems to originate with xmlbeans so I use the following procedure to compile xml beans for the wsdl, to see if I can isolate the problem to xml beans: scomp -mx 1024M -out foo.jar path\to\syncCustomerPartyMaster.wsdl
> 4. This process produces the following output (no errors are reported):
> Time to build schema type system: 2.422 seconds
> Time to generate code: 35.235 seconds
> Time to compile code: 49.799 seconds
> Compiled types to: foo.jar
> 5. I've also been through the indicated schema and can find now byte with a value of 0xa7 using a hex editor.
> I am going to attach a zip file that contains the wsdl and the schema directory structure that it references.

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org