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 "Filip Borowski (JIRA)" <ji...@apache.org> on 2006/11/07 07:23:12 UTC

[jira] Commented: (AXIS2-816) WSDL2Java throws NullPointer

    [ http://issues.apache.org/jira/browse/AXIS2-816?page=comments#action_12447656 ] 
            
Filip Borowski commented on AXIS2-816:
--------------------------------------


   [[ Old comment, sent by email on Fri, 23 Jun 2006 16:10:34 +0000 ]]

hey I have similar problem. I'm new to axis2. I have wsdl from which in 
axis 1.* I have succesfully generated java code, but in axis2 I got 
following exception:


Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.NullPointerException
    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: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.NullPointerException
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:171)
    at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:176)
    ... 2 more
Caused by: java.lang.NullPointerException
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:1511)
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:1449)
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1199)
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForCallbackHandler(AxisServiceBasedMultiLanguageEmitter.java:572)
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:551)
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStubFromService(AxisServiceBasedMultiLanguageEmitter.java:266)
    at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:169)
    ... 3 more

linux:     i686
java:     sun-jdk1.5.0_06
axis:      2

I typed command :
sh WSDL2Java.sh -uri xxx.wsdl -ss -sd -d xmlbeans -o xxx

Is there any problem with wsdl types, namespaces in axis2 or something 
else please help me.

best regards
Borowski Filip 


> WSDL2Java throws NullPointer
> ----------------------------
>
>                 Key: AXIS2-816
>                 URL: http://issues.apache.org/jira/browse/AXIS2-816
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl, Tools
>    Affects Versions: 1.0
>         Environment: WinXP / JDK 1.4.2
>            Reporter: Michael Connor
>
> 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(CodeGenerationEngine.java:185)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> Caused by: java.lang.RuntimeException: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> 	at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:117)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
> 	... 1 more
> Caused by: org.apache.axis2.schema.SchemaCompilationException: java.lang.NullPointerException
> 	at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:186)
> 	at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:70)
> 	... 2 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:360)
> 	at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:344)
> 	at org.apache.axis2.schema.SchemaCompiler.processElement(SchemaCompiler.java:410)
> 	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:344)
> 	at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:226)
> 	at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:181)
> 	... 3 more
> Exception in thread "main" 

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