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

Plugin dependencies ignored => various severe errors after restart

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • plugin-proposals
    • None
    • Linux, JDK 6

      After upgrading from Hudson 1.334 to 1.336 (as well as upgrading six plugins), I get

      java.io.IOException: Dependency analysis-core (1.0) doesn't exist
      at hudson.ClassicPluginStrategy.loadPluginDependencies(ClassicPluginStrategy.java:374)
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:237)
      at hudson.PluginManager$1$3$2$1.run(PluginManager.java:202)

      followed by

      java.lang.NullPointerException
      at hudson.PluginManager$1$3$2$2.run(PluginManager.java:218)

      and then all hell breaks loose as no descriptors can be found for anything:

      java.lang.AssertionError: class hudson.plugins.xvnc.Xvnc is missing its descriptor
      at hudson.model.Hudson.getDescriptorOrDie(Hudson.java:900)
      at hudson.tasks.BuildWrapper.getDescriptor(BuildWrapper.java:194)
      at hudson.model.Descriptor.toMap(Descriptor.java:595)
      at hudson.util.DescribableList.toMap(DescribableList.java:120)
      at hudson.model.Project.getBuildWrappers(Project.java:117)

      If I go to Updates and manually install analysis-core and restart, then everything is back to normal. But the update manager should have noticed that there was a missing dependency from one of the updates and forced me to install that dependency before I restarted the first time. And a missing dependency for one plugin should not cause all the others to fail to load.

          [JENKINS-4983] Plugin dependencies ignored => various severe errors after restart

          Jesse Glick added a comment -

          Startup log.

          Jesse Glick added a comment - Startup log.

          Andrew Bayer added a comment -

          Did you have the analysis-core plugin installed? As of the new versions of the static analysis plugins, you need to also install analysis-core, a new plugin.

          Andrew Bayer added a comment - Did you have the analysis-core plugin installed? As of the new versions of the static analysis plugins, you need to also install analysis-core, a new plugin.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/UpdateSite.java
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=24461
          Log:
          JENKINS-4983 Change to automatically install plugins when they're listed in the dependencies section (except for maven-plugin) - still needs more testing

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/core/src/main/java/hudson/model/UpdateSite.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=24461 Log: JENKINS-4983 Change to automatically install plugins when they're listed in the dependencies section (except for maven-plugin) - still needs more testing

          This change is targeted for 1.337.

          Kohsuke Kawaguchi added a comment - This change is targeted for 1.337.

          gslowikowski added a comment -

          Parhaps this is not the right place for my comment, but my problem is related to this issue.

          After upgrading plugins like PMD, Findbugs, etc. to versions using analysis core plugin
          my version of CI Game plugin stopped working. It was not compatible with these new plugins versions.
          It would be good to see any warning about potential problems with other plugins depending on the plugin being upgraded.

          gslowikowski added a comment - Parhaps this is not the right place for my comment, but my problem is related to this issue. After upgrading plugins like PMD, Findbugs, etc. to versions using analysis core plugin my version of CI Game plugin stopped working. It was not compatible with these new plugins versions. It would be good to see any warning about potential problems with other plugins depending on the plugin being upgraded.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: