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

NullPointerException when saving job config

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I tried to change a job config of a job that uses scripttrigger, but I was not able to save the job. When clicking on the save button of the job config, the following stack trace appears in the browser:

      Oops!
      
      A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
      
      Stack trace
      
      javax.servlet.ServletException: java.lang.NullPointerException
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:586)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:217)
      	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:96)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      	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.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	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:47)
      	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:227)
      	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.NullPointerException
      	at org.jenkinsci.plugins.scripttrigger.groovy.GroovyScriptTrigger.getLogFile(GroovyScriptTrigger.java:77)
      	at org.jenkinsci.plugins.scripttrigger.groovy.GroovyScriptTrigger.getProjectActions(GroovyScriptTrigger.java:71)
      	at hudson.model.Project.createTransientActions(Project.java:222)
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724)
      	at hudson.model.AbstractProject.save(AbstractProject.java:279)
      	at hudson.model.AbstractItem.setDisplayName(AbstractItem.java:156)
      	at hudson.model.Job.doConfigSubmit(Job.java:1044)
      	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
      	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:684)
      	... 56 more
      

      I was only able to edit the job config in the XML file, because it was impossible to do that in the GUI.

      If you need the Job config, I can upload it here!

        Attachments

          Issue Links

            Activity

            thetaphi Uwe Schindler created issue -
            Hide
            luetzken Stefan Lützkendorf added a comment -

            I have a similiar problem.

            Saving a Job WITHOUT ANY changes causes NPE in

            at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getLogFile(BuildResultTrigger.java:46)

            javax.servlet.ServletException: java.lang.NullPointerException
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:586)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:217)
            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:96)
            at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:36)
            at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103)
            at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:32)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
            at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
            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.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
            at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
            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:47)
            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:227)
            at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:662)
            Caused by: java.lang.NullPointerException
            at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getLogFile(BuildResultTrigger.java:46)
            at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getProjectActions(BuildResultTrigger.java:51)
            at hudson.matrix.MatrixProject.createTransientActions(MatrixProject.java:433)
            at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724)
            at hudson.matrix.MatrixProject.updateTransientActions(MatrixProject.java:440)
            at hudson.model.AbstractProject.save(AbstractProject.java:279)
            at hudson.model.AbstractItem.setDisplayName(AbstractItem.java:156)
            at hudson.model.Job.doConfigSubmit(Job.java:1044)
            at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
            at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
            at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
            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:684)
            ... 66 more

            Show
            luetzken Stefan Lützkendorf added a comment - I have a similiar problem. Saving a Job WITHOUT ANY changes causes NPE in at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getLogFile(BuildResultTrigger.java:46) javax.servlet.ServletException: java.lang.NullPointerException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:726) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:239) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:777) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:586) at org.kohsuke.stapler.Stapler.service(Stapler.java:217) 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:96) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:36) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:32) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) 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.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 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:47) 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:227) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getLogFile(BuildResultTrigger.java:46) at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getProjectActions(BuildResultTrigger.java:51) at hudson.matrix.MatrixProject.createTransientActions(MatrixProject.java:433) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724) at hudson.matrix.MatrixProject.updateTransientActions(MatrixProject.java:440) at hudson.model.AbstractProject.save(AbstractProject.java:279) at hudson.model.AbstractItem.setDisplayName(AbstractItem.java:156) at hudson.model.Job.doConfigSubmit(Job.java:1044) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95) 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:684) ... 66 more
            luetzken Stefan Lützkendorf made changes -
            Field Original Value New Value
            Affects Version/s current [ 10162 ]
            Component/s buildresulttrigger [ 15924 ]
            Hide
            thetaphi Uwe Schindler added a comment -

            I can confirm, in ScriptTrigger it is the same: Save without any changes causes NPE.

            Show
            thetaphi Uwe Schindler added a comment - I can confirm, in ScriptTrigger it is the same: Save without any changes causes NPE.
            Hide
            flow86 Florian Doersch added a comment - - edited

            same here

            but: I also get a "The job is building. Waiting for next poll." in the ScriptTrigger Log, but the job is not running. I can't even start the job anymore

            Show
            flow86 Florian Doersch added a comment - - edited same here but: I also get a "The job is building. Waiting for next poll." in the ScriptTrigger Log, but the job is not running. I can't even start the job anymore
            Hide
            computabloke David Turner added a comment - - edited

            I have the same problem (GroovyScriptTrigger.getLogFile) trying to save job config.
            This is after updating Jenkins 1.504 to 1.523 and ScriptTrigger 0.23 to 0.29.

            SEVERE: Error while serving http://xxxxx:8080/jenkins/job/yyyy/configSubmit
            java.lang.reflect.InvocationTargetException
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            ...
            	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            	at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.NullPointerException
            	at org.jenkinsci.plugins.scripttrigger.groovy.GroovyScriptTrigger.getLogFile(GroovyScriptTrigger.java:77)
            	at org.jenkinsci.plugins.scripttrigger.groovy.GroovyScriptTrigger.getProjectActions(GroovyScriptTrigger.java:71)
            ...
            	at hudson.model.Project.submit(Project.java:202)
            	at hudson.model.Job.doConfigSubmit(Job.java:1084)
            	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765)
            	... 66 more
            

            Update: I have tried uninstalling ScriptTrigger v0.29 and reinstalling v0.28 and the last successful version v0.23, still getting the same NPE at GroovyScriptTrigger.java:77, so I suspect is is not an issue with the plugin. I will try to rollback Jenkins.
            Update: Rollback to 1.504 I can save job configs, but there are other issues now with some plugins dependant on a greater version, so I'll try and find a version in between.

            This is disappointing, I'll definitely be more cautious with updates in future.

            Show
            computabloke David Turner added a comment - - edited I have the same problem (GroovyScriptTrigger.getLogFile) trying to save job config. This is after updating Jenkins 1.504 to 1.523 and ScriptTrigger 0.23 to 0.29. SEVERE: Error while serving http: //xxxxx:8080/jenkins/job/yyyy/configSubmit java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ... at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang. Thread .run(Unknown Source) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.scripttrigger.groovy.GroovyScriptTrigger.getLogFile(GroovyScriptTrigger.java:77) at org.jenkinsci.plugins.scripttrigger.groovy.GroovyScriptTrigger.getProjectActions(GroovyScriptTrigger.java:71) ... at hudson.model.Project.submit(Project.java:202) at hudson.model.Job.doConfigSubmit(Job.java:1084) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765) ... 66 more Update : I have tried uninstalling ScriptTrigger v0.29 and reinstalling v0.28 and the last successful version v0.23, still getting the same NPE at GroovyScriptTrigger.java:77, so I suspect is is not an issue with the plugin. I will try to rollback Jenkins. Update : Rollback to 1.504 I can save job configs, but there are other issues now with some plugins dependant on a greater version, so I'll try and find a version in between. This is disappointing, I'll definitely be more cautious with updates in future.
            Hide
            flow86 Florian Doersch added a comment -

            1.520 worked correctly for me with 0.28 (or perhaps even 0.29 idk)

            it seems that only matrix(/multi configuration)-jobs are affected.

            the NPE seems to be "job.getRootDir()" (either job is null or getRootDir returns null)

            Show
            flow86 Florian Doersch added a comment - 1.520 worked correctly for me with 0.28 (or perhaps even 0.29 idk) it seems that only matrix(/multi configuration)-jobs are affected. the NPE seems to be "job.getRootDir()" (either job is null or getRootDir returns null)
            sogabe sogabe made changes -
            Link This issue is related to JENKINS-18764 [ JENKINS-18764 ]
            Hide
            thetaphi Uwe Schindler added a comment -

            My job is not a matrix one, but still fails! In my case, the node where the job is running is offline (only starts when job runs), so the root dir is obviously null, because node is offline.

            Show
            thetaphi Uwe Schindler added a comment - My job is not a matrix one, but still fails! In my case, the node where the job is running is offline (only starts when job runs), so the root dir is obviously null, because node is offline.
            Hide
            waspswarm Scott Rankin added a comment -

            We were seeing the same NPE (from the BuildResultTrigger.getLog) with a non-matrix job when trying to save the configuration. We downgraded Jenkins from 1.523 to 1.521 and I was able to save a job configuration without the crash.

            Show
            waspswarm Scott Rankin added a comment - We were seeing the same NPE (from the BuildResultTrigger.getLog) with a non-matrix job when trying to save the configuration. We downgraded Jenkins from 1.523 to 1.521 and I was able to save a job configuration without the crash.
            Hide
            coolmischa Mischa Soujon added a comment -

            I tried to add a BuildTrigger to the job and got this NPE:

            ...
            	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822)
            	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)
            Caused by: java.lang.NullPointerException
            	at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getLogFile(BuildResultTrigger.java:46)
            	at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getProjectActions(BuildResultTrigger.java:51)
            	at hudson.model.Project.createTransientActions(Project.java:222)
            	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724)
            	at hudson.model.AbstractProject.save(AbstractProject.java:279)
            	at hudson.util.PersistedList.onModified(PersistedList.java:173)
            	at hudson.util.PersistedList.replaceBy(PersistedList.java:85)
            	at hudson.model.AbstractProject.submit(AbstractProject.java:1983)
            	at hudson.model.Project.submit(Project.java:202)
            	at hudson.model.Job.doConfigSubmit(Job.java:1084)
            	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:601)
            	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
            	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
            	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
            	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:684)
            	... 65 more
            

            It is jenkins 1.523 on a windows box. Changing the config.xml by hand shows the change in the job config view but does not work.

            Show
            coolmischa Mischa Soujon added a comment - I tried to add a BuildTrigger to the job and got this NPE: ... at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1822) 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) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getLogFile(BuildResultTrigger.java:46) at org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger.getProjectActions(BuildResultTrigger.java:51) at hudson.model.Project.createTransientActions(Project.java:222) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:724) at hudson.model.AbstractProject.save(AbstractProject.java:279) at hudson.util.PersistedList.onModified(PersistedList.java:173) at hudson.util.PersistedList.replaceBy(PersistedList.java:85) at hudson.model.AbstractProject.submit(AbstractProject.java:1983) at hudson.model.Project.submit(Project.java:202) at hudson.model.Job.doConfigSubmit(Job.java:1084) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:765) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95) 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:684) ... 65 more It is jenkins 1.523 on a windows box. Changing the config.xml by hand shows the change in the job config view but does not work.
            Hide
            jonathanb Jonathan Brecher added a comment -

            Same as JENKINS-18658?

            Show
            jonathanb Jonathan Brecher added a comment - Same as JENKINS-18658 ?
            Hide
            simonuk Simon Watts added a comment -

            I had the same stack trace when trying to save jobs that had BuildResultTrigger configured

            This problem occurred in Jenkins 1.522 and 1.523 on CentOS - I tried downgrading to 1.521 but still had the same problem

            I've removed BuildResultTrigger for now and that fixes it

            Show
            simonuk Simon Watts added a comment - I had the same stack trace when trying to save jobs that had BuildResultTrigger configured This problem occurred in Jenkins 1.522 and 1.523 on CentOS - I tried downgrading to 1.521 but still had the same problem I've removed BuildResultTrigger for now and that fixes it
            Hide
            chr0n1x Kevin R. added a comment -

            A shame. I actually need BuildResultTrigger

            Show
            chr0n1x Kevin R. added a comment - A shame. I actually need BuildResultTrigger
            Hide
            tadas_subonis Tadas Subonis added a comment -

            I could actually fix this bug - it looks more or less about missing Job reference when we actually want Project.

            Maybe Gregory Boissinot could advice me on this? I am mainly concerned why we are accessing Job instance when we are saving project - it shouldn't be available until we actually start building project.

            Also, I would like to know how do we handle Trigger lifecycle. When do we get available project actions? How do we insert data and use constructor "DataBoundConstructor"?

            Show
            tadas_subonis Tadas Subonis added a comment - I could actually fix this bug - it looks more or less about missing Job reference when we actually want Project. Maybe Gregory Boissinot could advice me on this? I am mainly concerned why we are accessing Job instance when we are saving project - it shouldn't be available until we actually start building project. Also, I would like to know how do we handle Trigger lifecycle. When do we get available project actions? How do we insert data and use constructor "DataBoundConstructor"?
            Hide
            nstewart Nigel Stewart added a comment -

            Same problem here with Jenkins 1.525 RPM on Fedora 15 x86_64.
            Any suggested workarounds? A known good RPM?

            • Nigel
            Show
            nstewart Nigel Stewart added a comment - Same problem here with Jenkins 1.525 RPM on Fedora 15 x86_64. Any suggested workarounds? A known good RPM? Nigel
            Hide
            chr0n1x Kevin R. added a comment -

            Just upgraded to 1.525 on CentOS. Same problem.

            Show
            chr0n1x Kevin R. added a comment - Just upgraded to 1.525 on CentOS. Same problem.
            Hide
            kendall Kendall Sullivan added a comment -

            Upgraded to 1.525 as well on Mac 10.7.5, same exception. Also upgraded plugin from 0.28 to 0.29 the entry is now showing:
            Unnamed - org.jenkins-ci.plugins:scripttrigger:hpi:0.29). Downgraded to 0.28 the entry shows correctly, however, the exception remains.

            Show
            kendall Kendall Sullivan added a comment - Upgraded to 1.525 as well on Mac 10.7.5, same exception. Also upgraded plugin from 0.28 to 0.29 the entry is now showing: Unnamed - org.jenkins-ci.plugins:scripttrigger:hpi:0.29). Downgraded to 0.28 the entry shows correctly, however, the exception remains.
            Hide
            grenzr Ryan Grenz added a comment -

            I managed to get ScriptTrigger 0.29 plugin working by rolling back Jenkins version to 1.521. Something in 1.522 has caused the breakage of this plugin.

            Show
            grenzr Ryan Grenz added a comment - I managed to get ScriptTrigger 0.29 plugin working by rolling back Jenkins version to 1.521. Something in 1.522 has caused the breakage of this plugin.
            Hide
            nstewart Nigel Stewart added a comment -

            Thanks Ryan, 1.521 + ScriptTrigger is working here for me too.

            Show
            nstewart Nigel Stewart added a comment - Thanks Ryan, 1.521 + ScriptTrigger is working here for me too.
            Hide
            tadas_subonis Tadas Subonis added a comment -

            Looks like that this regression affects all plugins. The problem is that now getProjectActions is called before "start" on trigger.

            Maybe later I'll try writing a test later and bisecting changes to find actual commit that broke this.

            Show
            tadas_subonis Tadas Subonis added a comment - Looks like that this regression affects all plugins. The problem is that now getProjectActions is called before "start" on trigger. Maybe later I'll try writing a test later and bisecting changes to find actual commit that broke this.
            Show
            tadas_subonis Tadas Subonis added a comment - looks like commit at fault is https://github.com/jenkinsci/jenkins/commit/4cab495ca2c12aacc927338c6f4ccabf9d8b1600
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Gregory Boissinot
            Path:
            src/main/java/org/jenkinsci/plugins/scripttrigger/AbstractTriggerAction.java
            src/main/java/org/jenkinsci/plugins/scripttrigger/ScriptTrigger.java
            src/main/java/org/jenkinsci/plugins/scripttrigger/ScriptTriggerAction.java
            src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTrigger.java
            src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTriggerAction.java
            src/main/resources/index.jelly
            src/main/resources/org/jenkinsci/plugins/scripttrigger/ScriptTriggerAction/index.jelly
            src/main/resources/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTriggerAction/index.jelly
            http://jenkins-ci.org/commit/scripttrigger-plugin/86b61ffef908cb43dadd8f6d58e213a8e1bc4fcb
            Log:
            Fix JENKINS-18667

            Compare: https://github.com/jenkinsci/scripttrigger-plugin/compare/aafcb97994ee...86b61ffef908

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/scripttrigger/AbstractTriggerAction.java src/main/java/org/jenkinsci/plugins/scripttrigger/ScriptTrigger.java src/main/java/org/jenkinsci/plugins/scripttrigger/ScriptTriggerAction.java src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTrigger.java src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTriggerAction.java src/main/resources/index.jelly src/main/resources/org/jenkinsci/plugins/scripttrigger/ScriptTriggerAction/index.jelly src/main/resources/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTriggerAction/index.jelly http://jenkins-ci.org/commit/scripttrigger-plugin/86b61ffef908cb43dadd8f6d58e213a8e1bc4fcb Log: Fix JENKINS-18667 Compare: https://github.com/jenkinsci/scripttrigger-plugin/compare/aafcb97994ee...86b61ffef908
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Gregory Boissinot
            Path:
            src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTrigger.java
            src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTriggerAction.java
            http://jenkins-ci.org/commit/buildresult-trigger-plugin/9baf7b59e4c6f70ddb80d9a844c089ad89786204
            Log:
            Fix JENKINS-18667 + fix warnings

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTrigger.java src/main/java/org/jenkinsci/plugins/buildresulttrigger/BuildResultTriggerAction.java http://jenkins-ci.org/commit/buildresult-trigger-plugin/9baf7b59e4c6f70ddb80d9a844c089ad89786204 Log: Fix JENKINS-18667 + fix warnings
            gbois Gregory Boissinot made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            rkbejawar Ramakrishna Bejawar added a comment -

            I have the same problem when Submitting Job configuration changes in Jenkins Version 1.559

            Show
            rkbejawar Ramakrishna Bejawar added a comment - I have the same problem when Submitting Job configuration changes in Jenkins Version 1.559
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 150015 ] JNJira + In-Review [ 193381 ]

              People

              • Assignee:
                gbois Gregory Boissinot
                Reporter:
                thetaphi Uwe Schindler
              • Votes:
                12 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: