wsdl2java maven plugin fails with NPE in 2.0.9.2-fuse
hartmut Jan 29, 2009 2:06 AMHi,
switching to 2.0.9.2-fuse version i have a problem with the wsdl2java maven plugin. It fails with NPE.
Strange enough it does work if i use the apache cxf 2.0.9 version.
It seems to be related to the -b option.
Here the backtrace (running on linux)
Calling wsdl2java with args: -verbose, -d, /dsk1/lang/xSmart/nbProj/xs-wsdl/target/generated-sources/wsdl, -b, /dsk1/lang/xSmart/nbProj/xs-wsdl/src/main/resources/async_binding_mri_tmdr.xml, -all, -xjc-Xts, file:/dsk1/lang/xSmart/nbProj/xs-wsdl/src/main/resources/tmf854v20/DDPs/ManageResourceInventory/IIS/wsdl/TransmissionDescriptorRetrieval/TransmissionDescriptorRetrievalJms.wsdl
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -verbose -d /dsk1/lang/xSmart/nbProj/xs-wsdl/target/generated-sources/wsdl -b /dsk1/lang/xSmart/nbProj/xs-wsdl/src/main/resources/async_binding_mri_tmdr.xml -all -xjc-Xts file:/dsk1/lang/xSmart/nbProj/xs-wsdl/src/main/resources/tmf854v20/DDPs/ManageResourceInventory/IIS/wsdl/TransmissionDescriptorRetrieval/TransmissionDescriptorRetrievalJms.wsdl
wsdl2java - IONA FUSE Services Framework 2.0.9.2-fuse
org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:239)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:351)
at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:249)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:580)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:72)
at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:215)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.NullPointerException
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.processParameter(ServiceProcessor.java:444)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.processOperation(ServiceProcessor.java:388)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.processPort(ServiceProcessor.java:267)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.processService(ServiceProcessor.java:195)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ServiceProcessor.process(ServiceProcessor.java:100)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.wsdlDefinitionToJavaModel(WSDLToJavaProcessor.java:90)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.process(WSDLToJavaProcessor.java:59)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:195)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:231)
... 18 more