Repository navigation
[JENKINS-11279] Ivy plugin blocks jenkins startup (hudson/plugins/nant/NantBuilder$NantInstallation) #186
Description
On jenkins startup, the Ivy plugin causes the following Error, which terminates the entire jenkins startup process. Seems Ivy somehow refers the hudson/plugins/nant/NantBuilder class. But I have no jenkins Nant plugin, nor the need for it.
10-okt-2011 16:21:30 jenkins.model.Jenkins$6 onAttained
INFO: Loaded all jobs
10-okt-2011 16:22:30 hudson.ExtensionFinder$Sezpoz find
WARNING: Failed to load hudson.ExtensionFinder$GuiceFinder
java.lang.InstantiationException: com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: java.lang.NoClassDefFoundError: [Lhudson/plugins/nant/NantBuilder$NantInstallation;
at net.java.sezpoz.IndexItem.instance(IndexItem.java:191)
at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:399)
etc...
...
Caused by: java.lang.ClassNotFoundException: hudson.plugins.nant.NantBuilder$NantInstallation
at java.net.URLClassLoader$1.run(Unknown Source)
etc...
...
10-okt-2011 16:22:32 jenkins.model.Jenkins$6 onTaskFailed
SEVERE: Failed NullIdDescriptorMonitor.verifyId
java.lang.Error: java.lang.reflect.InvocationTargetException
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:114)
at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:174)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:798)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:110)
... 8 more
Caused by: java.lang.NullPointerException
at hudson.diagnosis.NullIdDescriptorMonitor.verifyId(NullIdDescriptorMonitor.java:86)
... 13 more
10-okt-2011 16:22:32 hudson.WebAppMain$2 run
SEVERE: Failed to initialize Jenkins
(I left some parts of the long stacktrace, as it contains some jenkins and google lib internals, and the warning repeated again a few times)
The only way to get jenkins start up successfully is by deleting the ivy.hpi file...
Originally reported by belpk, imported from: Ivy plugin blocks jenkins startup (hudson/plugins/nant/NantBuilder$NantInstallation)
- assignee:
kohsuke
- status: Resolved
- priority: Blocker
- component(s): ivy-plugin
- resolution: Fixed
- resolved: 2011-10-10T21:57:37+00:00
- votes: 0
- watchers: 1
- imported: 20251216-225446
Raw content of original issue
On jenkins startup, the Ivy plugin causes the following Error, which terminates the entire jenkins startup process. Seems Ivy somehow refers the hudson/plugins/nant/NantBuilder class. But I have no jenkins Nant plugin, nor the need for it.
10-okt-2011 16:21:30 jenkins.model.Jenkins$6 onAttained INFO: Loaded all jobs 10-okt-2011 16:22:30 hudson.ExtensionFinder$Sezpoz find WARNING: Failed to load hudson.ExtensionFinder$GuiceFinder java.lang.InstantiationException: com.google.inject.internal.util.$ComputationException: com.google.inject.internal.util.$ComputationException: java.lang.NoClassDefFoundError: [Lhudson/plugins/nant/NantBuilder$NantInstallation; at net.java.sezpoz.IndexItem.instance(IndexItem.java:191) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:399) etc... ... Caused by: java.lang.ClassNotFoundException: hudson.plugins.nant.NantBuilder$NantInstallation at java.net.URLClassLoader$1.run(Unknown Source) etc... ... 10-okt-2011 16:22:32 jenkins.model.Jenkins$6 onTaskFailed SEVERE: Failed NullIdDescriptorMonitor.verifyId java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.InitializerFinder.invoke(InitializerFinder.java:114) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:174) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$5.runTask(Jenkins.java:798) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:110) ... 8 more Caused by: java.lang.NullPointerException at hudson.diagnosis.NullIdDescriptorMonitor.verifyId(NullIdDescriptorMonitor.java:86) ... 13 more 10-okt-2011 16:22:32 hudson.WebAppMain$2 run SEVERE: Failed to initialize Jenkins
(I left some parts of the long stacktrace, as it contains some jenkins and google lib internals, and the warning repeated again a few times)
The only way to get jenkins start up successfully is by deleting the ivy.hpi file...
environment
OS: Win XP, Win7<br/>
Occurs when trying to start Jenkins 1.432+. When starting the old 1.432 war, startup works fine.
Activity
jenkins-infra-bot commentedon Oct 10, 2011
gbois:
Raw content of original comment:
Have you got a job configured with Ivy?
jenkins-infra-bot commentedon Oct 10, 2011
Raw content of original comment:
This is a bug in the core. Looking into this;
jenkins-infra-bot commentedon Oct 10, 2011
Raw content of original comment:
For my own reference, the full stack trace is as follows:
jenkins-infra-bot commentedon Oct 10, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
core/src/main/java/hudson/ExtensionFinder.java
http://jenkins-ci.org/commit/jenkins/87f89bc3abd784826283596cf1629b1bf5553f5b
Log:
[FIXED JENKINS-11279] more eager scouting
jenkins-infra-bot commentedon Oct 10, 2011
Raw content of original comment:
Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
core/src/main/java/hudson/ExtensionFinder.java
http://jenkins-ci.org/commit/jenkins/ab421b59d2752e3d6eef143c60f9cdc65f52c990
Log:
JENKINS-11279">
JENKINS-11279Guice appears to throw RuntimeException sometimes.Compare: jenkinsci/jenkins@e4ca9ac...ab421b5
jenkins-infra-bot commentedon Oct 10, 2011
Raw content of original comment:
Kohsuke Kawaguchi : ab421b59d2752e3d6eef143c60f9cdc65f52c990 Files :
Integrated in
jenkins_main_trunk #1213
[FIXED JENKINS-11279] more eager scouting
JENKINS-11279">
JENKINS-11279Guice appears to throw RuntimeException sometimes.Kohsuke Kawaguchi : 87f89bc3abd784826283596cf1629b1bf5553f5b
Files :
Kohsuke Kawaguchi : ab421b59d2752e3d6eef143c60f9cdc65f52c990
Files :
jenkins-infra-bot commentedon Oct 23, 2011
mark3000:
Raw content of original comment:
Hey guys, thanks for the great info. Recently, I encountered this issue (or similar) when upgrading to 1.435. Are there certain plugins I can disable as a workaround? Other suggestions for a workaround?
I tried to disable (uncheck) the Ivy plugin with no luck.
Thanks in advance!
jenkins-infra-bot commentedon Oct 25, 2011
Raw content of original comment:
Hi,
Could you have a look at JENKINS-11398">
JENKINS-11398, too? It has nothing to do with the Ivy plugin or Jenkins not starting up, but it seems to be related since the DashboardView is also an optional plugin dependency for the Cobertura plugin.Thank you!
jenkins-infra-bot commentedon Oct 25, 2011
dorothyvaliga:
Raw content of original comment:
This looks great. I've had several issues where new plugins have stopped my startup. Here's hoping this will cure that in the future!