You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Sullivan, Sean" <su...@menloworldwide.com> on 2007/11/19 21:01:11 UTC
NullPointerException in WSDL20ToAxisServiceBuilder
Hello,
I am using Apache Axis 2 version 1.3 and JDK 1.5.0_13
When I run wsdl2java, I encounter a NullPointerException in
WSDL20ToAxisServiceBuilder
Is this a known bug?
Sean
c:\axis2-1.3\bin\wsdl2java -ss -wv 2.0 -p com.mycorp.foo -o src -uri
.\webservices\TmsServices.wsdl
Using AXIS2_HOME: c:\axis2-1.3
Using JAVA_HOME: C:\Progra~1\Java\jdk1.5.0_13
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
ce(WSDL20ToAxisServiceBuilder.java:236)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:101)
... 2 more
Caused by: java.lang.NullPointerException
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.createAxisMes
sage(WSDL20ToAxisServiceBuilder.java:976)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOpera
tions(WSDL20ToAxisServiceBuilder.java:926)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterf
ace(WSDL20ToAxisServiceBuilder.java:849)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processServic
e(WSDL20ToAxisServiceBuilder.java:306)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
ce(WSDL20ToAxisServiceBuilder.java:233)
... 3 more
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: NullPointerException in WSDL20ToAxisServiceBuilder
Posted by "Sullivan, Sean" <su...@menloworldwide.com>.
Done.
https://issues.apache.org/jira/browse/AXIS2-3356
The WSDL file is attached in JIRA.
I tried validating the WSDL file using XMLSpy 2008. It appears that
XMLSpy 2008 doesn't support WSDL 2 files.
Is there another WSDL 2 validation tool that I can use? (Apache
Wooden?)
Sean
-----Original Message-----
From: Deepal jayasinghe [mailto:deepalk@gmail.com]
Sent: Monday, November 19, 2007 11:07 PM
To: axis-user@ws.apache.org
Subject: Re: NullPointerException in WSDL20ToAxisServiceBuilder
> Hello,
>
> I am using Apache Axis 2 version 1.3 and JDK 1.5.0_13
>
> When I run wsdl2java, I encounter a NullPointerException in
> WSDL20ToAxisServiceBuilder
>
> Is this a known bug?
>
>
I think its a bug [not known] so please create a JIRA and attach your
wsdl.
Thanks
Deepal
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: NullPointerException in WSDL20ToAxisServiceBuilder
Posted by Deepal jayasinghe <de...@gmail.com>.
> Hello,
>
> I am using Apache Axis 2 version 1.3 and JDK 1.5.0_13
>
> When I run wsdl2java, I encounter a NullPointerException in
> WSDL20ToAxisServiceBuilder
>
> Is this a known bug?
>
>
I think its a bug [not known] so please create a JIRA and attach your wsdl.
Thanks
Deepal
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: NullPointerException in WSDL20ToAxisServiceBuilder
Posted by si...@bt.com.
Hi Sean,
Have you validated the wsdl file? The exception thrown looks very clear
and points to that direction.
Regards,
Sietse
-----Original Message-----
From: Sullivan, Sean [mailto:sullivan.sean@menloworldwide.com]
Sent: 19 November 2007 20:01
To: axis-user@ws.apache.org
Subject: NullPointerException in WSDL20ToAxisServiceBuilder
Hello,
I am using Apache Axis 2 version 1.3 and JDK 1.5.0_13
When I run wsdl2java, I encounter a NullPointerException in
WSDL20ToAxisServiceBuilder
Is this a known bug?
Sean
c:\axis2-1.3\bin\wsdl2java -ss -wv 2.0 -p com.mycorp.foo -o src -uri
.\webservices\TmsServices.wsdl
Using AXIS2_HOME: c:\axis2-1.3
Using JAVA_HOME: C:\Progra~1\Java\jdk1.5.0_13
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
ce(WSDL20ToAxisServiceBuilder.java:236)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:101)
... 2 more
Caused by: java.lang.NullPointerException
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.createAxisMes
sage(WSDL20ToAxisServiceBuilder.java:976)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateOpera
tions(WSDL20ToAxisServiceBuilder.java:926)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processInterf
ace(WSDL20ToAxisServiceBuilder.java:849)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processServic
e(WSDL20ToAxisServiceBuilder.java:306)
at
org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateServi
ce(WSDL20ToAxisServiceBuilder.java:233)
... 3 more
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org