Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Can't restart Hudson after a JVM crash(com.thoughtworks.xstream.mapper.CannotResolveClassException: jbr)
Can't restart Hudson after a JVM crash [message #1403191] Tue, 22 July 2014 09:39 Go to next message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
Hello.

A few days ago my Hudson crashed by means of a JVM core dump. Things that happens, I suppose. The problem is that now Hudson doesn't restart, because of the exception reported below, which is also shown in the Hudson splash page. I suppose that some configuration file got corrupted, but how to find it?

Thanks.

org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.mapper.CannotResolveClassException: jbr
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at hudson.model.Hudson.executeReactor(Hudson.java:719)
at hudson.model.Hudson.<init>(Hudson.java:616)
at org.eclipse.hudson.init.InitialRunnable.run(InitialRunnable.java:51)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.mapper.CannotResolveClassException: jbr
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:96)
at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
at hudson.model.Hudson.getItems(Hudson.java:1303)
at hudson.model.Hudson.getItems(Hudson.java:223)
at hudson.model.Hudson.getAllItems(Hudson.java:1367)
at hudson.model.Hudson$12.run(Hudson.java:2481)
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:699)
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.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
... 1 more
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.mapper.CannotResolveClassException: jbr
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.RunMap$LazyRunValueCache.get(RunMap.java:793)
at hudson.model.RunMap$LazyRunValueCache.access$1900(RunMap.java:736)
at hudson.model.RunMap$LazyRunValue.getBuild(RunMap.java:1559)
at hudson.model.RunMap$6.apply(RunMap.java:1754)
at hudson.model.RunMap$6.apply(RunMap.java:1750)
at com.google.common.collect.Maps$6.transformEntry(Maps.java:1562)
at com.google.common.collect.Maps$TransformedEntriesMap$1$1$1.getValue(Maps.java:1850)
at com.google.common.collect.Maps$8.transform(Maps.java:3688)
at com.google.common.collect.Maps$8.transform(Maps.java:3685)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
at java.util.ArrayList.<init>(ArrayList.java:164)
at hudson.util.AbstractRunList.<init>(AbstractRunList.java:27)
at hudson.util.RunList.<init>(RunList.java:79)
at hudson.util.RunList.fromRuns(RunList.java:83)
at hudson.model.Job.getBuilds(Job.java:1045)
at org.jvnet.hudson.plugins.DownStreamProjectActionFactory.createFor(DownStreamProjectActionFactory.java:58)
at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:900)
at hudson.model.BaseBuildableProject.createTransientActions(BaseBuildableProject.java:127)
at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:889)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:349)
at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:94)
at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:306)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:82)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:75)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 18 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: jbr
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:56)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:143)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1034)
at hudson.util.XStream2.unmarshal(XStream2.java:76)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1018)
at hudson.XmlFile.unmarshal(XmlFile.java:136)
at hudson.model.Run.<init>(Run.java:265)
at hudson.model.AbstractBuild.<init>(AbstractBuild.java:207)
at hudson.matrix.MatrixBuild.<init>(MatrixBuild.java:66)
at sun.reflect.GeneratedConstructorAccessor166.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at hudson.model.AbstractProject.loadBuild(AbstractProject.java:1272)
at hudson.model.AbstractProject$1.create(AbstractProject.java:332)
at hudson.model.AbstractProject$1.create(AbstractProject.java:330)
at hudson.model.RunMap$LazyRunValueCache$1.load(RunMap.java:776)
at hudson.model.RunMap$LazyRunValueCache$1.load(RunMap.java:770)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.RunMap$LazyRunValueCache.get(RunMap.java:793)
at hudson.model.RunMap$LazyRunValueCache.access$1900(RunMap.java:736)
at hudson.model.RunMap$LazyRunValue.getBuild(RunMap.java:1559)
at hudson.model.RunMap$6.apply(RunMap.java:1754)
at hudson.model.RunMap$6.apply(RunMap.java:1750)
at com.google.common.collect.Maps$6.transformEntry(Maps.java:1562)
at com.google.common.collect.Maps$TransformedEntriesMap$1$1$1.getValue(Maps.java:1850)
at com.google.common.collect.Maps$8.transform(Maps.java:3688)
at com.google.common.collect.Maps$8.transform(Maps.java:3685)
at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
at java.util.ArrayList.<init>(ArrayList.java:164)
at hudson.util.AbstractRunList.<init>(AbstractRunList.java:27)
at hudson.util.RunList.<init>(RunList.java:79)
at hudson.util.RunList.fromRuns(RunList.java:83)
at hudson.model.Job.getBuilds(Job.java:1045)
at org.jvnet.hudson.plugins.DownStreamProjectActionFactory.createFor(DownStreamProjectActionFactory.java:58)
at hudson.model.AbstractProject.createTransientActions(AbstractProject.java:900)
at hudson.model.BaseBuildableProject.createTransientActions(BaseBuildableProject.java:127)
at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:889)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:349)
at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:94)
at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:306)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:82)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:75)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:96)
at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
at hudson.model.Hudson.getItems(Hudson.java:1303)
at hudson.model.Hudson.getItems(Hudson.java:223)
at hudson.model.Hudson.getAllItems(Hudson.java:1367)
at hudson.triggers.Trigger.checkTriggers(Trigger.java:249)
at hudson.triggers.Trigger$Cron.doRun(Trigger.java:206)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:43)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)


Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Re: Can't restart Hudson after a JVM crash [message #1403266 is a reply to message #1403191] Tue, 22 July 2014 17:00 Go to previous messageGo to next message
Bob Foster is currently offline Bob FosterFriend
Messages: 74
Registered: January 2013
Member
Looks like one of the _runmap.xml files is corrupted. I just tried deleting all these files and restarting, and restart restores them correctly, so...

Stop Hudson if it is running.

rm HUDSON_HOME/jobs/*/builds/_runmap.xml
rm HUDSON_HOME/teams/*/jobs/*/builds/_runmap.xml

Restart Hudson.
Re: Can't restart Hudson after a JVM crash [message #1403295 is a reply to message #1403266] Tue, 22 July 2014 17:11 Go to previous messageGo to next message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
I tried that, but now I get:

INFO: Completed initialization
Jul 22, 2014 7:10:17 PM hudson.model.Hudson$5 onTaskFailed
SEVERE: Failed Finalizing set up
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:96)
at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
at hudson.model.Hudson.getItems(Hudson.java:1303)
at hudson.model.Hudson.getItems(Hudson.java:223)
at hudson.model.Hudson.getAllItems(Hudson.java:1367)
at hudson.model.Hudson$12.run(Hudson.java:2481)
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:699)
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.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException
at hudson.model.RunMap.recalcLastStable(RunMap.java:469)
at hudson.model.RunMap.recalcMarkers(RunMap.java:209)
at hudson.model.RunMap.setBuilds(RunMap.java:199)
at hudson.model.RunMap.putAllRunValues(RunMap.java:225)
at hudson.model.RunMap.reset(RunMap.java:292)
at hudson.model.RunMap.load(RunMap.java:640)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:330)
at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:94)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:82)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:75)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 18 more

Jul 22, 2014 7:10:17 PM org.eclipse.hudson.init.InitialRunnable run
SEVERE: Failed to initialize Hudson
org.jvnet.hudson.reactor.ReactorException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at hudson.model.Hudson.executeReactor(Hudson.java:719)
at hudson.model.Hudson.<init>(Hudson.java:616)
at org.eclipse.hudson.init.InitialRunnable.run(InitialRunnable.java:51)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4004)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
at hudson.model.TopLevelItemsCache.get(TopLevelItemsCache.java:96)
at hudson.model.LazyTopLevelItem.item(LazyTopLevelItem.java:144)
at hudson.model.LazyTopLevelItem.hasPermission(LazyTopLevelItem.java:271)
at hudson.model.Hudson.getItems(Hudson.java:1303)
at hudson.model.Hudson.getItems(Hudson.java:223)
at hudson.model.Hudson.getAllItems(Hudson.java:1367)
at hudson.model.Hudson$12.run(Hudson.java:2481)
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:699)
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.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
... 1 more
Caused by: java.lang.NullPointerException
at hudson.model.RunMap.recalcLastStable(RunMap.java:469)
at hudson.model.RunMap.recalcMarkers(RunMap.java:209)
at hudson.model.RunMap.setBuilds(RunMap.java:199)
at hudson.model.RunMap.putAllRunValues(RunMap.java:225)
at hudson.model.RunMap.reset(RunMap.java:292)
at hudson.model.RunMap.load(RunMap.java:640)
at hudson.model.AbstractProject.onLoad(AbstractProject.java:330)
at hudson.model.BaseBuildableProject.onLoad(BaseBuildableProject.java:94)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:82)
at hudson.model.TopLevelItemsCache$1.load(TopLevelItemsCache.java:75)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2257)
... 18 more




Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Re: Can't restart Hudson after a JVM crash [message #1403325 is a reply to message #1403295] Wed, 23 July 2014 01:50 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 508
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Hi Fabrizio, can you double check that no _runmap.xml exists before you restart Hudson. This error will happen only with a corrupt _runmap.xml (which could happen when Hudson crashes).

BTW _runmap.xml is a caching mechanism to improve Hudson performance. On Hudson resart _runmap.xml will be regenerated if it doesn't exist.

We have a fix in Hudson 3.2.0 to work around this issue. Hudson will start even with corrupt _runmap.xml.


Winston Prakash
Eclipse Hudson team
Re: Can't restart Hudson after a JVM crash [message #1404489 is a reply to message #1403325] Fri, 01 August 2014 22:24 Go to previous messageGo to next message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
I ran

find . -name _runmap.xml -exec rm -fv {} \;

and actually there were more files than I deleted, because of multi-module Maven jobs and other stuff, so they weren't matched by a jobs/*/builds/_runmap.xml. But unfortunately, after find finished its job, I re-launched Hudson and got the same error.

Do you have a planned release date for Hudson 3.2.0?


Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Re: Can't restart Hudson after a JVM crash [message #1404490 is a reply to message #1404489] Fri, 01 August 2014 22:31 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 508
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Sorry to hear you still have issues. Have you used team management. If so jobs are under teams/<team-name>/jobs also. If so you may have to clean them too.

Hudson 3.2.0 is planned to be released around middle of Aug (https://projects.eclipse.org/projects/technology.hudson/releases/3.2.0-0)


Winston Prakash
Eclipse Hudson team
Re: Can't restart Hudson after a JVM crash [message #1404491 is a reply to message #1404490] Fri, 01 August 2014 22:37 Go to previous messageGo to next message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
teams is almost empty (it only contains teams.xml).

Well, I suppose that 3.2.0 is stable enough in early access so I could try it. Is it possible to re-install the 3.1.2 after trying the 3.2.0, or does the 3.2.0 change the config files in an incompatible way?


Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Re: Can't restart Hudson after a JVM crash [message #1404492 is a reply to message #1404491] Fri, 01 August 2014 22:41 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 508
Registered: August 2011
Location: Fremont, CA USA
Senior Member
We don't expect any Hudson home format (especially Job configs) between 3.1.2 & 3.2.0. But I would highly recommend you to backup your Hudson home before upgrade.

Winston Prakash
Eclipse Hudson team
Re: Can't restart Hudson after a JVM crash [message #1404493 is a reply to message #1404492] Fri, 01 August 2014 23:16 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 508
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Hi Fabrizio, I talked to the Hudson core engineer who was the primary developer of the Hudson caching mechanism. This is what he suggested

--->


Seems to be rooted in this :

Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: jbr

XStream is unable to deserialize some part of the config, maybe a missing element-class mapping for "jbr" ?

One possibility is that a plugin that is no longer installed/loaded wrote something in the config, or more likely, a config has been corrupted during the crash.

Just grepping for "jbr" in all the config files should yield something.


-Roy

------>


Winston Prakash
Eclipse Hudson team
Re: Can't restart Hudson after a JVM crash [message #1404501 is a reply to message #1404493] Sat, 02 August 2014 09:26 Go to previous messageGo to next message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
"Just grepping for "jbr" in all the config files should yield something."

Thanks. I did, but I didn't find anything. Since I was pretty convinced by your explanation, I suppose I didn't search in all the needed places. In any case, after having deleted all the _runmap.xml, the "jbr" error message doesn't happen any longer, so I suppose it was in a _runmap.xml file that I have deleted. So I suppose there's another error (let's recall that the problem arose after a JVM crash, so a number of files, not just one, could have been corrupted).

Is it possible to properly increase the debug level to understand what file Hudson is processing? Alternatively I could use truss, perhaps.


Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Re: Can't restart Hudson after a JVM crash [message #1404505 is a reply to message #1404501] Sat, 02 August 2014 14:28 Go to previous messageGo to next message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
First, thank for all the support. I wish to make it clear that I'm not in an emergency: even though my first post about the problem is from several days ago, until this morning I wasn't able to work in a decent way to it, with the exception of the attempt to delete the cache files and restart. Now I have some time and this morning I moved all my 200 jobs to a jobs.temp folder, then moved them back to the original folder in small batches in order to find which ones are affected.

At the moment I recovered most of the jobs (so 95% of the functions of my Hudson are up and running), with two jobs clearly broken and another ten where there is for sure some broken job, but I didn't discover which ones yet. Now, I could easily re-create them from scratch - they are almost all "archive jobs" that are the final stage of my pipelines and I could just reset the history of those projects without suffering anything important. But perhaps it makes sense to take advantage of the situation to understand where the problem is.

I'll let you know as soon as I find something.


Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Re: Can't restart Hudson after a JVM crash [message #1404516 is a reply to message #1404505] Sat, 02 August 2014 18:33 Go to previous message
Fabrizio Giudici is currently offline Fabrizio GiudiciFriend
Messages: 21
Registered: May 2013
Location: Italy
Junior Member
Well, I think we can close the thing for now: it turns out I have a hardware failure (CPU for sure for overheating) and this in turn damaged the filesystem. So it's a sort of emergency Smile but it's not related to Hudson.

I'll proceed to reinstall everything from scratch first. Should the problem persist after the reinstallation, I'll be back.

Thanks for the help so far.


Fabrizio Giudici - Java Architect @ Tidalwave s.a.s.
"We make Java work. Everywhere."
Previous Topic:Hudson3.1.1 empty views
Next Topic:Monitoring plugin for Hudson
Goto Forum:
  


Current Time: Sun Aug 30 10:02:11 GMT 2015

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

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