Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25531

Failed to execute goal au.com.alderaan:eclipselink-staticweave-maven-plugin

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.7.5
    • Fix Version/s: None
    • Component/s: ambari-server
    • Labels:
      None
    • Environment:

      RHEL 7

      Description

      Attempting to build Ambari with this command

      mvn -B clean install rpm:rpm -DnewVersion=2.7.5.0.0 -DbuildNumber=5895e4ed6b30a2da8a90fee2403b6cab91d19972 -DskipTests -Dpython.ver="python >= 2.6" -Drat.ignoreErrors=true
      

      Throws NullPointerException:

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Ambari Main 2.7.5.0.0 .............................. SUCCESS [ 19.701 s]
      [INFO] Apache Ambari Project POM 2.7.5.0.0 ................ SUCCESS [  0.249 s]
      [INFO] Ambari Web 2.7.5.0.0 ............................... SUCCESS [01:00 min]
      [INFO] Ambari Views 2.7.5.0.0 ............................. SUCCESS [  1.574 s]
      [INFO] Ambari Admin View 2.7.5.0.0 ........................ SUCCESS [ 18.467 s]
      [INFO] ambari-utility 1.0.0.0-SNAPSHOT .................... SUCCESS [  6.424 s]
      [INFO] ambari-metrics 2.7.5.0.0 ........................... SUCCESS [  2.133 s]
      [INFO] Ambari Metrics Common 2.7.5.0.0 .................... SUCCESS [  7.817 s]
      [INFO] Ambari Metrics Hadoop Sink 2.7.5.0.0 ............... SUCCESS [  6.077 s]
      [INFO] Ambari Metrics Flume Sink 2.7.5.0.0 ................ SUCCESS [  2.924 s]
      [INFO] Ambari Metrics Kafka Sink 2.7.5.0.0 ................ SUCCESS [  3.095 s]
      [INFO] Ambari Metrics Storm Sink 2.7.5.0.0 ................ SUCCESS [  2.274 s]
      [INFO] Ambari Metrics Storm Sink (Legacy) 2.7.5.0.0 ....... SUCCESS [  2.146 s]
      [INFO] Ambari Metrics Collector 2.7.5.0.0 ................. SUCCESS [03:44 min]
      [INFO] Ambari Metrics Monitor 2.7.5.0.0 ................... SUCCESS [  1.452 s]
      [INFO] Ambari Metrics Grafana 2.7.5.0.0 ................... SUCCESS [  2.906 s]
      [INFO] Ambari Metrics Host Aggregator 2.7.5.0.0 ........... SUCCESS [  8.754 s]
      [INFO] Ambari Metrics Assembly 2.7.5.0.0 .................. SUCCESS [01:49 min]
      [INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT ............ SUCCESS [  1.164 s]
      [INFO] Ambari Server 2.7.5.0.0 ............................ FAILURE [ 28.664 s]
      [INFO] Ambari Functional Tests 2.7.5.0.0 .................. SKIPPED
      [INFO] Ambari Agent 2.7.5.0.0 ............................. SKIPPED
      [INFO] ambari-logsearch 2.7.5.0.0 ......................... SKIPPED
      [INFO] Ambari Logsearch Appender 2.7.5.0.0 ................ SKIPPED
      [INFO] Ambari Logsearch Config Api 2.7.5.0.0 .............. SKIPPED
      [INFO] Ambari Logsearch Config JSON 2.7.5.0.0 ............. SKIPPED
      [INFO] Ambari Logsearch Config Solr 2.7.5.0.0 ............. SKIPPED
      [INFO] Ambari Logsearch Config Zookeeper 2.7.5.0.0 ........ SKIPPED
      [INFO] Ambari Logsearch Config Local 2.7.5.0.0 ............ SKIPPED
      [INFO] Ambari Logsearch Log Feeder Plugin Api 2.7.5.0.0 ... SKIPPED
      [INFO] Ambari Logsearch Log Feeder Container Registry 2.7.5.0.0 SKIPPED
      [INFO] Ambari Logsearch Log Feeder 2.7.5.0.0 .............. SKIPPED
      [INFO] Ambari Logsearch Web 2.7.5.0.0 ..................... SKIPPED
      [INFO] Ambari Logsearch Server 2.7.5.0.0 .................. SKIPPED
      [INFO] Ambari Logsearch Assembly 2.7.5.0.0 ................ SKIPPED
      [INFO] Ambari Logsearch Integration Test 2.7.5.0.0 ........ SKIPPED
      [INFO] ambari-infra 2.7.5.0.0 ............................. SKIPPED
      [INFO] Ambari Infra Solr Client 2.7.5.0.0 ................. SKIPPED
      [INFO] Ambari Infra Solr Plugin 2.7.5.0.0 ................. SKIPPED
      [INFO] Ambari Infra Manager 2.7.5.0.0 ..................... SKIPPED
      [INFO] Ambari Infra Assembly 2.7.5.0.0 .................... SKIPPED
      [INFO] Ambari Infra Manager Integration Tests 2.7.5.0.0 ... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  08:32 min
      [INFO] Finished at: 2020-07-13T15:42:09+03:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave (default) on project ambari-server: Execution default of goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed. NullPointerException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave (default) on project ambari-server: Execution default of goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed.
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
          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.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:564)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed.
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
          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.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:564)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: java.lang.NullPointerException
          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy (EntityManagerSetupImpl.java:2027)
          at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveClassTransformer.buildClassTransformers (StaticWeaveClassTransformer.java:126)
          at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveClassTransformer.<init> (StaticWeaveClassTransformer.java:76)
          at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveProcessor.process (StaticWeaveProcessor.java:249)
          at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveProcessor.performWeaving (StaticWeaveProcessor.java:173)
          at au.com.alderaan.eclipselink.mojo.EclipselinkStaticWeaveMojo.execute (EclipselinkStaticWeaveMojo.java:120)
          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.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:564)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      

      There is an unresolved GitHub issue on plugin's repo from 2018 for the same problem. What am I missing here?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              BerkayOzturk Berkay Öztürk

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment