There may be a problem with your WSDL. If you post it here people can
have a look at it, and I'm sure the maintainers will be interested if
it is causing an NPE.

My first attempt to debug things like this though is to start out with
the simplest, most minimal WSDL I can (starting from a published
example if necessary), check that goes through wsdl2java okay, and
then gradually transform it into my original WSDL, making changes one
by one until I find the one that causes the error.

Andrew.

2008/9/29 _Eric_ <[EMAIL PROTECTED]>:
>
> When I run the wsdl2java tool I get an NullPointerexception.
>
> E:\Eric\_Projects\TK\wsdl2java>C:\temp\apache-cxf-2.1.2\bin\wsdl2java
> -verbose QesService.wsdl
> Loading FrontEnd jaxws ...
> Loading DataBinding jaxb ...
> wsdl2java -verbose QesService.wsdl
> wsdl2java - Apache CXF 2.1.2
>
>
> WSDLToJava Error: java.lang.NullPointerException
>
> org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
>        at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:240)
>        at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
>        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
>        at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
> Caused by: java.lang.NullPointerException
>        at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.validator.WrapperStyleNameCollisionValidator.isValidOperation(WrapperStyleNameCollisionValidator.java:120)
>        at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.validator.WrapperStyleNameCollisionValidator.checkNameColllision(WrapperStyleNameCollisionValidator.java:58)
>        at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.validator.WrapperStyleNameCollisionValidator.isValid(WrapperStyleNameCollisionValidator.java:51)
>        at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.validate(WSDLToJavaContainer.java:547)
>        at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:193)
>        at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232)
>        ... 3 more
>
>
> Google brought me some posting that sugest it is a mixture of problem in CXF
> and in the wsdl. How can I find a workaround for the problem?
>
> Grettings
> Eric
> --
> View this message in context: 
> http://www.nabble.com/wsdl2java-NullPointer-tp19720254p19720254.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to