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

NPE when new job by copy from existing one

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
      

        Attachments

          Issue Links

            Activity

            Hide
            vbeffa Vlad Beffa added a comment -

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

            Show
            vbeffa Vlad Beffa added a comment - Is it possible to download a jenkins.war from somewhere with this fix? Thanks.
            Show
            aheritier Arnaud Héritier added a comment - @vlad here : https://ci.jenkins-ci.org/job/jenkins_main_trunk/2238/
            Hide
            imakowski Ireneusz Makowski added a comment -

            when it will be available in latest release?

            Show
            imakowski Ireneusz Makowski added a comment - when it will be available in latest release?
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: