cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Grandmaison <java97...@yahoo.com>
Subject Re: 2.6.2-SNAPSHOT:wsdl2java - null pointer
Date Fri, 17 Aug 2012 20:59:43 GMT
Hopefully this helps.  

To get the full stack trace in eclipse I just added:  gwt:debug -e -X package to the run
configuration goal instead of just package.


[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java
(myproject-generate-sources) on project cope: Executionmyproject-generate-sources of goal
org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java failed: java.lang.NullPointerException
-> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java
(myproject-generate-sources) on project cope: Execution myproject-generate-sources of goal
org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java failed: java.lang.NullPointerException

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution oim-generate-sources
of goal org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java failed: java.lang.NullPointerException
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 23 more
Caused by: org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:308)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:280)
at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:257)
at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:377)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 24 more
Caused by: java.lang.NullPointerException
at org.sonatype.plexus.build.incremental.DefaultBuildContext.getMessage(DefaultBuildContext.java:88)
at org.sonatype.plexus.build.incremental.DefaultBuildContext.addMessage(DefaultBuildContext.java:113)
at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo$2.addWarning(WSDL2JavaMojo.java:277)
at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBBindErrorListener.warning(JAXBBindErrorListener.java:93)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.warning(SchemaCompilerImpl.java:311)
at com.sun.tools.xjc.api.impl.s2j.DowngradingErrorHandler.warning(DowngradingErrorHandler.java:60)
at com.sun.tools.xjc.reader.internalizer.DOMForest.weakSchemaCorrectnessCheck(DOMForest.java:489)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:259)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:94)
at org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:411)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:603)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:248)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300)
... 31 more




________________________________
From: Freeman Fang <freeman.fang@gmail.com>
To: dev@cxf.apache.org; Mike Grandmaison <java97301@yahoo.com> 
Sent: Wednesday, August 15, 2012 7:50 PM
Subject: Re: 2.6.2-SNAPSHOT:wsdl2java - null pointer


Hi,

If you can append a more detailed stack trace, it would be more helpful.
Also if you can append a simple wsdl which can reproduce this NPE, we can do a quick test
from our side.

Freeman
-------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-16, at 上午8:22, Mike Grandmaison wrote:

Hi,
>
>I am using the 2.6.2-SNAPSHOT:
>
>2.6.2-20120813.071134-43
>
>
>in Eclipse with m2e but I get the following error when I run package.
>
>[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java
(myproject-generate-sources) on project cope: Execution myproject-generate-sources of goal
org.apache.cxf:cxf-codegen-plugin:2.6.2-SNAPSHOT:wsdl2java failed: java.lang.NullPointerException
-> [Help 1]
>
>Here is my pom.xml section for cxf:
>
><plugin>
>                <groupId>org.apache.cxf</groupId>
>                <artifactId>cxf-codegen-plugin</artifactId>
>                <version>${cxf.version}</version>
>                <executions> 
>                    <execution>
>                        <id>myproject-generate-sources</id>
>                        <phase>generate-sources</phase>
>                        <configuration>
>                            <sourceRoot>${basedir}/target/generated-sources/cxf-codegen-plugin</sourceRoot>
>                            <wsdlOptions>
>                                <wsdlOption>
>                                    <wsdl>http://mydomain.com:23000/webapps/webservicesimulator/service/MyService?wsdl</wsdl>
>                                    <extraargs>
>                                        <extraarg>-client</extraarg>
>                                    </extraargs>
>                                </wsdlOption>
>                            </wsdlOptions>
>                        </configuration>
>                        <goals>
>                            <goal>wsdl2java</goal>
>                        </goals>
>                    </execution>
>                </executions>
>          </plugin>
>
>This works fine with cxf 2.6.1
>
>Is there something that changed in the pom.xml requirements for 2.6.2?
>
>Thank you,
>
>Mike
>

Mime
View raw message