axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjiva Weerawarana (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-418) wsdl2java fails with CodeGenerationException / NullPointerException
Date Tue, 21 Mar 2006 14:19:00 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-418?page=comments#action_12371239 ] 

Sanjiva Weerawarana commented on AXIS2-418:
-------------------------------------------

I have no problem with not supporting simpleContent right now, but we MUST throw an exception
saying "Unsupported schema feature for ADB; try XMLBeans data binding instead" or something
of that nature. NPE is not acceptable.

We have to do that for all unsupported XSD features .. I'm sure there's plenty of edge cases
like that that we don't handle.

Sanjiva.

> wsdl2java fails with CodeGenerationException / NullPointerException
> -------------------------------------------------------------------
>
>          Key: AXIS2-418
>          URL: http://issues.apache.org/jira/browse/AXIS2-418
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: Tools
>     Versions: 0.94
>  Environment: Java 1.5.0_06, Windows XP Pro SP2
>     Reporter: Mathias Raacke
>     Assignee: Ajith Harshana Ranabahu

>
> wsdl2java -uri books.wsdl 
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
> : java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException
> : java.lang.NullPointerException
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:118)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilation
> Exception: java.lang.NullPointerException
>         at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:152)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:80)
>         ... 2 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPoi
> nterException
>         at org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.ja
> va:143)
>         at org.apache.axis2.schema.SchemaCompiler.writeElement(SchemaCompiler.ja
> va:252)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:19
> 1)
>         at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:14
> 1)
>         at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(Simp
> leDBExtension.java:104)
>         ... 3 more
> Caused by: java.lang.NullPointerException
>         at org.apache.axis2.schema.writer.JavaBeanWriter.getBeanElement(JavaBean
> Writer.java:357)
>         at org.apache.axis2.schema.writer.JavaBeanWriter.process(JavaBeanWriter.
> java:270)
>         at org.apache.axis2.schema.writer.JavaBeanWriter.write(JavaBeanWriter.ja
> va:141)
>         ... 7 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


Mime
View raw message