hudson.util.IOException2: Unable to read /usr/share/java/workspace/jbossws-hudson-3.0.2.DEV/hudson-home/jobs/Metro-Core-AS-4.2.2/builds/2008-04-10_19-55-09/build.xml

Jenkins JIRA | Thomas Diesler | 9 years ago
  1. 0

    Because of https://hudson.dev.java.net/issues/show_bug.cgi?id=1541 I need to downgrade from 1.206 to 1.160 (the last version I used), which leads to Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot deserialize object with new readObject()/writeObject() methods ---- Debugging information ---- class : hudson.model.FreeStyleBuild required-type : java.util.concurrent.CopyOnWriteArrayList path : /build/actions line number : 14 class : hudson.model.FreeStyleBuild required-type : java.util.concurrent.CopyOnWriteArrayList path : /build/actions line number : 14 ------------------------------- at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doUnmarshal(SerializableConverter.java:253) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:121) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:234) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:193) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:144) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117) at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:832) at hudson.util.XStream2.unmarshal(XStream2.java:37) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:819) at hudson.XmlFile.unmarshal(XmlFile.java:123) ... 17 more hudson.util.IOException2: Unable to read /usr/share/java/workspace/jbossws-hudson-3.0.2.DEV/hudson-home/jobs/Metro-Core-AS-4.2.2/builds/2008-04-10_19-55-09/build.xml at hudson.XmlFile.unmarshal(XmlFile.java:127) at hudson.model.Run.<init>(Run.java:171) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:99) at hudson.model.Build.<init>(Build.java:42) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:15) at sun.reflect.GeneratedConstructorAccessor8.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    Jenkins JIRA | 9 years ago | Thomas Diesler
    hudson.util.IOException2: Unable to read /usr/share/java/workspace/jbossws-hudson-3.0.2.DEV/hudson-home/jobs/Metro-Core-AS-4.2.2/builds/2008-04-10_19-55-09/build.xml
  2. 0

    [JENKINS-22664] BuildDiskUsageAction.build must be transient - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: Unable to read .../jobs/.../builds/2013-11-19_.../build.xml
  3. 0

    [JENKINS-13536] File parameter causing data lost after Jenkins restart - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: Unable to read /vol/ebs1/jenkins/jobs/ah-trunk-hardy/builds/2012-10-17_21-17-23/build.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Mar 04, 2013 12:06:29 PM hudson.triggers.SCMTrigger$Runner run INFO: SCM changes detected in Gravity_Update_Site. Triggering #94 Exception in thread "JmDNS(fe80:0:0:0:20c:29ff:fe7d:d4c6%2.local.).Timer" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2219) at java.util.ArrayList.grow(ArrayList.java:213) at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:187) at java.util.ArrayList.addAll(ArrayList.java:532) at javax.jmdns.impl.DNSCache.allValues(DNSCache.java:351) at javax.jmdns.impl.JmDNSImpl.cleanCache(JmDNSImpl.java:1771) at javax.jmdns.impl.tasks.RecordReaper.run(RecordReaper.java:58) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Mar 04, 2013 12:09:53 PM hudson.model.RunMap retrieve WARNING: could not load /media/storage/jenkins_home/jobs/iSeriesServerDispatcher/builds/2 hudson.util.IOException2: Unable to read /media/storage/jenkins_home/jobs/iSeriesServerDispatcher/builds/2013-01-08_22-39-03/build.xml at hudson.XmlFile.unmarshal(XmlFile.java:166) at hudson.model.Run.reload(Run.java:308) at hudson.model.Run.<init>(Run.java:297) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:179) at hudson.model.Build.<init>(Build.java:103) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:41) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at hudson.model.AbstractProject.loadBuild(AbstractProject.java:1084) at hudson.model.AbstractProject$1.create(AbstractProject.java:282) at hudson.model.AbstractProject$1.create(AbstractProject.java:280) at hudson.model.RunMap.retrieve(RunMap.java:225) at hudson.model.RunMap.retrieve(RunMap.java:59) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:645) at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:608) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:347) at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:505) at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:358) at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:300) at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:1021) at hudson.model.AbstractProject.poll(AbstractProject.java:1387) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.OutOfMemoryError: Java heap space

    Jenkins JIRA | 4 years ago | wim jongman
    hudson.util.IOException2: Unable to read /media/storage/jenkins_home/jobs/iSeriesServerDispatcher/builds/2013-01-08_22-39-03/build.xml
  6. 0

    {code:none} ... WARNING hudson.model.RunMap retrieve could not load .../jobs/.../builds/2013-11-19_... hudson.util.IOException2: Unable to read .../jobs/.../builds/2013-11-19_.../build.xml at hudson.XmlFile.unmarshal(XmlFile.java:166) at hudson.model.Run.reload(Run.java:320) at hudson.model.Run.<init>(Run.java:309) at hudson.model.AbstractBuild.<init>(AbstractBuild.java:187) at hudson.model.Build.<init>(Build.java:103) at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:41) at ... Caused by: com.thoughtworks.xstream.converters.ConversionException: Invalid reference ---- Debugging information ---- reference : ../hudson.plugins.disk__usage.BuildDiskUsageAction/build/actions/org.jvnet.hudson.plugins.DownstreamBuildViewAction class : java.util.concurrent.CopyOnWriteArrayList required-type : java.util.concurrent.CopyOnWriteArrayList converter-type : hudson.util.RobustCollectionConverter path : /build/actions/org.jvnet.hudson.plugins.DownstreamBuildViewAction line number : 143 class[1] : hudson.model.FreeStyleBuild converter-type[1] : hudson.util.RobustReflectionConverter version : not available ------------------------------- at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:57) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71) at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85) at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61) at hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:357) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:290) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:229) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) 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:113) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) at hudson.XmlFile.unmarshal(XmlFile.java:164) ... 132 more {code} while trying to load {code:xml} <?xml version='1.0' encoding='UTF-8'?> <build> <actions> ... <hudson.plugins.disk__usage.BuildDiskUsageAction plugin="disk-usage@0.23"> <buildDiskUsage>...</buildDiskUsage> <build class="build"> <actions> ... <hudson.plugins.disk__usage.BuildDiskUsageAction reference="../../.."/> <org.jvnet.hudson.plugins.DownstreamBuildViewAction plugin="downstream-buildview@1.8"> <build class="build" reference="../../.."/> <downstreamBuilds class="concurrent-hash-map">... </org.jvnet.hudson.plugins.DownstreamBuildViewAction> ... </actions> ... </build> </hudson.plugins.disk__usage.BuildDiskUsageAction> <org.jvnet.hudson.plugins.DownstreamBuildViewAction reference="../hudson.plugins.disk__usage.BuildDiskUsageAction/build/actions/org.jvnet.hudson.plugins.DownstreamBuildViewAction"/> <hudson.tasks.Fingerprinter_-FingerprintAction reference="../hudson.plugins.disk__usage.BuildDiskUsageAction/build/actions/hudson.tasks.Fingerprinter_-FingerprintAction"/> ... <org.jvnet.hudson.plugins.DownstreamBuildViewAction plugin="downstream-buildview@1.8"> <build class="build" reference="../../.."/> <downstreamBuilds class="concurrent-hash-map">... </actions> ... <scm class="hudson.scm.NullChangeLogParser" reference="../actions/hudson.plugins.disk__usage.BuildDiskUsageAction/build/scm"/> <culprits class="com.google.common.collect.EmptyImmutableSortedSet" reference="../actions/hudson.plugins.disk__usage.BuildDiskUsageAction/build/culprits"/> </build> {code} It is very dangerous to serialize a {{Run}}-valued field as part of an action. You should make this field {{transient}} and implement {{RunAction2}} (1.509.4+ if I recall correctly). Then the {{BuildDiskUsageAction}} constructor need not take {{AbstractBuild build}}; the build will be set when the action is attached immediately after construction ({{DiskUsageUtil.calculateDiskUsageForBuild}}).

    Jenkins JIRA | 3 years ago | Jesse Glick
    hudson.util.IOException2: Unable to read .../jobs/.../builds/2013-11-19_.../build.xml

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.util.IOException2

      Unable to read /usr/share/java/workspace/jbossws-hudson-3.0.2.DEV/hudson-home/jobs/Metro-Core-AS-4.2.2/builds/2008-04-10_19-55-09/build.xml

      at hudson.XmlFile.unmarshal()
    2. Hudson
      FreeStyleBuild.<init>
      1. hudson.XmlFile.unmarshal(XmlFile.java:127)
      2. hudson.model.Run.<init>(Run.java:171)
      3. hudson.model.AbstractBuild.<init>(AbstractBuild.java:99)
      4. hudson.model.Build.<init>(Build.java:42)
      5. hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:15)
      5 frames
    3. Java RT
      GeneratedConstructorAccessor8.newInstance
      1. sun.reflect.GeneratedConstructorAccessor8.newInstance(Unknown Source)
      1 frame