[ 
http://issues.apache.org/jira/browse/AXIS2-1681?page=comments#action_12449723 ] 
            
Patrick Podenski commented on AXIS2-1681:
-----------------------------------------

I just downloaded the latest, released Axis 2 1.1 release from yesterday and 
retried the same person WSDL example. Now I get a 
java.lang.reflect.InvocationTargetException:

E:\SOA_TOOLS\axis2-1.1\axis2-1.1\bin>WSDL2Java -uri Person.wsdl -ss -sd
Using AXIS2_HOME:   E:\SOA_TOOLS\axis2-1.1\axis2-1.1
Using JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_09
Retrieving schema at 'Person.xsd', relative to 
'file:/E:/SOA_TOOLS/axis2-1.1/axis2-1.1/bin/'.
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.SimpleDBExtension.engage(SimpleDBExtension.java:52)
        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.SimpleDBExtension.engage(SimpleDBExtension.java:49)
        ... 3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: 
java.lang.NullPointerException
        at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:257)
        at 
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:72)
        ... 8 more
Caused by: java.lang.NullPointerException
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:592)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
        at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488)
        at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450)
        at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950)
        at 
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:909)
        at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:864)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
        at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488)
        at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450)
        at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950)
        at 
org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:909)
        at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:864)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:489)
        at 
org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:1488)
        at 
org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:1450)
        at 
org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:950)
        at 
org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:883)
        at 
org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:866)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:527)
        at 
org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:499)
        at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:336)
        at 
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:248)
        ... 9 more

> SchemaCompilationException: Type missing!
> -----------------------------------------
>
>                 Key: AXIS2-1681
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1681
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.0
>         Environment: Mac OS X Java is java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>            Reporter: Patrick Podenski
>         Attachments: er.wsdl, Person.wsdl, Person.xsd
>
>
> Exception occurs when trying to generate Java code for a simple WSDL with 
> imported XML Schema.
> This example generates correctly using Axis 1.3 in Eclipse 3.2.1 + WTP 1.5.1.
> I will enclose the related WSDL and XSD files. Note that the same error 
> occurs when the XML Schema is inlined in the WSDL.
> The exact script used is as follows (defaults to adb):
> WSDL2Java.sh -uri Person.wsdl -ss -sd
> And the resultant exception and stack trace follows:
> Retrieving schema at 'Person.xsd'.
> l
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: 
> org.apache.axis2.schema.SchemaCompilationException: Type missing!
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
>         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: 
> org.apache.axis2.schema.SchemaCompilationException: Type missing!
>         at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:117)
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
>         ... 2 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: Type missing!
>         at 
> org.apache.axis2.schema.writer.JavaBeanWriter.addPropertyEntries(JavaBeanWriter.java:464)
>         at 
> org.apache.axis2.schema.writer.JavaBeanWriter.populateInfo(JavaBeanWriter.java:426)
>         at 
> org.apache.axis2.schema.writer.JavaBeanWriter.getBeanElement(JavaBeanWriter.java:403)
>         at 
> org.apache.axis2.schema.writer.JavaBeanWriter.process(JavaBeanWriter.java:320)
>         at 
> org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.java:175)
>         at 
> org.apache.axis2.schema.SchemaCompiler.writeComplexType(SchemaCompiler.java:634)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:620)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:577)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)
>         at 
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processNamedComplexSchemaType(SchemaCompiler.java:616)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:577)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:334)
>         at 
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:915)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.java:878)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler.java:643)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType(SchemaCompiler.java:594)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java:579)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:366)
>         at 
> org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)
>         at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:226)
>         at 
> org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:181)
>         at 
> org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:70)
>         ... 3 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
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]

Reply via email to