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

NPE during submission of EnvInject JobProperty configurations

    Details

    • Similar Issues:

      Description

      Our user sometimes receives the following error after submission of job with EnvInjectJobProperty.

      EnvInjectJobProperty settings:

      • Properties Content only
      • Groovy scripts are empty

      Seems that issue has been caused by https://github.com/jenkinsci/envinject-plugin/commit/96a526963b53819828c3a58ad7ea25dd8bfba244

      Stacktrace:

      javax.servlet.ServletException: java.lang.NullPointerException
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      ....
      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.run(FutureTask.java:262)
      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:724)
      Caused by: java.lang.NullPointerException
      at org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:127)
      at org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:25)
      at hudson.util.DescribableList.rebuild(DescribableList.java:171)
      at hudson.model.Job.doConfigSubmit(Job.java:1052)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:753)
      at sun.reflect.GeneratedMethodAccessor1181.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      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:677)
      ... 64 more

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Workaround: use EnvInject build wrapper wherever it is possible

            Show
            oleg_nenashev Oleg Nenashev added a comment - Workaround: use EnvInject build wrapper wherever it is possible
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Most probably, issue has been caused by usage of "this.info.getGroovyScriptContent()" in the constructor:

            property.info = new EnvInjectJobPropertyInfo(property.info.propertiesFilePath, property.info.propertiesContent,
                                                                    property.info.getScriptFilePath(), property.info.getScriptContent(),
                                                                    this.info.getGroovyScriptContent(), property.info.isLoadFilesFromMaster()); 
            
            
            Show
            oleg_nenashev Oleg Nenashev added a comment - Most probably, issue has been caused by usage of "this.info.getGroovyScriptContent()" in the constructor: property.info = new EnvInjectJobPropertyInfo(property.info.propertiesFilePath, property.info.propertiesContent, property.info.getScriptFilePath(), property.info.getScriptContent(), this .info.getGroovyScriptContent(), property.info.isLoadFilesFromMaster());
            Hide
            dilipm79 Dilip Mahadevappa added a comment -

            Users with Admin privilege does not get this exception.

            Show
            dilipm79 Dilip Mahadevappa added a comment - Users with Admin privilege does not get this exception.
            Hide
            renuc Renu Chudamani added a comment -

            I don't have any groovy scripts associated to my job - but still got this error. I enabled the envinject and then when I try to disable I get this null pointer error.

            Show
            renuc Renu Chudamani added a comment - I don't have any groovy scripts associated to my job - but still got this error. I enabled the envinject and then when I try to disable I get this null pointer error.
            Hide
            jglick Jesse Glick added a comment -

            Fix should be trivial (see duplicate for explanation); do you need a PR for it?

            Show
            jglick Jesse Glick added a comment - Fix should be trivial (see duplicate for explanation); do you need a PR for it?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/model/ReconfigurableDescribable.java
            http://jenkins-ci.org/commit/jenkins/9bf265e5762f1d27e8560b716a25e2dbb031c8fc
            Log:
            FindBugs annotations to catch the likes of JENKINS-19852.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/ReconfigurableDescribable.java http://jenkins-ci.org/commit/jenkins/9bf265e5762f1d27e8560b716a25e2dbb031c8fc Log: FindBugs annotations to catch the likes of JENKINS-19852 .
            Show
            schristou Steven Christou added a comment - See https://github.com/jenkinsci/envinject-plugin/pull/29 for fix.
            Hide
            oleg_nenashev Oleg Nenashev added a comment - - edited

            @Steven
            Thanks. No idea why I had not created the PR on my own

            Show
            oleg_nenashev Oleg Nenashev added a comment - - edited @Steven Thanks. No idea why I had not created the PR on my own
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: christ66
            Path:
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java
            http://jenkins-ci.org/commit/envinject-plugin/d6fbc760d24609490c42f96b2d769f27fb360587
            Log:
            [FIXED JENKINS-19852] NPE during submission of EnvInject JobProperty configurations

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: christ66 Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java http://jenkins-ci.org/commit/envinject-plugin/d6fbc760d24609490c42f96b2d769f27fb360587 Log: [FIXED JENKINS-19852] NPE during submission of EnvInject JobProperty configurations
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Steven Christou
            Path:
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java
            http://jenkins-ci.org/commit/envinject-plugin/7d369eb79c6425d0221c9a87dc84c7ee3ed623b6
            Log:
            Merge pull request #29 from christ66/JENKINS-19852

            [FIXED JENKINS-19852] NPE during submission of EnvInject JobProperty con...

            Compare: https://github.com/jenkinsci/envinject-plugin/compare/c68558aba602...7d369eb79c64

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Steven Christou Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java http://jenkins-ci.org/commit/envinject-plugin/7d369eb79c6425d0221c9a87dc84c7ee3ed623b6 Log: Merge pull request #29 from christ66/ JENKINS-19852 [FIXED JENKINS-19852] NPE during submission of EnvInject JobProperty con... Compare: https://github.com/jenkinsci/envinject-plugin/compare/c68558aba602...7d369eb79c64
            Hide
            recampbell Ryan Campbell added a comment -

            Steven, I realizes this "fixes" the NPE, but I wonder if it breaks what Nicolas was trying to accomplish in 96a52696 in the first place – to prevent users without RUN_SCRIPTS from editing the groovy script.

            Note that the groovy script is read-only without the RUN_SCRIPTS permission, but one could trivially edit the HTML to inject whatever groovy they like. So the server side check is still needed.

            My point is, I think we need to re-open JENKINS-19852 and let @ndeloof fix the NPE in a way which still prevents editing of the groovy in this case as desired in 96a52696.

            Show
            recampbell Ryan Campbell added a comment - Steven, I realizes this "fixes" the NPE, but I wonder if it breaks what Nicolas was trying to accomplish in 96a52696 in the first place – to prevent users without RUN_SCRIPTS from editing the groovy script. Note that the groovy script is read-only without the RUN_SCRIPTS permission, but one could trivially edit the HTML to inject whatever groovy they like. So the server side check is still needed. My point is, I think we need to re-open JENKINS-19852 and let @ndeloof fix the NPE in a way which still prevents editing of the groovy in this case as desired in 96a52696.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De loof
            Path:
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java
            http://jenkins-ci.org/commit/envinject-plugin/e92085799b2d04f34a689e31784b6c5292a60456
            Log:
            [FIXED JENKINS-19852]

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectJobProperty.java http://jenkins-ci.org/commit/envinject-plugin/e92085799b2d04f34a689e31784b6c5292a60456 Log: [FIXED JENKINS-19852]
            Hide
            jglick Jesse Glick added a comment -

            Of course the proper fix is to add a dependency on script-security-plugin. The current SECURITY-86 fix is probably circumventable.

            Show
            jglick Jesse Glick added a comment - Of course the proper fix is to add a dependency on script-security-plugin . The current SECURITY-86 fix is probably circumventable.
            Hide
            weakcamel Waldek M added a comment -

            Hello,
            I'm afraid I was able to reproduce this issue again on core 1.601 and 1.90 of EnvInject.
            Or more precisely, I reproduced duplicated https://issues.jenkins-ci.org/browse/JENKINS-22577
            As a user with job configuration permissions I've un-checked the "Prepare environment" option, and while saving, I was greeted with the following stacktrace.

            javax.servlet.ServletException: java.lang.NullPointerException
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
            	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
            	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
            	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
            	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
            	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
            	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
            	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123)
            	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
            	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
            	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
            	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
            	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:117)
            	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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
            	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 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
            	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
            	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
            	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
            	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
            	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
            	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
            	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
            	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
            	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
            	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
            	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
            	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
            	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
            	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
            	at org.eclipse.jetty.server.Server.handle(Server.java:366)
            	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
            	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
            	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
            	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
            	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
            	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
            	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
            	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
            	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:724)
            Caused by: java.lang.NullPointerException
            	at org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:136)
            	at org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:25)
            	at hudson.util.DescribableList.rebuild(DescribableList.java:173)
            	at hudson.model.Job.doConfigSubmit(Job.java:1193)
            	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:785)
            	at sun.reflect.GeneratedMethodAccessor1121.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
            	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
            	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
            	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
            	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
            	... 69 more
            
            Show
            weakcamel Waldek M added a comment - Hello, I'm afraid I was able to reproduce this issue again on core 1.601 and 1.90 of EnvInject. Or more precisely, I reproduced duplicated https://issues.jenkins-ci.org/browse/JENKINS-22577 As a user with job configuration permissions I've un-checked the "Prepare environment" option, and while saving, I was greeted with the following stacktrace. javax.servlet.ServletException: java.lang.NullPointerException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) 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:117) 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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) 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 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:366) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) 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:724) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:136) at org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:25) at hudson.util.DescribableList.rebuild(DescribableList.java:173) at hudson.model.Job.doConfigSubmit(Job.java:1193) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:785) at sun.reflect.GeneratedMethodAccessor1121.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 69 more
            Hide
            weakcamel Waldek M added a comment -

            Re-occurence on 1.601 core, EnvInject 1.90

            Show
            weakcamel Waldek M added a comment - Re-occurence on 1.601 core, EnvInject 1.90
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            @Waldek
            The issue has been fixed by https://github.com/jenkinsci/envinject-plugin/commit/f28c26b7c4e346157fcaf2f284582e29457bb1ff
            Unfortunately, the new plugin version has not been released yet

            Show
            oleg_nenashev Oleg Nenashev added a comment - @Waldek The issue has been fixed by https://github.com/jenkinsci/envinject-plugin/commit/f28c26b7c4e346157fcaf2f284582e29457bb1ff Unfortunately, the new plugin version has not been released yet
            Hide
            weakcamel Waldek M added a comment -

            Ah, I see. Thanks, and too bad.
            I do hope it would, soon.

            Show
            weakcamel Waldek M added a comment - Ah, I see. Thanks, and too bad. I do hope it would, soon.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I've released the new plugin version. It should become available soon.
            Closing the issue again

            Show
            oleg_nenashev Oleg Nenashev added a comment - I've released the new plugin version. It should become available soon. Closing the issue again
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            @Waldek, your issue has not been fixed in 1.91.1
            I've created JENKINS-27496

            Show
            oleg_nenashev Oleg Nenashev added a comment - @Waldek, your issue has not been fixed in 1.91.1 I've created JENKINS-27496
            Hide
            weakcamel Waldek M added a comment -

            Thanks, Oleg! I appreciate it.

            Show
            weakcamel Waldek M added a comment - Thanks, Oleg! I appreciate it.

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: