Hi Gary,

 as I said, if I try with a newer version I get a NPE.

  I've looked up on google and didn't see anything that help( I see a post
on this ML whith Daniel saying he has no idea)

http://cxf.547215.n5.nabble.com/NPE-when-upgrade-cxf-codegen-plugin-from-2-3-5-to-2-7-4-tp5727752.html

I remember I have seen something related to the eclipse plugin...


[DEBUG]   (f) wsdlRoot =
D:\ARTIC\SOURCE\artic\trunk\ws-connector\src\main\resources\wsdl
[DEBUG] -- end configuration --
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8.961s
[INFO] Finished at: Fri Jun 14 13:59:18 CEST 2013
[INFO] Final Memory: 9M/177M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java
(generate-sources__wsdl2java) on project ws-connector: Execution
generate-sources__wsdl2java of goal
org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java failed.
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java
(generate-sources__wsdl2java) on project ws-connector: Execution
generate-sources__wsdl2java of goal
org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java failed.
    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.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
generate-sources__wsdl2java of goal
org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java failed.
    at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more
*Caused by: java.lang.NullPointerException*
    at java.util.Hashtable.put(Hashtable.java:542)
    at java.util.Properties.setProperty(Properties.java:161)
    at java.lang.System.setProperty(System.java:785)
    at
org.apache.cxf.maven_plugin.ClassLoaderSwitcher.restoreClassLoader(ClassLoaderSwitcher.java:121)
    at
org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:325)
    at
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:524)
    at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    ... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException




On Fri, Jun 14, 2013 at 1:39 PM, Gary Gregory <[email protected]>wrote:

> Can you try the current version of CXF, 2.7.5?
>
> Gary
>
> On Jun 14, 2013, at 5:17, Thomas Manson <[email protected]>
> wrote:
>
> > Hi,
> >
> >  I've generated my WSDL client with CXF 2.7.0 (from 2.7.1 I get a NPE at
> > generation time, didn't find a workaround).
> >
> >  When I use the client I get a NPE on the server side, while with SOAPUI
> > it's ok.
> >
> >  I used TCPMon to compare SOAPUI and CXF soap request and I can see that
> > CXF client do not send the SOAPaction.
> >
> >
>

Reply via email to