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

groovy.lang.MissingPropertyException with Active Choices Reactive Parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • active-choices-plugin
    • None
    • Jenkins : 2.414.1
      active-choices-plugin : 2.7.2

      After reproduce the States/Cities example of plugin page, and activate FINEST org.biouno.unochoice Logger, I can see these exceptions on build with parameters launch :

      Sep 29, 2023 2:39:55 PM FINEST org.biouno.unochoice.model.GroovyScript
      Fallback to default script...
      groovy.lang.MissingPropertyException: No such property: States for class: groovy.lang.Binding
       at groovy.lang.Binding.getVariable(Binding.java:63)
       at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:285)
       at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:375)
       at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:379)
       at org.kohsuke.groovy.sandbox.impl.Checker$checkedGetProperty$1.callStatic(Unknown Source)
       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:197)
       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:233)
       at Script1.run(Script1.groovy:1)
       at ...
      Sep 29, 2023 2:39:55 PM FINE org.biouno.unochoice.AbstractUnoChoiceParameter
      Script parameter with name 'Cities' is not an instance of java.util.Map. The parameter value is null

            kinow Bruno P. Kinoshita
            cpottiers Cyril Pottiers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: