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

NullPointer when trying to retrieve Configuration

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: claim-plugin
    • Labels:
      None
    • Environment:
      jenkins 2.90
      claim plugin 2.10
    • Similar Issues:

      Description

      After a build failure due to failed unit tests following Exception is logged:

      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at hudson.plugins.claim.AbstractClaimBuildAction.<init>(AbstractClaimBuildAction.java:43)
      	at hudson.plugins.claim.ClaimBuildAction.<init>(ClaimBuildAction.java:14)
      	at hudson.plugins.claim.ClaimPublisher.perform(ClaimPublisher.java:62)
      	at hudson.plugins.claim.ClaimPublisher.perform(ClaimPublisher.java:53)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      	at hudson.model.Build$BuildExecution.post2(Build.java:186)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      	at hudson.model.Run.execute(Run.java:1749)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:421)
      Build step 'Allow broken build claiming' marked build as failure
      

      Looks like ClaimConfig.get() is null.

      Seems like in claim plugin version 2.7 everything was fine (but I'm not sure about this)

        Attachments

          Issue Links

            Activity

            npfistner Norbert Pfistner created issue -
            npfistner Norbert Pfistner made changes -
            Field Original Value New Value
            Summary NullPointer NullPointer when trying to retrieve Configuration
            npfistner Norbert Pfistner made changes -
            Description After a build failure due to failed unit tests following Exception is logged:

            {noformat}
            ERROR: Build step failed with exception
            java.lang.NullPointerException
            at hudson.plugins.claim.AbstractClaimBuildAction.<init>(AbstractClaimBuildAction.java:43)
            at hudson.plugins.claim.ClaimBuildAction.<init>(ClaimBuildAction.java:14)
            at hudson.plugins.claim.ClaimPublisher.perform(ClaimPublisher.java:62)
            at hudson.plugins.claim.ClaimPublisher.perform(ClaimPublisher.java:53)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
            at hudson.model.Build$BuildExecution.post2(Build.java:186)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
            at hudson.model.Run.execute(Run.java:1749)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:421)
            Build step 'Allow broken build claiming' marked build as failure
            {noformat}


            Seems like in claim plugin version 2.7 everything was fine (but I'm not sure about this)
            After a build failure due to failed unit tests following Exception is logged:

            {noformat}
            ERROR: Build step failed with exception
            java.lang.NullPointerException
            at hudson.plugins.claim.AbstractClaimBuildAction.<init>(AbstractClaimBuildAction.java:43)
            at hudson.plugins.claim.ClaimBuildAction.<init>(ClaimBuildAction.java:14)
            at hudson.plugins.claim.ClaimPublisher.perform(ClaimPublisher.java:62)
            at hudson.plugins.claim.ClaimPublisher.perform(ClaimPublisher.java:53)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
            at hudson.model.Build$BuildExecution.post2(Build.java:186)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
            at hudson.model.Run.execute(Run.java:1749)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:421)
            Build step 'Allow broken build claiming' marked build as failure
            {noformat}

            Looks like ClaimConfig.get() is null.

            Seems like in claim plugin version 2.7 everything was fine (but I'm not sure about this)
            npfistner Norbert Pfistner made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            greybird Arnaud TAMAILLON made changes -
            Link This issue is related to JENKINS-47972 [ JENKINS-47972 ]
            greybird Arnaud TAMAILLON made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee Christian Bremer [ ki82 ] Arnaud TAMAILLON [ greybird ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                greybird Arnaud TAMAILLON
                Reporter:
                npfistner Norbert Pfistner
              • Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: