-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Platform: All, OS: All
After upgrading from 1.330 to 1.331, some projects fail to load. Reverting to
1.330 makes them reappear.
I have several kinds stack traces in the log, but they all have a
ClassCastException:
- ConversionException with DiskUsageProperty
hudson.util.IOException2: Unable to read
/usr/local/web/.hudson/jobs/project1/config.xml
at hudson.XmlFile.read(XmlFile.java:130)
at hudson.model.Items.load(Items.java:106)
at hudson.model.Hudson$9.call(Hudson.java:2011)
at hudson.model.Hudson$9.call(Hudson.java:2004)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.thoughtworks.xstream.converters.ConversionException:
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference :
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference-
-
- Debugging information ----
message :
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference
cause-exception : java.lang.ClassCastException
cause-message :
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference
class : hudson.model.FreeStyleProject
required-type : hudson.util.CopyOnWriteList
path :
/project/properties/hudson.plugins.disk_usage.DiskUsageProperty
line number : 10
-------------------------------
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:261)
at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:221)
at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:172)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at hudson.util.XStream2.unmarshal(XStream2.java:70)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at hudson.XmlFile.read(XmlFile.java:126)
... 8 more
Caused by: java.lang.ClassCastException:
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference
at
com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:45)
at
com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:70)
at
hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:184)
at
hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:163)
at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:157)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
... 25 more
- Debugging information ----
-
-
- ConversionException with MonitorPublisher
hudson.util.IOException2: Unable to read
/usr/local/web/.hudson/jobs/project2/config.xml
at hudson.XmlFile.read(XmlFile.java:130)
at hudson.model.Items.load(Items.java:106)
at hudson.model.Hudson$9.call(Hudson.java:2011)
at hudson.model.Hudson$9.call(Hudson.java:2004)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.thoughtworks.xstream.converters.ConversionException:
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference :
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference-
-
- Debugging information ----
message :
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference
cause-exception : java.lang.ClassCastException
cause-message :
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference
class : hudson.maven.MavenModuleSet
required-type : hudson.util.DescribableList
path :
/maven2-moduleset/publishers/hudson.plugins.statusmonitor.MonitorPublisher
line number : 120
-------------------------------
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:261)
at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:221)
at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:172)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at hudson.util.XStream2.unmarshal(XStream2.java:70)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at hudson.XmlFile.read(XmlFile.java:126)
... 8 more
Caused by: java.lang.ClassCastException:
com.thoughtworks.xstream.mapper.CannotResolveClassException cannot be cast to
java.lang.ref.WeakReference
at
com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:45)
at
com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:70)
at
hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:184)
at
hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:312)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
... 25 more
- Debugging information ----
-
-
- shorter ConversionException on MonitorPublisher
hudson.util.IOException2: Unable to read
/usr/local/web/.hudson/jobs/project3/config.xml
at hudson.XmlFile.read(XmlFile.java:130)
at hudson.model.Items.load(Items.java:106)
at hudson.model.Hudson$9.call(Hudson.java:2011)
at hudson.model.Hudson$9.call(Hudson.java:2004)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null-
-
- Debugging information ----
cause-exception : java.lang.ClassCastException
cause-message : null
class : hudson.maven.MavenModuleSet
required-type : hudson.util.DescribableList
path :
/maven2-moduleset/publishers/hudson.plugins.statusmonitor.MonitorPublisher
line number : 68
-------------------------------
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:261)
at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:221)
at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:172)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at hudson.util.XStream2.unmarshal(XStream2.java:70)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at hudson.XmlFile.read(XmlFile.java:126)
... 8 more
Caused by: java.lang.ClassCastException
- Debugging information ----
-
-
The installed plugins are:
nabaztag 1.6
Hudson Emma plugin 1.10
Hudson Sectioned View Plugin 1.5 (disabled)
Hudson Radiator View Plugin 1.2 (disabled)
Hudson FindBugs Plug-in 3.13
Hudson Sonar plugin 1.1 (disabled)
Hudson Cobertura plugin 0.8.9
Hudson SLOCCount Plug-in 1.3 (disabled)
Hudson SSH Slaves plugin 0.8
Hudson promoted builds plugin 1.5 (disabled)
Hudson Support Subscription Notification Plugin 1.1
Hudson Status Monitor 1.1 (disabled)
Hudson IRC Plugin 1.8-SNAPSHOT (private)
Hudson Task Scanner Plugin- 3.13
Hudson Warnings Plug-in 2.14
Hudson Violations plugin 0.7.4
Hudson Locks and Latches plugin 0.4
TuxDroid Plugin 1.5 (disabled)
Hudson Duplicate Code Scanner Plug-in 1.13
Hudson Dependency Analyzer Plugin 0.4
Hudson disk-usage plugin 0.9 (disabled)
Green Balls 1.4
Hudson build timeout plugin 1.5
Hudson Continuous Integration game 1.15
Hudson PMD Plug-in 2.13
Hudson Checkstyle Plug-in 2.14
Maven Integration plugin 1.331
Hudson Subversion Plug-in 1.7
Hudson JIRA plugin 1.16
Change Log History 1.1
Hudson M2 Extra Steps Plugin 1.1.2