Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 10233 invoked from network); 31 Jan 2007 14:57:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 14:57:02 -0000 Received: (qmail 80632 invoked by uid 500); 31 Jan 2007 14:56:55 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 80530 invoked by uid 500); 31 Jan 2007 14:56:55 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 80486 invoked by uid 99); 31 Jan 2007 14:56:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 06:56:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 06:56:46 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2213E714312 for ; Wed, 31 Jan 2007 06:56:07 -0800 (PST) Message-ID: <30728276.1170255367137.JavaMail.jira@brutus> Date: Wed, 31 Jan 2007 06:56:07 -0800 (PST) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-1449) Creation of web service client from wsdl fails with xmlbeans binding where scomp suceeds for the same wsdl In-Reply-To: <13428938.1161204039682.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-1449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas updated AXIS2-1449: ------------------------------------ Assignee: Amila Chinthaka Suriarachchi > 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 > Assigned To: Amila Chinthaka Suriarachchi > 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