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

NPE when new job by copy from existing one

XMLWordPrintable

      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
      

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

              Created:
              Updated:
              Resolved: