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

Artifactory plugin to fail active-choice plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Active-choice 2.2.1 plugin steps ceased to be executed, a trace was displayed in the jenkins.log (Jenkins version 2.176.3-1.1), after removing the Artifactory plugin 3.3.2, the active-choice plugin was restored

      SEVERE: Error executing script for dynamic parameter
      java.lang.NullPointerException
              at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator.getReleaseRepositories(ArtifactoryGradleConfigurator.java:626)
              at sun.reflect.GeneratedMethodAccessor2235.invoke(Unknown Source)
              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.getChoicesAsString(AbstractScriptableParameter.java:248)
              at org.biouno.unochoice.AbstractScriptableParameter.getChoicesAsString(AbstractScriptableParameter.java:244)
              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.evaluateAsString(ExpressionSupport.java:46)
              at org.apache.commons.jelly.tags.core.ExprTag.doTag(ExprTag.java:42)
              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.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)
      

        Attachments

          Issue Links

            Activity

            Hide
            kinow Bruno P. Kinoshita added a comment -

            No blame on artifactory-plugin. We are doing something pretty dangerous using Reflection API to access some members of objects.

            Doing so is quite dangerous. But instead of catching a possible RuntimeException like this NullPointerException, we were simply throwing the error up, causing the issue reported.

            The proposed fix in the PR https://github.com/jenkinsci/active-choices-plugin/pull/35 catches the exception and continues with the rest of the process. It also logs under Level.FINE.

            https://github.com/jenkinsci/active-choices-plugin/pull/35

            Show
            kinow Bruno P. Kinoshita added a comment - No blame on artifactory-plugin. We are doing something pretty dangerous using Reflection API to access some members of objects. Doing so is quite dangerous. But instead of catching a possible RuntimeException like this NullPointerException, we were simply throwing the error up, causing the issue reported. The proposed fix in the PR https://github.com/jenkinsci/active-choices-plugin/pull/35 catches the exception and continues with the rest of the process. It also logs under Level.FINE. https://github.com/jenkinsci/active-choices-plugin/pull/35

              People

              Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              vnenashev Владислав Ненашев
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: