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

NoSuchMethodError c.c.j.plugins.advisor.AdvisorGlobalConfiguration.getComponents => c.c.j.support.SupportPlugin.getComponents

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      First seen yesterday (and only once so far) after upgrading plugins:

      • cloudbees-jenkins-advisor:3.0.1 (from 3.0)
      • support-core:2.66 (from 2.65)

      A bit before there were other but IMHO potentially rather non-related plugin updates:

      • ant:1.11
      • cloudbees-folder:6.11
      • antisamy-markup-formatter:1.8
      • credentials:2.3.1
      • workflow-support:3.4
      • mailer:1.30
      • ssh-credentials:1.18.1
      • Office-365-Connector:4.12.2
      2020-01-16 15:12:36.908+0000 [id=19]    WARNING h.ExpressionFactory2$JexlExpression#evaluate: Caught exception evaluating: it.components in /cloudbees-jenkins-advisor/. Reason: java.lang.reflect.InvocationTargetException
      java.lang.NoSuchMethodError: com.cloudbees.jenkins.support.SupportPlugin.getComponents()Lhudson/ExtensionList;
              at com.cloudbees.jenkins.plugins.advisor.AdvisorGlobalConfiguration.getComponents(AdvisorGlobalConfiguration.java:286)
      Caused: java.lang.reflect.InvocationTargetException
              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.PropertyExecutor.execute(PropertyExecutor.java:125)
              at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
              at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
              at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
              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.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.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.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.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.TagSupport.invokeBody(TagSupport.java:161)
              at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
              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)
      ...
      

      And a bit later the same symptom in the CloudBees Jenkins Advisor Plugin Bundle Upload:

      2020-01-16 15:40:20.245+0000 [id=2002]  INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Bundle Upload
      2020-01-16 15:40:20.248+0000 [id=2002]  SEVERE  h.i.i.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler#uncaughtException: A thread (Bundle Upload thread/2002) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
      java.lang.NoSuchMethodError: com.cloudbees.jenkins.support.SupportPlugin.getComponents()Lhudson/ExtensionList;
              at com.cloudbees.jenkins.plugins.advisor.AdvisorGlobalConfiguration.getComponents(AdvisorGlobalConfiguration.java:286)
              at com.cloudbees.jenkins.plugins.advisor.AdvisorGlobalConfiguration.getIncludedComponents(AdvisorGlobalConfiguration.java:269)
              at com.cloudbees.jenkins.plugins.advisor.BundleUpload.generateBundle(BundleUpload.java:94)
              at com.cloudbees.jenkins.plugins.advisor.BundleUpload.execute(BundleUpload.java:72)
              at hudson.model.AsyncPeriodicWork.lambda$doRun$0(AsyncPeriodicWork.java:100)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

            Show
            reinholdfuereder Reinhold Füreder added a comment - - edited Oh yes, Support Core Plugin was changed: https://github.com/jenkinsci/support-core-plugin/compare/support-core-2.65...support-core-2.66 or https://github.com/jenkinsci/support-core-plugin/compare/support-core-2.65...support-core-2.66#diff-79928e08589e1f90af352ccce49d8eb0L274-L275 https://github.com/jenkinsci/support-core-plugin/commit/4a3c12403766f8e28386df1d2bd9757e3ec2fae7
            Hide
            escoem Emilio Escobar added a comment -

            Arnaud Héritier I have assigned to you. It seems that advisor code has to be adapted to the new support core api.

            Show
            escoem Emilio Escobar added a comment - Arnaud Héritier I have assigned to you. It seems that advisor code has to be adapted to the new support core api.
            Show
            aheritier Arnaud Héritier added a comment - Allan BURDAJEWICZ it seems that it's regression due to  https://github.com/jenkinsci/support-core-plugin/commit/4a3c12403766f8e28386df1d2bd9757e3ec2fae7 ( JENKINS-59342 )
            Hide
            aheritier Arnaud Héritier added a comment -

            The PR proposed by Evaristo Gutierrez is fixing the issue

            Show
            aheritier Arnaud Héritier added a comment - The PR proposed by Evaristo Gutierrez is fixing the issue
            Show
            aheritier Arnaud Héritier added a comment - support-core PR to restore the previous API:  https://github.com/jenkinsci/support-core-plugin/pull/207 support-core SNAPSHOT if you want to test it instead of downgrading:  https://ci.jenkins.io/job/Plugins/job/support-core-plugin/job/PR-207/1/artifact/org/jenkins-ci/plugins/support-core/2.67-rc812.5f943f6894c1/support-core-2.67-rc812.5f943f6894c1.hpi
            Hide
            aheritier Arnaud Héritier added a comment -

            Fixed in support-core 2.67

            Show
            aheritier Arnaud Héritier added a comment - Fixed in support-core 2.67

              People

              Assignee:
              egutierrez Evaristo Gutierrez
              Reporter:
              reinholdfuereder Reinhold Füreder
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: