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

Failed to scout hudson.plugins.timestamper.pipeline.TimestamperStep

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Working on our Jenkins 1.656 instance, when I upgraded the Timestamper plugin from 1.7.4 to 1.8.2 I saw the following errors in the Jenkins system log at startup:

      Listed all plugins
      Jun 06, 2016 2:05:11 PM WARNING hudson.ExtensionFinder$Sezpoz scout
      Failed to scout hudson.plugins.timestamper.pipeline.TimestamperStep$DescriptorImpl
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/AbstractStepDescriptorImpl
      	at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
      	at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:662)
      	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:383)
      	at hudson.ExtensionList.load(ExtensionList.java:349)
      	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      	at hudson.ExtensionList.getComponents(ExtensionList.java:167)
      	at jenkins.model.Jenkins$9.onInitMilestoneAttained(Jenkins.java:976)
      	at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:79)
      	at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
      	at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	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:745)
      Caused by: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/AbstractStepDescriptorImpl
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      	at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
      	at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:802)
      	at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
      	at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
      	at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1209)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
      	... 13 more
      Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl
      	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 29 more
      
      Jun 06, 2016 2:05:11 PM WARNING hudson.ExtensionFinder$Sezpoz _find
      Failed to load hudson.plugins.timestamper.pipeline.TimestamperStep$DescriptorImpl
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/AbstractStepDescriptorImpl
      	at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
      	at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:626)
      	at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:615)
      	at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:257)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at java.lang.Class.newInstance(Class.java:374)
      	at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
      	at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:640)
      	at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:615)
      	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:389)
      	at hudson.ExtensionList.load(ExtensionList.java:349)
      	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      	at hudson.ExtensionList.getComponents(ExtensionList.java:167)
      	at jenkins.model.Jenkins$9.onInitMilestoneAttained(Jenkins.java:976)
      	at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:79)
      	at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
      	at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	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:745)
      Caused by: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/AbstractStepDescriptorImpl
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      	at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
      	at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:802)
      	at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
      	at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
      	at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1209)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
      	... 23 more
      Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl
      	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 39 more
      
      Jun 06, 2016 2:05:11 PM WARNING hudson.ExtensionFinder$Sezpoz _find
      Failed to load hudson.plugins.timestamper.pipeline.TimestamperStep$DescriptorImpl
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/AbstractStepDescriptorImpl
      	at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
      	at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:626)
      	at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:615)
      	at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:275)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at java.lang.Class.newInstance(Class.java:374)
      	at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
      	at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:640)
      	at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:615)
      	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:389)
      	at hudson.ExtensionList.load(ExtensionList.java:349)
      	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      	at hudson.ExtensionList.getComponents(ExtensionList.java:167)
      	at jenkins.model.Jenkins$9.onInitMilestoneAttained(Jenkins.java:976)
      	at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:79)
      	at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
      	at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	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:745)
      Caused by: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/steps/AbstractStepDescriptorImpl
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      	at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
      	at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:802)
      	at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
      	at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
      	at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1209)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
      	... 23 more
      Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.steps.AbstractStepDescriptorImpl
      	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	... 39 more
      

      Downgrading to 1.7.4 cleared the errors.

        Attachments

          Activity

          Hide
          stevengbrown Steven G Brown added a comment -

          I will see if there is some way to silence these warnings, but in the meantime you can ignore them or install the Pipeline: Step API plugin.

          Show
          stevengbrown Steven G Brown added a comment - I will see if there is some way to silence these warnings, but in the meantime you can ignore them or install the Pipeline: Step API plugin.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Steven Brown
          Path:
          src/main/java/hudson/plugins/timestamper/pipeline/TimestamperStep.java
          http://jenkins-ci.org/commit/timestamper-plugin/9be1c5829616dad0fecaf875c30495d73373e907
          Log:
          JENKINS-35375 Mark TimestamperStep as optional extension

          Prevents warning messages when the Pipeline Step API plugin is not installed.

          Compare: https://github.com/jenkinsci/timestamper-plugin/compare/6ed19b1c8686...9be1c5829616

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Steven Brown Path: src/main/java/hudson/plugins/timestamper/pipeline/TimestamperStep.java http://jenkins-ci.org/commit/timestamper-plugin/9be1c5829616dad0fecaf875c30495d73373e907 Log: JENKINS-35375 Mark TimestamperStep as optional extension Prevents warning messages when the Pipeline Step API plugin is not installed. Compare: https://github.com/jenkinsci/timestamper-plugin/compare/6ed19b1c8686...9be1c5829616
          Hide
          stevengbrown Steven G Brown added a comment -

          Fix is included in Timestamper 1.8.3, available shortly. Could you give it a try?

          Show
          stevengbrown Steven G Brown added a comment - Fix is included in Timestamper 1.8.3, available shortly. Could you give it a try?
          Hide
          davida2009 David Aldrich added a comment -

          The warnings are fixed in Timestamper 1.8.3. Thanks.

          Show
          davida2009 David Aldrich added a comment - The warnings are fixed in Timestamper 1.8.3. Thanks.
          Hide
          stevengbrown Steven G Brown added a comment -

          Great. Thanks for the bug report.

          Show
          stevengbrown Steven G Brown added a comment - Great. Thanks for the bug report.

            People

            • Assignee:
              stevengbrown Steven G Brown
              Reporter:
              davida2009 David Aldrich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: