Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » StackOverFlow after updating JDepend plugin
StackOverFlow after updating JDepend plugin [message #1039425] Fri, 12 April 2013 06:43 Go to next message
Reinhard Nägele is currently offline Reinhard NägeleFriend
Messages: 23
Registered: January 2013
Junior Member
Hi,

We are on Hudson 3.0.0. I updated the JDepend plugin from 1.2.2 to the latest version (1.2.4-h-1). After a restart I was presented with this stacktrace in the browser and Hudson was broken:

SEVERE: Failed Checking cyclic dependencies
hudson.util.CyclicGraphDetector$CycleDetectedException: Cycle detected: Plugin:jdepend -> Plugin:jdepend
	at hudson.util.CyclicGraphDetector.detectedCycle(CyclicGraphDetector.java:72)
	at hudson.util.CyclicGraphDetector.visit(CyclicGraphDetector.java:61)
	at hudson.util.CyclicGraphDetector.run(CyclicGraphDetector.java:37)
	at hudson.PluginManager$1$3$2.run(PluginManager.java:237)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
	at hudson.model.Hudson$4.runTask(Hudson.java:647)
	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(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)
Apr 12, 2013 7:49:36 AM org.eclipse.hudson.init.InitialSetup$2 run
SEVERE: Failed to initialize Hudson
org.jvnet.hudson.reactor.ReactorException: hudson.util.CyclicGraphDetector$CycleDetectedException: Cycle detected: Plugin:jdepend -> Plugin:jdepend
	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
	at hudson.model.Hudson.executeReactor(Hudson.java:667)
	at hudson.model.Hudson.<init>(Hudson.java:564)
	at hudson.model.Hudson.<init>(Hudson.java:511)
	at org.eclipse.hudson.init.InitialSetup$2.run(InitialSetup.java:286)
Caused by: hudson.util.CyclicGraphDetector$CycleDetectedException: Cycle detected: Plugin:jdepend -> Plugin:jdepend
	at hudson.util.CyclicGraphDetector.detectedCycle(CyclicGraphDetector.java:72)
	at hudson.util.CyclicGraphDetector.visit(CyclicGraphDetector.java:61)
	at hudson.util.CyclicGraphDetector.run(CyclicGraphDetector.java:37)
	at hudson.PluginManager$1$3$2.run(PluginManager.java:237)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
	at hudson.model.Hudson$4.runTask(Hudson.java:647)
	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(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)


Looking into the log file revealed this:

WARNING: Failed to bind extension: @hudson.Extension:hudson.plugins.jdepend.JDependRecorder$DescriptorImpl{}
java.lang.InstantiationException: file:/exports/home4/hudson/.hudson/plugins/jdepend/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.TypeNotPresentException: Type hudson.plugins.jdepend.JDependRecorder$DescriptorImpl not present
	at net.java.sezpoz.SpaceIndexItem.element(SpaceIndexItem.java:129)
	at org.hudsonci.inject.internal.extension.SezPozExtensionModule.configure(SezPozExtensionModule.java:82)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
	at org.hudsonci.inject.internal.extension.ExtensionModule.configure(ExtensionModule.java:52)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
	at com.google.inject.AbstractModule.install(AbstractModule.java:118)
	at org.hudsonci.inject.internal.SmoothieContainerImpl$PluginModule.configure(SmoothieContainerImpl.java:160)
	at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
	at com.google.inject.spi.Elements.getElements(Elements.java:101)
	at com.google.inject.spi.Elements.getElements(Elements.java:78)
	at org.sonatype.guice.bean.binders.WireModule.configure(WireModule.java:61)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
	at com.google.inject.spi.Elements.getElements(Elements.java:101)
	at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
	at com.google.inject.Guice.createInjector(Guice.java:95)
	at com.google.inject.Guice.createInjector(Guice.java:72)
	at com.google.inject.Guice.createInjector(Guice.java:62)
	at org.hudsonci.inject.internal.SmoothieContainerImpl.createInjector(SmoothieContainerImpl.java:73)
	at org.hudsonci.inject.internal.SmoothieContainerImpl.register(SmoothieContainerImpl.java:191)
	at org.hudsonci.inject.internal.plugin.SmoothiePluginStrategy.load(SmoothiePluginStrategy.java:166)
	at org.hudsonci.inject.internal.plugin.DelegatingPluginStrategy.load(DelegatingPluginStrategy.java:66)
	at hudson.PluginManager$2$1$1.run(PluginManager.java:297)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
	at hudson.model.Hudson$4.runTask(Hudson.java:647)
	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(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.TypeNotPresentException: Type hudson.plugins.jdepend.JDependRecorder$DescriptorImpl not present
	at org.sonatype.guice.bean.reflect.URLClassSpace.loadClass(URLClassSpace.java:103)
	at net.java.sezpoz.SpaceIndexItem.element(SpaceIndexItem.java:119)
	... 31 more
Caused by: java.lang.StackOverflowError
	at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447)
	at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
	at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:240)
	at java.lang.StringCoding.encode(StringCoding.java:272)
	at java.lang.String.getBytes(String.java:946)
	at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
	at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228)
	at java.io.File.exists(File.java:733)
	at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:999)
	at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:249)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:435)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:435)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Re: StackOverFlow after updating JDepend plugin [message #1039430 is a reply to message #1039425] Fri, 12 April 2013 06:48 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 85
Registered: January 2013
Member
Thanks for the detailed report. It's almost midnight here but I'll look into this tomorrow morning.
Re: StackOverFlow after updating JDepend plugin [message #1039805 is a reply to message #1039430] Fri, 12 April 2013 16:08 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Quick question. What JDK version are you using?

Winston Prakash
Eclipse Hudson team
Re: StackOverFlow after updating JDepend plugin [message #1041470 is a reply to message #1039805] Mon, 15 April 2013 06:28 Go to previous messageGo to next message
Reinhard Nägele is currently offline Reinhard NägeleFriend
Messages: 23
Registered: January 2013
Junior Member
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
Re: StackOverFlow after updating JDepend plugin [message #1061906 is a reply to message #1041470] Tue, 04 June 2013 15:44 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 85
Registered: January 2013
Member
I see I didn't reply here after I fixed this. I assume you've seen jdepend 1.2.4-h-2?
Re: StackOverFlow after updating JDepend plugin [message #1061960 is a reply to message #1061906] Wed, 05 June 2013 07:24 Go to previous messageGo to next message
Reinhard Nägele is currently offline Reinhard NägeleFriend
Messages: 23
Registered: January 2013
Junior Member
The Plugin Manager still shows 1.2.4-h-1 as latest version.
Re: StackOverFlow after updating JDepend plugin [message #1062011 is a reply to message #1061960] Wed, 05 June 2013 12:16 Go to previous message
Reinhard Nägele is currently offline Reinhard NägeleFriend
Messages: 23
Registered: January 2013
Junior Member
This is weird, I checked the JSON file and the version in there is 1.2.4-h-2. After hitting refresh on the advanced tab, the new version was displayed. Seems like there is some refresh bug. Refreshing the browser only did not help.
Previous Topic:(Solved) Hudson ignoring http.proxyHost / http.ProxyPort
Next Topic:Strange problems with missing SuperPOM
Goto Forum:
  


Current Time: Tue Apr 23 09:42:02 GMT 2024

Powered by FUDForum. Page generated in 0.03555 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top