Error Message : 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)

4,286 views
Skip to first unread message

Poovaraj Thangamariappan

unread,
Mar 3, 2018, 5:23:27 AM3/3/18
to Jenkins Users
Hi Team,

I have downgraded Jenkins latest version to old version(2.48). I got below error message after launch the Jenkins. Please help me to fix this issues.

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:159)
Caused: java.io.IOException: Unable to read C:\Users\poo\.jenkins\config.xml
	at hudson.XmlFile.unmarshal(XmlFile.java:161)
	at jenkins.model.Jenkins.loadConfig(Jenkins.java:3022)
	at jenkins.model.Jenkins.access$1200(Jenkins.java:304)
	at jenkins.model.Jenkins$16.run(Jenkins.java:3040)
	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$7.runTask(Jenkins.java:1064)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
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:1088)
	at jenkins.model.Jenkins.<init>(Jenkins.java:904)
	at hudson.model.Hudson.<init>(Hudson.java:85)
	at hudson.model.Hudson.<init>(Hudson.java:81)
	at hudson.WebAppMain$3.run(WebAppMain.java:231)
Caused: hudson.util.HudsonFailedToLoad
	at hudson.WebAppMain$3.run(WebAppMain.java:248)

Regards,
Poovaraj

Daniel Beck

unread,
Mar 3, 2018, 5:30:11 AM3/3/18
to jenkins...@googlegroups.com

> On 3. Mar 2018, at 07:35, Poovaraj Thangamariappan <poovar...@gmail.com> wrote:
>
> I have downgraded Jenkins latest version to old version(2.48). I got below error message after launch the Jenkins. Please help me to fix this issues.
>

Downgrades are generally not supported -- and huge jumps like this even less. You *might* be able to fix this by just replacing all '1.1' in XML files' processing instructions with '1.0', but it's likely that you'll encounter further problems due to the downgrade.

Just restore from backup.

Baptiste Mathus

unread,
Mar 3, 2018, 5:30:56 AM3/3/18
to jenkins...@googlegroups.com
The recommended path is to use and restore your backup. Downgrading is not (yet) a supported use case.

XML version was upgraded from 1.0 to 1.1 in 2.105 https://jenkins.io/changelog/#v2.105

Looking at how often you upgrade, you really should use the LTS vesion of Jenkins, not the weekly. Cf. https://jenkins.io/download/lts/

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cf6d78d2-6495-4801-8efa-915c3e532153%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Poovaraj Thangamariappan

unread,
Mar 3, 2018, 7:50:46 AM3/3/18
to Jenkins User Group

It is working fine after installing Jenkins 2.48 version

Aparna venugopal

unread,
Jan 25, 2019, 8:50:44 AM1/25/19
to Jenkins Users
Can you please share how you fixed your issue? I got the same issue wwhen I downgraded to 2.79 
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Mark Waite

unread,
Jan 25, 2019, 8:53:59 AM1/25/19
to Jenkins Users
The only fix (as far as I know) is to edit the XML files and change the '1.1' to '1.0'.  You could do that by restoring your XML files from backup or by editing them.

Downgrade of a Jenkins version without downgrading the configuration files to match the Jenkins version is difficult.


For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Baptiste Mathus

unread,
Jan 28, 2019, 1:18:37 AM1/28/19
to jenkins...@googlegroups.com
I would strongly recommend using this issue as a warning that downgrading is **not** supported with Jenkins data model. Backup your system.
The 1.1 => 1.0 should be a quite simple trick, but there will be cases that you will not be able to handle manually and need to dig into potentially many plugin's source codes to understand what changed.

YUQI ZHANG

unread,
Jun 18, 2019, 11:11:49 PM6/18/19
to Jenkins Users
I came across the same problem when I upgrade jenkins first then downgrade it . 

my solution here hopes could help someone: 

1. service jenkins stop 
2. mv JENKINS_HOME/config.xml JENKINS_HOME/config.xml_bak
3. service jenkins start

then I can use jenkins without authentication.  there are still some problems which is not totally fixed

I simply upgrade jenkins again  and recover original config.xml by doing:

mv JENKINS_HOME/config.xml_bak JENKINS_HOME/config.xml

service jenkins restart

finally every job can be built again normally. thanks god. I would never trying to do this upgrading/downgrading things without backup!




在 2018年3月3日星期六 UTC+8下午6:23:27,Poovaraj Thangamariappan写道:
Reply all
Reply to author
Forward
0 new messages