Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18441

Maven 2 jobs fail (exception in MavenFingerprinter)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Each Maven 2 has the following stacktrace, resulting in an error. In jenkins 1.518 the build still succeeds afterwards, in 1.519 this fails the builds (i.e. failing ALL our Maven 2 builds). So I had to revert to previous version, so we're still operational (ignoring the stacktraces)

      I'm using Maven 2.2.1. To avoid any conflicts with maven 3, I threw away all Maven 3 directories, made sure env. vars are OK, no jenkins settings refer maven 3, even cleared the local repo, etc...

      The jobs compile, test, and runs reporting with PMD, Findbugs, Cobertura, ...

       
      [JENKINS] Recording test results
      21-jun-2013 9:58:56 hudson.maven.reporters.MavenFingerprinter getArtifactRepositoryMaven21
      WARNING: Could not retrieve BuilderConfigration
      java.lang.NullPointerException
      	at hudson.maven.reporters.MavenFingerprinter.getArtifactRepositoryMaven21(MavenFingerprinter.java:183)
      	at hudson.maven.reporters.MavenFingerprinter.getLocalRepository(MavenFingerprinter.java:165)
      	at hudson.maven.reporters.MavenFingerprinter.recordParents(MavenFingerprinter.java:142)
      	at hudson.maven.reporters.MavenFingerprinter.postBuild(MavenFingerprinter.java:110)
      ERROR: 	at hudson.maven.Maven2Builder.postModule(Maven2Builder.java:129)
      	at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:354)
      	at hudson.maven.MavenBuilder$Adapter.preExecute(MavenBuilder.java:323)
      	at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.pre(PluginManagerInterceptor.java:165)
      	at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:145)
      	at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
      	at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
      	at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      	at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      Could not find local repository for 2.2.1	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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      	at hudson.maven.agent.Main.launch(Main.java:185)
      	at hudson.maven.MavenBuilder.call(MavenBuilder.java:154)
      	at hudson.maven.Maven2Builder.call(Maven2Builder.java:79)
      	at hudson.maven.Maven2Builder.call(Maven2Builder.java:55)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:326)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      
      	at java.lang.Thread.run(Thread.java:619)
      [INFO] [site:site {execution: default-site}]
      

      In jenkins 1.518 this is ugly, but job still succeeds, in jenkins 1.519, this fails and breaks everything.

        Attachments

          Issue Links

            Activity

            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2705
            [FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepositoryMaven21. (Revision 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a)

            Result = SUCCESS
            Jesse Glick : 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a
            Files :

            • changelog.html
            • maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2705 [FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepositoryMaven21. (Revision 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a) Result = SUCCESS Jesse Glick : 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a Files : changelog.html maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
            Hide
            newenigma newenigma added a comment - - edited

            Hi

            This issue is still occurring for me on 1.523

            From looking so far, it is only happening on Maven builds with packaging of pom.
            EDIT: Scrap above comment, I can see it is still happening on Maven builds with packaging of war and jar

            Apologies, looks like this fix is in 1.524 and not 1.523. I'll close the issue.

            Show
            newenigma newenigma added a comment - - edited Hi This issue is still occurring for me on 1.523 From looking so far, it is only happening on Maven builds with packaging of pom. EDIT: Scrap above comment, I can see it is still happening on Maven builds with packaging of war and jar Apologies, looks like this fix is in 1.524 and not 1.523. I'll close the issue.
            Hide
            jglick Jesse Glick added a comment -

            Right, the fix is only in a release candidate so far.

            Show
            jglick Jesse Glick added a comment - Right, the fix is only in a release candidate so far.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java
            http://jenkins-ci.org/commit/jenkins/1b44e6c71a50f932a368552d3b3c8422c0342374
            Log:
            [FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepositoryMaven21.

            (cherry picked from commit 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a)

            Conflicts:
            changelog.html

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: maven-plugin/src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/jenkins/1b44e6c71a50f932a368552d3b3c8422c0342374 Log: [FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepositoryMaven21. (cherry picked from commit 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a) Conflicts: changelog.html
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/hudson/maven/reporters/MavenFingerprinter.java
            http://jenkins-ci.org/commit/maven-plugin/e77a80550fc58115e41126350c1effa4e6f031a9
            Log:
            [FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepositoryMaven21.

            Originally-Committed-As: 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/maven-plugin/e77a80550fc58115e41126350c1effa4e6f031a9 Log: [FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepositoryMaven21. Originally-Committed-As: 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a

              People

              • Assignee:
                marcsanfacon Marc Sanfacon
                Reporter:
                belpk K P
              • Votes:
                5 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: