Issue Details (XML | Word | Printable)

Key: HUDSON-4983
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: jglick
Votes: 3
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Hudson

Plugin dependencies ignored => various severe errors after restart

Created: 01/Dec/09 11:08 AM   Updated: 13/Dec/09 05:36 AM   Resolved: 09/Dec/09 07:03 AM
Component/s: plugin
Affects Version/s: current
Fix Version/s: None

File Attachments: 1. File log.bz2 (6 kB)

Environment: Linux, JDK 6
Issue Links:
Duplicate
 


 Description  « Hide

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.



Sort Order: Ascending order - Click to sort in descending order
jglick added a comment - 01/Dec/09 11:10 AM

Startup log.


abayer added a comment - 01/Dec/09 11:13 AM

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.


scm_issue_link added a comment - 07/Dec/09 12:34 PM

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:
HUDSON-4983 Change to automatically install plugins when they're listed in the dependencies section (except for maven-plugin) - still needs more testing


kohsuke added a comment - 09/Dec/09 07:03 AM

This change is targeted for 1.337.


gslowikowski added a comment - 13/Dec/09 05:36 AM

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.