cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nickolay Martinov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5287) NPE at org.apache.cxf.maven_plugin.ClassLoaderSwitcher.restoreClassLoader
Date Wed, 18 Sep 2013 07:53:54 GMT
Nickolay Martinov created CXF-5287:
--------------------------------------

             Summary: NPE at org.apache.cxf.maven_plugin.ClassLoaderSwitcher.restoreClassLoader
                 Key: CXF-5287
                 URL: https://issues.apache.org/jira/browse/CXF-5287
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.7.6
            Reporter: Nickolay Martinov
            Priority: Blocker


Maven plugin throws exception when running build.

{noformat}
Failed to execute goal org.apache.cxf:cxf-java2ws-plugin:2.7.6:java2ws (Generate UtafService.wsdl)
on project temip-ca-alarms-from-temip-utaf-bc: Execution Generate UtafService.wsdl of goal
org.apache.cxf:cxf-java2ws-plugin:2.7.6:java2ws failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-java2ws-plugin:2.7.6:java2ws
(Generate UtafService.wsdl) on project temip-ca-alarms-from-temip-utaf-bc: Execution Generate
UtafService.wsdl of goal org.apache.cxf:cxf-java2ws-plugin:2.7.6:java2ws 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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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 UtafService.wsdl
of goal org.apache.cxf:cxf-java2ws-plugin:2.7.6:java2ws 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 org.apache.cxf.maven_plugin.ClassLoaderSwitcher.restoreClassLoader(ClassLoaderSwitcher.java:120)
	at org.apache.cxf.maven_plugin.Java2WSMojo.execute(Java2WSMojo.java:233)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more
{noformat}

According to source it fails when it tries to restore system properties. This can only happen
when switchClassLoader() was never called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message