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

NullPointerException when parsing changeset

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mantis-plugin
    • Labels:
      None
    • Environment:
      Hudson ver. 2.2.0, Linux/Debian
    • Similar Issues:

      Description

      Happens to me on Version 0.10.1 of the plugin

      ERROR: Publisher hudson.plugins.mantis.MantisIssueUpdater aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.mantis.Updater.findChangeSetsFromSCM(Updater.java:136)
      at hudson.plugins.mantis.Updater.findChangeSets(Updater.java:120)
      at hudson.plugins.mantis.Updater.perform(Updater.java:55)
      at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:630)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:584)
      at hudson.model.Build$RunnerImpl.post2(Build.java:159)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:553)
      at hudson.model.Run.run(Run.java:1390)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)

        Attachments

          Activity

          Hide
          sogabe sogabe added a comment -

          0.10.1 is too old. use latest version. but I'm not sure that This plugin works on Hudson 2.2.0.

          Show
          sogabe sogabe added a comment - 0.10.1 is too old. use latest version. but I'm not sure that This plugin works on Hudson 2.2.0.
          Hide
          aschmidt81 Andreas Schmidt added a comment - - edited

          I encounter the same problem. Using Jenkins 1.451 with Mantis Plugin 0.21.
          I think in my case this is an issue of using multi-configuration projects. If I configure a "normal" project using mantis, every thing works fine. But using a multi-configuration project (with one or two axis) I get the same exception.

          Looking at the code, this could be a problem of "final MantisProjectProperty mpp = build.getParent().getProperty(MantisProjectProperty.class);". So the build.getParent() could be a problem when using multi-configuration projects. But I'm not sure. My Exception stack trace looks like this

          ERROR: Publisher hudson.plugins.mantis.MantisIssueUpdater aborted due to exception
          java.lang.NullPointerException
          at hudson.plugins.mantis.Updater.findChangeSetsFromSCM(Updater.java:136)
          at hudson.plugins.mantis.Updater.findChangeSets(Updater.java:120)
          at hudson.plugins.mantis.Updater.perform(Updater.java:55)
          at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653)
          at hudson.model.Build$RunnerImpl.post2(Build.java:162)
          at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622)
          at hudson.model.Run.run(Run.java:1434)
          at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:238)

          Show
          aschmidt81 Andreas Schmidt added a comment - - edited I encounter the same problem. Using Jenkins 1.451 with Mantis Plugin 0.21. I think in my case this is an issue of using multi-configuration projects. If I configure a "normal" project using mantis, every thing works fine. But using a multi-configuration project (with one or two axis) I get the same exception. Looking at the code, this could be a problem of "final MantisProjectProperty mpp = build.getParent().getProperty(MantisProjectProperty.class);". So the build.getParent() could be a problem when using multi-configuration projects. But I'm not sure. My Exception stack trace looks like this ERROR: Publisher hudson.plugins.mantis.MantisIssueUpdater aborted due to exception java.lang.NullPointerException at hudson.plugins.mantis.Updater.findChangeSetsFromSCM(Updater.java:136) at hudson.plugins.mantis.Updater.findChangeSets(Updater.java:120) at hudson.plugins.mantis.Updater.perform(Updater.java:55) at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622) at hudson.model.Run.run(Run.java:1434) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          src/main/java/hudson/plugins/mantis/Updater.java
          http://jenkins-ci.org/commit/mantis-plugin/67860a2f2f54eae7cb0d12fb8d04f4cc1136198d
          Log:
          [FIXED JENKINS-12849] NullPointerException when parsing changeset of Matrix Project.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: src/main/java/hudson/plugins/mantis/Updater.java http://jenkins-ci.org/commit/mantis-plugin/67860a2f2f54eae7cb0d12fb8d04f4cc1136198d Log: [FIXED JENKINS-12849] NullPointerException when parsing changeset of Matrix Project.
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_mantis #49
          [FIXED JENKINS-12849] NullPointerException when parsing changeset of Matrix Project. (Revision 67860a2f2f54eae7cb0d12fb8d04f4cc1136198d)

          Result = SUCCESS
          Seiji Sogabe :
          Files :

          • src/main/java/hudson/plugins/mantis/Updater.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_mantis #49 [FIXED JENKINS-12849] NullPointerException when parsing changeset of Matrix Project. (Revision 67860a2f2f54eae7cb0d12fb8d04f4cc1136198d) Result = SUCCESS Seiji Sogabe : Files : src/main/java/hudson/plugins/mantis/Updater.java

            People

            Assignee:
            sogabe sogabe
            Reporter:
            laeubi Christoph Läubrich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: