java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector

GitHub | gmacario | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    If you disable a plugin which has a hard dependency with another plugin, Jenkins doesn't report anything or suggest you to disable/delete the dependencies. At the end, you can end up with stacktraces like: {code:java} WARNING: Failed to scout com.cloudbees.opscenter.client.plugin.ClusterSessionClientExtensionHandler java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/openid/OpenIdExtension at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:354) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:353) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.size(ExtensionList.java:162) at java.util.AbstractCollection.toArray(AbstractCollection.java:136) at java.util.ArrayList.addAll(ArrayList.java:559) at {code} Jenkins should not allow you to disable a plugin when there is such kind of dependency. It should instead maybe give you also the tree of dependencies so you can uninstall all of them if you want. A Warning can be also an option saying that it is not possible to remove/disable because there is a dependency with another plugin. I don't like too much this option because you end up with a lot of manual work.

    Jenkins JIRA | 2 years ago | Félix Belzunce Arcos
    java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/openid/OpenIdExtension
  2. 0

    [JIRA] [multijob-plugin] (JENKINS-30327) Failed to scout MultiJobBuildSelector - ClassNotFoundException: hudson.plugins.copyartifact.BuildSelector

    Google Groups | 2 years ago | artur.gajowy@gmail.com (JIRA)
    java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/copyartifact/BuildSelector
  3. 0

    If you disable a plugin which has a hard dependency with another plugin, Jenkins doesn't report anything or suggest you to disable/delete the dependencies. At the end, you can end up with stacktraces like: {code:java} WARNING: Failed to scout com.cloudbees.opscenter.client.plugin.ClusterSessionClientExtensionHandler java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/openid/OpenIdExtension at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:354) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.iterator(ExtensionList.java:143) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:353) at hudson.ExtensionList.load(ExtensionList.java:300) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:253) at hudson.ExtensionList.size(ExtensionList.java:162) at java.util.AbstractCollection.toArray(AbstractCollection.java:136) at java.util.ArrayList.addAll(ArrayList.java:559) at {code} Jenkins should not allow you to disable a plugin when there is such kind of dependency. It should instead maybe give you also the tree of dependencies so you can uninstall all of them if you want. A Warning can be also an option saying that it is not possible to remove/disable because there is a dependency with another plugin. I don't like too much this option because you end up with a lot of manual work.

    Jenkins JIRA | 2 years ago | Félix Belzunce Arcos
    java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/plugins/openid/OpenIdExtension
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins won't start: WARNING: Failed to load hudson.scm.Cvs

    Stack Overflow | 4 years ago | Shaun Abram
    java.lang.InstantiationException: file:/data/trg/tar5/jenkins/plugins/cvs/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: hudson.scm.CvsModule$DescriptorImpl

  1. davidvanlaatum 64 times, last 10 months ago
  2. DannyDBag 12 times, last 10 months ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    hudson/plugins/copyartifact/BuildSelector

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    ClassLoader.defineClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    2 frames
  3. jenkins.util
    AntClassLoader.defineClassFromData
    1. jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
    1 frame
  4. Hudson
    ClassicPluginStrategy$AntClassLoader2.defineClassFromData
    1. hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
    1 frame
  5. jenkins.util
    AntClassLoader.findClass
    1. jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
    2. jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
    3. jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  7. jenkins
    ClassLoaderReflectionToolkit._findClass
    1. jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
    2. jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
    2 frames
  8. Hudson
    PluginManager$UberClassLoader.findClass
    1. hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1188)
    1 frame
  9. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    2 frames
  10. SezPoz
    IndexItem.element
    1. net.java.sezpoz.IndexItem.element(IndexItem.java:134)
    1 frame
  11. Hudson
    ExtensionList.get
    1. hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:628)
    2. hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:617)
    3. hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
    4. hudson.ExtensionList.load(ExtensionList.java:349)
    5. hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
    6. hudson.ExtensionList.iterator(ExtensionList.java:156)
    7. hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
    8. hudson.ExtensionList.load(ExtensionList.java:349)
    9. hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
    10. hudson.ExtensionList.getComponents(ExtensionList.java:167)
    11. hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:185)
    12. hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
    13. hudson.ExtensionList.iterator(ExtensionList.java:156)
    14. hudson.ExtensionList.get(ExtensionList.java:147)
    14 frames
  12. com.cloudbees.jenkins
    GitHubPushTrigger$DescriptorImpl.get
    1. com.cloudbees.jenkins.GitHubPushTrigger$DescriptorImpl.get(GitHubPushTrigger.java:329)
    1 frame
  13. org.jenkinsci.plugins
    GitHubPlugin.postInitialize
    1. org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:41)
    2. org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39)
    2 frames
  14. Hudson
    PluginManager$2$1$2.run
    1. hudson.PluginManager$2$1$2.run(PluginManager.java:403)
    1 frame
  15. init
    Reactor.runTask
    1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    2 frames
  16. jenkins.model
    Jenkins$8.runTask
    1. jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
    1 frame
  17. init
    Reactor$Node.run
    1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
    2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    2 frames
  18. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames