前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >配置文件错误导致jenkins无法启动 org.xmlpull.v1.XmlPullParserException: only 1.0 is supported as <?xml version no

配置文件错误导致jenkins无法启动 org.xmlpull.v1.XmlPullParserException: only 1.0 is supported as <?xml version no

作者头像
ydymz
发布2018-09-10 16:09:28
2.4K0
发布2018-09-10 16:09:28
举报
文章被收录于专栏:lgp20151222
代码语言:javascript
复制
    org.xmlpull.v1.XmlPullParserException: only 1.0 is supported as <?xml version not '1.1' (position: START_DOCUMENT seen <?xml version=\'1.1\'... @1:19)  
        at org.xmlpull.mxp1.MXParser.parseXmlDeclWithVersion(MXParser.java:2608) 
        at org.xmlpull.mxp1.MXParser.parseXmlDecl(MXParser.java:2592) 
        at org.xmlpull.mxp1.MXParser.parsePI(MXParser.java:2466) 
        at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1447) 
        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) 
        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) 
        at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109) 
    Caused: com.thoughtworks.xstream.io.StreamException:  : only 1.0 is supported as <?xml version not '1.1' (position: START_DOCUMENT seen <?xml version=\'1.1\'... @1:19)  
        at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124) 
        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:63) 
        at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) 
        at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) 
        at hudson.XmlFile.unmarshal(XmlFile.java:167) 
    Caused: java.io.IOException: Unable to read /var/lib/jenkins/config.xml 
        at hudson.XmlFile.unmarshal(XmlFile.java:169) 
        at jenkins.model.Jenkins.loadConfig(Jenkins.java:3067) 
        at jenkins.model.Jenkins.access$1200(Jenkins.java:304) 
        at jenkins.model.Jenkins$14.run(Jenkins.java:3085) 
        at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) 
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) 
        at jenkins.model.Jenkins$5.runTask(Jenkins.java:1068) 
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) 
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
        at java.lang.Thread.run(Thread.java:745) 
    Caused: org.jvnet.hudson.reactor.ReactorException 
        at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) 
        at jenkins.InitReactorRunner.run(InitReactorRunner.java:47) 
        at jenkins.model.Jenkins.executeReactor(Jenkins.java:1102) 
        at jenkins.model.Jenkins.<init>(Jenkins.java:904) 
        at hudson.model.Hudson.<init>(Hudson.java:86) 
        at hudson.model.Hudson.<init>(Hudson.java:82) 
        at hudson.WebAppMain$3.run(WebAppMain.java:233) 
    Caused: hudson.util.HudsonFailedToLoad 
        at hudson.WebAppMain$3.run(WebAppMain.java:250) 

这里注意红字的部分,提示配置文件中只支持1.0,而不是1.1。

然后查看配置文件config.xml发现第一行中果然是1.1,改回来。

实际可能还有其他文件,一一改正就对了。

这个报错在2.87升级到2.103之后出现,我猜测了下出现的原因可能是需要一些插件更新。毕竟我由于网络原因有一部分插件更新失败....

我倒是不太确认是不是新版本问题,反正下次我绝对不手贱!!!!

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-04-02 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档