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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/06/27 23:57:26 UTC

[jira] Commented: (AXIS2-1522) WSDL2Java fails with "Can not find an attribute group for group reference" (Malformed UTF-8 Character Exception in WSDL2Java only in nightly build, not in 1.0 stable)

    [ https://issues.apache.org/jira/browse/AXIS2-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508668 ] 

Davanum Srinivas commented on AXIS2-1522:
-----------------------------------------

New error message with latest Axis2 snapshot

C:\axis2-SNAPSHOT\german>..\bin\wsdl2java.bat -u -uri schema\xmeld131.wsdl
Using AXIS2_HOME:   C:\axis2-SNAPSHOT
Using JAVA_HOME:    C:\JDK15
Retrieving schema at 'xmeld-nachrichten.xsd', relative to 'file:/C:/axis2-SNAPSHOT/german/schema/'.
Retrieving schema at 'xmeld-baukasten.xsd', relative to 'file:/C:/axis2-SNAPSHOT/german/schema/xmeld-nachrichten.xsd'.
Retrieving schema at 'xmeld-basistypen.xsd', relative to 'file:/C:/axis2-SNAPSHOT/german/schema/xmeld-baukasten.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:256)
        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.SimpleDBExtension.engage(SimpleDBExtension.java:50)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209)
        ... 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.SimpleDBExtension.engage(SimpleDBExtension.java:47)
        ... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: Can not find an attribute group for group reference allgemein.attrib.datentyp
        at org.apache.axis2.schema.SchemaCompiler.processAttributeGroupReference(SchemaCompiler.java:1020)
        at org.apache.axis2.schema.SchemaCompiler.processAttributes(SchemaCompiler.java:1003)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:975)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:908)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:859)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:514)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:474)
        at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1893)
        at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1782)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:971)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:908)
        at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1100)
        at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1071)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:987)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:908)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:859)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:514)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:474)
        at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1893)
        at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1782)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:971)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:908)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:859)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:514)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:474)
        at org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1893)
        at org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1782)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:971)
        at org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:908)
        at org.apache.axis2.schema.SchemaCompiler.processComplexContent(SchemaCompiler.java:1100)
        at org.apache.axis2.schema.SchemaCompiler.processContentModel(SchemaCompiler.java:1071)
        at org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:987)
        at org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:880)
        at org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:861)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:514)
        at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:485)
        at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:300)
        at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:282)
        at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:210)
        at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:77)
        ... 8 more

> WSDL2Java fails with "Can not find an attribute group for group reference" (Malformed UTF-8 Character Exception in WSDL2Java only in nightly build, not in 1.0 stable)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1522
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1522
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>         Environment: Win2k, SUN JDK 1.5.0_08
>            Reporter: Frank Steimke
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: wsdl.zip
>
>
> Hi,
> attached to this bugreport you will find the WSDL-File with three included Schemafiles for Type-Definitions.
> We are dealing with German eGovernment Applications, so there is a lot of <documentation> with German Text, inkluding German Umlaut. The main Schemafile, which is imported from WSDL, is xmeld-nachrichten.xsd. It was checked by IBMs Schema Quality Checker (SQC) without any Errors.
> Trying to generate Java Code by WSDL2Java works fine with AXIS2 1.0 standard Release, but compilation with "ant jar.server" failed. So I switched to nightly build from October 26.
> Trying to generate Java Code by WSDL2Java fails with a "Malformed UTF-8 Character" Exception. The Stacktrace gave some hints about this strange Character. Something seems to be wrong in a documentation where we find a German word with the Fragment 'über...', which is used a lot in these Files.
> So I removed all <annotation> Nodes within all three Schemata, and everything is fine. WSDL2Java generates Code without Exception, and this compiles to the *aar Archive without any Errors.
> This is a minor bug, as i have a Workaround to deal with it. But, besides of resolving the Error, my Question is: why did Axis2 1.0 standard work fine, and the snapshot did not? Did you change the the XML Parser or its configuration?
> Thanks in advance,
> Frank Steimke

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