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

java.lang.NullPointerException: Current Project is null

    Details

    • Similar Issues:

      Description

      Restarting Tomcat. During the restart process Jenkins fails to load jobs which use the "FSTrigger", if the rebuild-plugin is installed:

      Feb 18, 2013 1:01:45 PM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading job Eval-Hot-Systemtest
      java.lang.NullPointerException: Current Project is null
      at com.sonyericsson.rebuild.RebuildAction.getProject(RebuildAction.java:138)
      at com.sonyericsson.rebuild.RebuildAction.isRebuildAvailable(RebuildAction.java:276)
      at com.sonyericsson.rebuild.RebuildAction.getUrlName(RebuildAction.java:163)
      at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:36)
      at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:54)
      at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getPollingEnvVars(EnvVarsResolver.java:36)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.start(FolderContentTrigger.java:371)
      at org.jenkinsci.lib.xtrigger.AbstractTrigger.start(AbstractTrigger.java:97)
      at org.jenkinsci.lib.xtrigger.AbstractTrigger.start(AbstractTrigger.java:26)
      at hudson.model.AbstractProject.onLoad(AbstractProject.java:294)
      at hudson.model.Project.onLoad(Project.java:83)
      at hudson.model.Items.load(Items.java:221)
      at jenkins.model.Jenkins$17.run(Jenkins.java:2539)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      => Rebuild plugin embeds the envinject library. There is a bug in the current version used by the rebuild plugin. Please upgrade to envinject-lib 1.16.
      => https://issues.jenkins-ci.org/browse/JENKINS-16809

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/com/sonyericsson/rebuild/RebuildAction.java
          src/main/java/com/sonyericsson/rebuild/RebuildActionFactory.java
          src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java
          src/main/java/com/sonyericsson/rebuild/RebuildValidator.java
          http://jenkins-ci.org/commit/rebuild-plugin/7bc6f7c798bfa8a0e3ab1b48293b7f121e330da0
          Log:
          Fix JENKINS-16874


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/com/sonyericsson/rebuild/RebuildAction.java src/main/java/com/sonyericsson/rebuild/RebuildActionFactory.java src/main/java/com/sonyericsson/rebuild/RebuildLastCompletedBuildAction.java src/main/java/com/sonyericsson/rebuild/RebuildValidator.java http://jenkins-ci.org/commit/rebuild-plugin/7bc6f7c798bfa8a0e3ab1b48293b7f121e330da0 Log: Fix JENKINS-16874 – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

            People

            • Assignee:
              ragesh_nair ragesh_nair
              Reporter:
              riccardo_gorza Riccardo Gorza
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: