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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Devin Nusbaum
          Path:
          src/main/java/hudson/plugins/promoted_builds/PromotionRebuildValidator.java
          http://jenkins-ci.org/commit/promoted-builds-plugin/5a7cd46517885abdebb11b8fbf3920762402a49b
          Log:
          JENKINS-47573 Mark extension of class from optional dependency as optional

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Devin Nusbaum Path: src/main/java/hudson/plugins/promoted_builds/PromotionRebuildValidator.java http://jenkins-ci.org/commit/promoted-builds-plugin/5a7cd46517885abdebb11b8fbf3920762402a49b Log: JENKINS-47573 Mark extension of class from optional dependency as optional
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/hudson/plugins/promoted_builds/PromotionRebuildValidator.java
          http://jenkins-ci.org/commit/promoted-builds-plugin/a006867c5fe290802b51cca3e296560810ccc129
          Log:
          Merge pull request #109 from dwnusbaum/JENKINS-47573

          JENKINS-47573 Mark extension of class from optional dependency as optional

          Compare: https://github.com/jenkinsci/promoted-builds-plugin/compare/4399f40dee00...a006867c5fe2

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/hudson/plugins/promoted_builds/PromotionRebuildValidator.java http://jenkins-ci.org/commit/promoted-builds-plugin/a006867c5fe290802b51cca3e296560810ccc129 Log: Merge pull request #109 from dwnusbaum/ JENKINS-47573 JENKINS-47573 Mark extension of class from optional dependency as optional Compare: https://github.com/jenkinsci/promoted-builds-plugin/compare/4399f40dee00...a006867c5fe2
          Hide
          stefanthurnherr Stefan Thurnherr added a comment -

          Devin Nusbaum Nope we are not using the Rebuild Plugin.

          Thanks for looking into this so quickly! Will give promoted-builds-plugin v2.31 a try in the coming days.

          Show
          stefanthurnherr Stefan Thurnherr added a comment - Devin Nusbaum Nope we are not using the Rebuild Plugin. Thanks for looking into this so quickly! Will give promoted-builds-plugin v2.31 a try in the coming days.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Released in Promoted Builds 2.31

          Show
          oleg_nenashev Oleg Nenashev added a comment - Released in Promoted Builds 2.31
          Hide
          stefanthurnherr Stefan Thurnherr added a comment -

          No exception seen anymore since upgrading to 2.31, so closing this. Oleg Nenashev Thanks for the fix!

          Show
          stefanthurnherr Stefan Thurnherr added a comment - No exception seen anymore since upgrading to 2.31, so closing this. Oleg Nenashev Thanks for the fix!

            People

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

              Dates

              • Created:
                Updated:
                Resolved: