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

PromotionRebuildValidator: java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/sonyericsson/rebuild/RebuildValidator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • promoted-builds-plugin
    • None
    • Jenkins 2.84 on Linux

      I'm seeing this exception stacktrace in the jenkins log file since upgrading a few plugins to latest version:

      Oct 20, 2017 2:42:21 PM hudson.ExtensionFinder$Sezpoz scout
      WARNING: Failed to scout hudson.plugins.promoted_builds.PromotionRebuildValidator
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/sonyericsson/rebuild/RebuildValidator
              at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
              at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:656)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:473)
              at hudson.ExtensionList.load(ExtensionList.java:365)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
              at hudson.ExtensionList.getComponents(ExtensionList.java:168)
              at jenkins.model.Jenkins$8.onInitMilestoneAttained(Jenkins.java:1104)
              at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:82)
              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:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NoClassDefFoundError: com/sonyericsson/rebuild/RebuildValidator
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
              at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1140)
              at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:844)
              at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1311)
              at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1364)
              at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327)
              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
              at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:81)
              at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1861)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
              ... 13 more
      Caused by: java.lang.ClassNotFoundException: com.sonyericsson.rebuild.RebuildValidator
              at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
              at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327)
              at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 29 more
      

      These exceptions started occurring after upgrading the following plugins to latest version:

      • Git plugin 3.5.1 -> 3.6.0
      • Docker Commons Plugin 1.8 -> 1.9
      • Durable Task Plugin 1.14 -> 1.15
      • GitHub Branch Source Plugin 2.2.3 -> 2.2.4
      • Mercurial plugin 2.1 -> 2.2
      • Apache HttpComponents Client 4.x API Plugin (transitive dependency, dont know plugin version)
      • Maven Integration plugin 2.17 -> 3.0
      • promoted builds plugin 2.29.1 -> 2.30
      • Bitbucket Branch Source Plugin 2.2.3 -> 2.24
      • Favorite 2.3.0 -> 2.3.1

      Here is the jenkins log during the plugin upgrade:

      Oct 20, 2017 2:39:31 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Git plugin on behalf of stethu
      Oct 20, 2017 2:39:32 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Git plugin
      Oct 20, 2017 2:39:46 PM hudson.model.UpdateSite updateData
      INFO: Obtained the latest update center data file for UpdateSource default
      Oct 20, 2017 2:39:46 PM hudson.model.DownloadService$Downloadable load
      INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
      Oct 20, 2017 2:39:47 PM hudson.model.DownloadService$Downloadable load
      INFO: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
      Oct 20, 2017 2:39:47 PM hudson.model.DownloadService$Downloadable load
      INFO: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller
      Oct 20, 2017 2:39:48 PM hudson.model.DownloadService$Downloadable load
      INFO: Obtained the updated data file for hudson.tools.JDKInstaller
      Oct 20, 2017 2:41:26 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Docker Commons Plugin on behalf of stethu
      Oct 20, 2017 2:41:26 PM hudson.model.UpdateSite$Plugin deploy
      INFO: Adding dependent install of maven-plugin for plugin promoted-builds
      Oct 20, 2017 2:41:26 PM hudson.model.UpdateSite$Plugin deploy
      INFO: Adding dependent install of apache-httpcomponents-client-4-api for plugin maven-plugin
      Oct 20, 2017 2:41:26 PM hudson.model.UpdateSite$Plugin deploy
      INFO: Dependent install of apache-httpcomponents-client-4-api for plugin promoted-builds already added, skipping
      Oct 20, 2017 2:41:28 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Docker Commons Plugin
      Oct 20, 2017 2:41:28 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Durable Task Plugin on behalf of stethu
      Oct 20, 2017 2:41:29 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Durable Task Plugin
      Oct 20, 2017 2:41:29 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of GitHub Branch Source Plugin on behalf of stethu
      Oct 20, 2017 2:41:30 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading GitHub Branch Source Plugin
      Oct 20, 2017 2:41:30 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Mercurial plugin on behalf of stethu
      Oct 20, 2017 2:41:31 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Mercurial plugin
      Oct 20, 2017 2:41:31 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Apache HttpComponents Client 4.x API Plugin on behalf of stethu
      Oct 20, 2017 2:41:32 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Apache HttpComponents Client 4.x API Plugin
      Oct 20, 2017 2:41:33 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Maven Integration plugin on behalf of stethu
      Oct 20, 2017 2:41:33 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Maven Integration plugin
      Oct 20, 2017 2:41:35 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of promoted builds plugin on behalf of stethu
      Oct 20, 2017 2:41:35 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading promoted builds plugin
      Oct 20, 2017 2:41:35 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Bitbucket Branch Source Plugin on behalf of stethu
      Oct 20, 2017 2:41:36 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Bitbucket Branch Source Plugin
      Oct 20, 2017 2:41:36 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Favorite on behalf of stethu
      Oct 20, 2017 2:41:37 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading Favorite
      

      Not sure how to interpret the log...maybe two different versions of a transitive dependency of
      apache-httpcomponents-client-4-api?

      Haven't seen any actual impact on jenkins, but we're currently not using promoted builds plugin in any build.

            oleg_nenashev Oleg Nenashev
            stefanthurnherr Stefan Thurnherr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: