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

Copy existing Job - Status Code: 500 - NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins ver. 1.500
      Jenkins Job Configuration History Plugin ver. 2.1.1
      Windows (any version, both 32bit and 64bit)
      Sun Microsystems Inc. Java(TM) SE Runtime Environment 1.6.0_26-b03

      Steps to reproduce bug:
      1. Go to Jenkins
      2. Click “New Job”
      3. Select any build type (I used Build a free-style software project in this case)
      4. Set the Job Name to something (I used projectA in this case)
      5. Click “OK”
      6. Click “Save”
      7. You are retuned to host:port/job/ProjectA/
      8. Click on “Back to Dashboard”
      9. Click on “New Job”
      10. Set the Job Name to project
      11. Click “Copy existing Job”
      12. Type projectA in the “ Copy from” input box
      13. Click “OK”
      14. Error is shown. Status code 500

      Status Code: 500
      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)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:215)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      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.model.Project.createTransientActions(Project.java:206)
      at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:688)
      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.model.Project.onLoad(Project.java:83)
      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.AllView.doCreateItem(AllView.java:76)
      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)
      ... 39 more

            stefanbrausch Stefan Brausch
            allan_peacock Allan Peacock
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: