服务器断电后重启hudson异常

No_why 发布于 2015/05/15 10:12
阅读 3K+
收藏 1

请问一下,服务器断电之后再重启hudson报如下错误:

Caused by: java.io.EOFException: input contained no data
        at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2958)
        at org.xmlpull.mxp1.MXParser.more(MXParser.java:2996)
        at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1409)
        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1394)
        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1092)
        at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
        ... 30 more
 15, 2015 10:01:23  hudson.triggers.Trigger$Cron doRun
WARNING: Cron thread throw an exception
com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.io.StreamException:  : input contained no data
        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.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)
Caused by: com.thoughtworks.xstream.io.StreamException:  : input contained no data
        at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:126)
        at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
        at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
        at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
        at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
        at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:83)
        at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:70)
        at hudson.model.RunMap.loadFromRunMapXml(RunMap.java:690)
        at hudson.model.RunMap.load(RunMap.java:591)
        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)
        ... 14 more
Caused by: java.io.EOFException: input contained no data
        at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2958)
        at org.xmlpull.mxp1.MXParser.more(MXParser.java:2996)
        at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1409)
        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1394)
        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1092)
        at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
        ... 30 more

加载中
0
No_why
No_why

求大神解答啊。

golang
golang
后来解决了吗?
0
golang
golang
已找到解决办法
0
s
sunyt123456
楼主 我想请教一下 如何解决的 在线等
0
夫复何求
夫复何求
请指教这个怎么解决的???
0
No_why
No_why

不好意思,忘记贴解决方案了。

问题是因为虚拟机重启后hudson丢失了部分xml文件,只要删除各个项目下builds文件夹下的所有文件即可。

返回顶部
顶部