[jira] [Commented] (CXF-8184) cxf-codegen-plugin fails sporadically with FOUND_NO_FRONTEND: NPE in AbstractToolContainer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (CXF-8184) cxf-codegen-plugin fails sporadically with FOUND_NO_FRONTEND: NPE in AbstractToolContainer

Andriy Redko (Jira)

    [ https://issues.apache.org/jira/browse/CXF-8184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17014701#comment-17014701 ]

Falko Modler commented on CXF-8184:
-----------------------------------

I was able to update to 3.2.11. I will report back in case the problem resurfaces.

> cxf-codegen-plugin fails sporadically with FOUND_NO_FRONTEND: NPE in AbstractToolContainer
> ------------------------------------------------------------------------------------------
>
>                 Key: CXF-8184
>                 URL: https://issues.apache.org/jira/browse/CXF-8184
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.0.16
>         Environment: Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
> Maven home: /opt/apache-maven-3.6.2
> Java version: 1.8.0_231, vendor: Oracle Corporation, runtime: /opt/jdk1.8.0_231-CCS/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.10.0-1062.9.1.el7.x86_64", arch: "amd64", family: "unix"
>            Reporter: Falko Modler
>            Priority: Major
>
> From time to time the plugin fails with:
> {noformat}
> [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.0.16:wsdl2java (default) on project some-project: Execution default of goal org.apache.cxf:cxf-codegen-plugin:3.0.16:wsdl2java failed: FOUND_NO_FRONTEND -> [Help 1]
> {noformat}
> {noformat:title=Further up in the log}
> java.lang.NullPointerException
> at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:196)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:195)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
> at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)
> at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:105)
> 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:427)
> at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:321)
> at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:524)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:190)
> at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:186)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Looking at the [code|https://github.com/apache/cxf/blob/cxf-3.0.16/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/AbstractToolContainer.java#L196], it seems that the {{OASISCatalogManager}} bus extension is null.
> Please note that we use the parallel Maven build feature (-T) and we don't use the fork mode (which slows everything down considerably).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)