-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins 1.525
I tried to upgrade my test Jenkins instance from 1.480.3 to 1.525.
On startup, I got this:
org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable to read /var/lib/jenkins/config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:906)
at jenkins.model.Jenkins.<init>(Jenkins.java:806)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.model.Hudson.<init>(Hudson.java:77)
at hudson.WebAppMain$2.run(WebAppMain.java:214)
Caused by: hudson.util.IOException2: Unable to read /var/lib/jenkins/config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:170)
at jenkins.model.Jenkins$17.run(Jenkins.java:2526)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:895)
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:898)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
at java.lang.Thread.run(Thread.java:736)
Caused by: com.thoughtworks.xstream.converters.ConversionException: Array index out of range: -1 : Array index out of range: -1
---- Debugging information ----
message : Array index out of range: -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : Array index out of range: -1
class : hudson.model.Hudson
required-type : hudson.model.Hudson
converter-type : hudson.util.RobustReflectionConverter
path : /hudson/disabledAdministrativeMonitors
line number : 3
version : null
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)
at hudson.util.XStream2.unmarshal(XStream2.java:109)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
at hudson.XmlFile.unmarshal(XmlFile.java:166)
... 9 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77)
at java.util.HashMap.putAllImpl(HashMap.java:678)
at java.util.HashMap.putAll(HashMap.java:669)
at com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36)
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135)
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldOrNull(FieldDictionary.java:113)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldOrNull(PureJavaReflectionProvider.java:186)
at hudson.util.RobustReflectionConverter.fieldDefinedInClass(RobustReflectionConverter.java:328)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:269)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
... 18 more
- is related to
-
JENKINS-18537 ArrayIndexOutOfBoundsException during Jenkins.doConfigSubmit; need XStream 1.4.6
-
- Resolved
-
-
JENKINS-21047 Update XStream 1.4.4. to 1.4.6
-
- Resolved
-
I have the same problem also if I install the version 1.535 from scratch on a AIX machine 5.3.0.0 (oslevel) with a java 1.6 with the following command line:
java -Xmx2048m -Dhudson.Util.symlinkEscapeHatch=true -jar /users/plopez/jenkins-1.480/jenkins.war --httpPort=9000 --ajp13Port=-1
Output:
Running from: /users/plopez/jenkins-1.535/jenkins.war
webroot: $user.home/.jenkins
Oct 15, 2013 10:52:53 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Oct 15, 2013 10:52:54 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Extract jar:file:/users/plopez/jenkins-1.535/jenkins.war!/ to /tmp/jetty-0.0.0.0-9000-jenkins.war-
any/webappOct 15, 2013 10:53:16 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /users/plopez/.jenkins found at: $user.home/.jenkins
Oct 15, 2013 10:53:18 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:9000
Oct 15, 2013 10:53:18 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Oct 15, 2013 10:53:19 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 15, 2013 10:55:11 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 15, 2013 10:55:12 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 15, 2013 10:55:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 15, 2013 10:55:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 15, 2013 10:55:13 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 15, 2013 10:55:39 AM hudson.model.ComputerSet <clinit>
WARNING: Failed to instantiate NodeMonitors
Throwable occurred: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77)
at java.util.HashMap.putAllImpl(HashMap.java:678)
at java.util.HashMap.putAll(HashMap.java:669)
at com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36)
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135)
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:76)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:127)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:143)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:102)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
at hudson.util.DescribableList$ConverterImpl.marshal(DescribableList.java:259)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:898)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:887)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:860)
at hudson.XmlFile.write(XmlFile.java:183)
at hudson.model.ComputerSet$1.save(ComputerSet.java:76)
at hudson.util.PersistedList.onModified(PersistedList.java:173)
at hudson.util.PersistedList.replaceBy(PersistedList.java:85)
at hudson.model.ComputerSet.<clinit>(ComputerSet.java:431)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at hudson.model.OverallLoadStatistics.computeTotalExecutors(OverallLoadStatistics.java:63)
at hudson.model.LoadStatistics.updateExecutorCounts(LoadStatistics.java:188)
at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:226)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.Timer$TimerImpl.run(Timer.java:291)
Oct 15, 2013 10:55:41 AM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 52553
Oct 15, 2013 10:55:41 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 15, 2013 10:55:41 AM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 52554
Oct 15, 2013 10:55:41 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Oct 15, 2013 10:55:47 AM hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor monitor
WARNING: Failed to monitor master for Free Swap Space
Throwable occurred: java.util.concurrent.ExecutionException: java.io.IOException: No suitable implementation found: os.name=AIX os.arch=ppc64 sun.arch.data.model=64
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:244)
at java.util.concurrent.FutureTask.get(FutureTask.java:103)
at hudson.remoting.LocalChannel$2.get(LocalChannel.java:81)
at hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor.monitor(AbstractAsyncNodeMonitorDescriptor.java:97)
at hudson.node_monitors.AbstractNodeMonitorDescriptor$Record.run(AbstractNodeMonitorDescriptor.java:282)
Caused by: java.io.IOException: No suitable implementation found: os.name=AIX os.arch=ppc64 sun.arch.data.model=64
at org.jvnet.hudson.MemoryMonitor.obtain(MemoryMonitor.java:86)
at org.jvnet.hudson.MemoryMonitor.get(MemoryMonitor.java:57)
at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:104)
at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:100)
at hudson.remoting.LocalChannel$1.call(LocalChannel.java:52)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:315)