This wouldn't happen on Jenkins 1.498:

      Exception: java.lang.NullPointerException
      Stacktrace:
      javax.servlet.ServletException: java.lang.NullPointerException
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      	...
      Caused by: java.lang.NullPointerException
      	at java.util.Vector.addAll(Unknown Source)
      	at hudson.model.AbstractProject.getActions(AbstractProject.java:1110)
      	at hudson.model.Actionable.getActions(Actionable.java:88)
      	at hudson.plugins.jobConfigHistory.JobConfigHistoryActionFactory.createFor(JobConfigHistoryActionFactory.java:30)
      	at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:698)
      	at hudson.maven.AbstractMavenProject.createTransientActions(AbstractMavenProject.java:177)
      	at hudson.maven.MavenModuleSet.createTransientActions(MavenModuleSet.java:448)
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:688)
      	at hudson.maven.MavenModuleSet.updateTransientActions(MavenModuleSet.java:444)
      	at hudson.model.AbstractProject.save(AbstractProject.java:266)
      	at hudson.model.Job.onLoad(Job.java:192)
      	at hudson.model.AbstractProject.onLoad(AbstractProject.java:278)
      	at hudson.maven.MavenModuleSet.onLoad(MavenModuleSet.java:746)
      	at hudson.model.Items.load(Items.java:221)
      	at hudson.model.ItemGroupMixIn.copy(ItemGroupMixIn.java:208)
      	at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:164)
      	at jenkins.model.Jenkins.doCreateItem(Jenkins.java:2857)
      	at jenkins.model.Jenkins.doCreateItem(Jenkins.java:308)
      	at hudson.model.ListView.doCreateItem(ListView.java:208)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
      	... 62 more
      

          [JENKINS-16499] NPE when new job by copy from existing one

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2237
          Added testcase for JENKINS-16499 (Revision 7d422e60d9b3b2c678e6baf066e0780a29b027aa)

          Result = UNSTABLE
          Christoph Kutzinski : 7d422e60d9b3b2c678e6baf066e0780a29b027aa
          Files :

          • test/src/test/java/hudson/maven/MavenProjectTest.java

          dogfood added a comment - Integrated in jenkins_main_trunk #2237 Added testcase for JENKINS-16499 (Revision 7d422e60d9b3b2c678e6baf066e0780a29b027aa) Result = UNSTABLE Christoph Kutzinski : 7d422e60d9b3b2c678e6baf066e0780a29b027aa Files : test/src/test/java/hudson/maven/MavenProjectTest.java

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          core/src/main/java/hudson/model/Job.java
          http://jenkins-ci.org/commit/jenkins/12efbc3a9bbcd613dc1e4391283b6839cc79990a
          Log:
          [FIXED JENKINS-16499] Assuming that:

          • save() is not strictly necessary here. config.xml might be saved later or not - doesn't really matter
          • this else branch should only be entered when migrating from very old Hudson instances

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: core/src/main/java/hudson/model/Job.java http://jenkins-ci.org/commit/jenkins/12efbc3a9bbcd613dc1e4391283b6839cc79990a Log: [FIXED JENKINS-16499] Assuming that: save() is not strictly necessary here. config.xml might be saved later or not - doesn't really matter this else branch should only be entered when migrating from very old Hudson instances

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          test/src/test/java/hudson/maven/MavenProjectTest.java
          http://jenkins-ci.org/commit/jenkins/432c63d9851cadb7e93a110a9a22716b0e033d87
          Log:
          Changelog and fixed test for JENKINS-16499

          Compare: https://github.com/jenkinsci/jenkins/compare/7d422e60d9b3...432c63d9851c


          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.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html test/src/test/java/hudson/maven/MavenProjectTest.java http://jenkins-ci.org/commit/jenkins/432c63d9851cadb7e93a110a9a22716b0e033d87 Log: Changelog and fixed test for JENKINS-16499 Compare: https://github.com/jenkinsci/jenkins/compare/7d422e60d9b3...432c63d9851c – 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 .

          kutzi added a comment -

          Found now a simple fix for it.
          However Kohsuke might still have a look on it, as I'm not 101% sure that this won't cause any regression.
          Also you might want to find out, why this else-branch in Job#onLoad is entered after all. According to the comment that should only happen when migrating old instances. However, it looks like the nextBuildNumber file is not created directly after creating a job. Maybe that should be fixed as the root cause.

          kutzi added a comment - Found now a simple fix for it. However Kohsuke might still have a look on it, as I'm not 101% sure that this won't cause any regression. Also you might want to find out, why this else-branch in Job#onLoad is entered after all. According to the comment that should only happen when migrating old instances. However, it looks like the nextBuildNumber file is not created directly after creating a job. Maybe that should be fixed as the root cause.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2238
          [FIXED JENKINS-16499] Assuming that: (Revision 12efbc3a9bbcd613dc1e4391283b6839cc79990a)
          Changelog and fixed test for JENKINS-16499 (Revision 432c63d9851cadb7e93a110a9a22716b0e033d87)

          Result = SUCCESS
          Christoph Kutzinski : 12efbc3a9bbcd613dc1e4391283b6839cc79990a
          Files :

          • core/src/main/java/hudson/model/Job.java

          Christoph Kutzinski : 432c63d9851cadb7e93a110a9a22716b0e033d87
          Files :

          • test/src/test/java/hudson/maven/MavenProjectTest.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #2238 [FIXED JENKINS-16499] Assuming that: (Revision 12efbc3a9bbcd613dc1e4391283b6839cc79990a) Changelog and fixed test for JENKINS-16499 (Revision 432c63d9851cadb7e93a110a9a22716b0e033d87) Result = SUCCESS Christoph Kutzinski : 12efbc3a9bbcd613dc1e4391283b6839cc79990a Files : core/src/main/java/hudson/model/Job.java Christoph Kutzinski : 432c63d9851cadb7e93a110a9a22716b0e033d87 Files : test/src/test/java/hudson/maven/MavenProjectTest.java changelog.html

          Vlad Beffa added a comment -

          Is it possible to download a jenkins.war from somewhere with this fix? Thanks.

          Vlad Beffa added a comment - Is it possible to download a jenkins.war from somewhere with this fix? Thanks.

          Arnaud Héritier added a comment - @vlad here : https://ci.jenkins-ci.org/job/jenkins_main_trunk/2238/

          when it will be available in latest release?

          Ireneusz Makowski added a comment - when it will be available in latest release?

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          test/src/test/java/hudson/maven/MavenProjectTest.java
          http://jenkins-ci.org/commit/maven-plugin/4c5f1936ac0e288a9f6534ec609b9927f8ab2a29
          Log:
          Added testcase for JENKINS-16499

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: test/src/test/java/hudson/maven/MavenProjectTest.java http://jenkins-ci.org/commit/maven-plugin/4c5f1936ac0e288a9f6534ec609b9927f8ab2a29 Log: Added testcase for JENKINS-16499

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          test/src/test/java/hudson/maven/MavenProjectTest.java
          http://jenkins-ci.org/commit/maven-plugin/314ccfde1b3b7cbcb0eb576ac2e8190776eb1fa3
          Log:
          Changelog and fixed test for JENKINS-16499

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: test/src/test/java/hudson/maven/MavenProjectTest.java http://jenkins-ci.org/commit/maven-plugin/314ccfde1b3b7cbcb0eb576ac2e8190776eb1fa3 Log: Changelog and fixed test for JENKINS-16499

            kohsuke Kohsuke Kawaguchi
            tang Pei-Tang Huang
            Votes:
            17 Vote for this issue
            Watchers:
            37 Start watching this issue

              Created:
              Updated:
              Resolved: