Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8184

cxf-codegen-plugin fails sporadically with FOUND_NO_FRONTEND: NPE in AbstractToolContainer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.16
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Environment:
    • Estimated Complexity:
      Unknown

      Description

      From time to time the plugin fails with:

      [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]
      
      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)
      

      Looking at the code, 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).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              famod Falko Modler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: