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

Active Choices Error executing script for dynamic parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: active-choices-plugin
    • Labels:
      None
    • Environment:
      Jenkins LTS 2.204.2
      Active Choices Plugin 2.2.2
    • Similar Issues:

      Description

      We recently performed an upgrade of the active choices plugin, as well as Jenkins core, and are getting the below error anytime we click Build with Parameters on a job that has an active choice parameter configured. This also returns a blank list and no paramters are available to select.

      May 06, 2020 8:13:20 AM org.biouno.unochoice.AbstractScriptableParameter evalMay 06, 2020 8:13:20 AM org.biouno.unochoice.AbstractScriptableParameter evalSEVERE: Error executing script for dynamic parameterjava.lang.NullPointerException        at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator.getStagingUserPluginInfo(ArtifactoryGradleConfigurator.java:642)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:498)        at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:193)        at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:178)        at org.biouno.unochoice.util.Utils.read(Utils.java:343)        at org.biouno.unochoice.util.Utils.addParameterDefinitionsTo(Utils.java:323)        at org.biouno.unochoice.util.Utils.getBuildWrapperParameterDefinitions(Utils.java:302)        at org.biouno.unochoice.util.Utils.isParameterDefinitionOf(Utils.java:227)        at org.biouno.unochoice.util.Utils.findProjectByParameterUUID(Utils.java:209)        at org.biouno.unochoice.AbstractScriptableParameter.getHelperParameters(AbstractScriptableParameter.java:189)        at org.biouno.unochoice.AbstractScriptableParameter.eval(AbstractScriptableParameter.java:257)        at org.biouno.unochoice.AbstractScriptableParameter.getChoices(AbstractScriptableParameter.java:221)        at org.biouno.unochoice.AbstractScriptableParameter.getChoices(AbstractScriptableParameter.java:209)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:498)        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)        at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)        at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)        at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)        at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)        at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)        at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)        at org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:94)        at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)        at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)        at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:46)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)        at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105) at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)        at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)        at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)        at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)        at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)        at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)        at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)        at org.kohsuke.stapler.jelly.ScriptInvoker.execute(ScriptInvoker.java:56)        at org.kohsuke.stapler.jelly.ScriptInvoker.execute(ScriptInvoker.java:43)        at org.kohsuke.stapler.ScriptRequestDispatcher.forward(ScriptRequestDispatcher.java:95)        at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:204)        at jenkins.model.ParameterizedJobMixIn$ParameterizedJob.doBuild(ParameterizedJobMixIn.java:407)        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)        at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)        at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)        at org.kohsuke.stapler.Stapler.service(Stapler.java:238)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)        at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:246)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:109)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at javax.servlet.FilterChain$doFilter.call(Unknown Source)        at com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)        at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)        at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)        at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:64)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        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 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:90)        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)        at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

            Hide
            trent_dailey Trent Dailey added a comment -

            This does not impact Freestyle jobs either, only Maven and Pipeline jobs.

            Show
            trent_dailey Trent Dailey added a comment - This does not impact Freestyle jobs either, only Maven and Pipeline jobs.
            Hide
            kinow Bruno P. Kinoshita added a comment -

            Hi Trent Dailey, thanks for reporting. I managed to start a development cycle and am catching up on issues, triaging pending issues, etc. Will take a look at this one before the next release (within some days).

            Thanks!
            Bruno

            Show
            kinow Bruno P. Kinoshita added a comment - Hi Trent Dailey , thanks for reporting. I managed to start a development cycle and am catching up on issues, triaging pending issues, etc. Will take a look at this one before the next release (within some days). Thanks! Bruno
            Hide
            kinow Bruno P. Kinoshita added a comment -

            Duplicate of JENKINS-61243

            Show
            kinow Bruno P. Kinoshita added a comment - Duplicate of JENKINS-61243

              People

              Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              trent_dailey Trent Dailey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: