Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6946

Upgrading xunit from 0.6.1 to 1.1 causes jobs to not load

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      When Hudson is starting after upgrading from xunit 0.6.1 to xunit 1.1 (the current latest), jobs configured to use xunit fail to load with the following stacktrace:

      Jul 10, 2010 8:42:44 AM hudson.util.RobustReflectionConverter doUnmarshal
      WARNING: Failed to resolve a type
      java.lang.InstantiationError: com.thalesgroup.hudson.plugins.xunit.types.PHPUnitType
      	at sun.reflect.GeneratedSerializationConstructorAccessor31.newInstance(Unknown Source)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      	at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:76)
      	at hudson.util.RobustReflectionConverter.instantiateNewInstance(RobustReflectionConverter.java:327)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:176)
      	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.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      	at com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(ArrayConverter.java:55)
      	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 hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:286)
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:229)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:177)
      	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.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      	at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:190)
      	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:232)
      	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 hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:286)
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:229)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:177)
      	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:926)
      	at hudson.util.XStream2.unmarshal(XStream2.java:76)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856)
      	at hudson.XmlFile.read(XmlFile.java:126)
      	at hudson.model.Items.load(Items.java:106)
      	at hudson.model.Hudson$12.run(Hudson.java:2133)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      	at hudson.model.Hudson$3.runTask(Hudson.java:678)
      	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:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      Jul 10, 2010 8:42:44 AM hudson.util.RobustReflectionConverter doUnmarshal
      WARNING: Failed to resolve a type
      java.lang.InstantiationError
      	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:239)
      	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 hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:286)
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:229)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:177)
      	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:926)
      	at hudson.util.XStream2.unmarshal(XStream2.java:76)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:856)
      	at hudson.XmlFile.read(XmlFile.java:126)
      	at hudson.model.Items.load(Items.java:106)
      	at hudson.model.Hudson$12.run(Hudson.java:2133)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      	at hudson.model.Hudson$3.runTask(Hudson.java:678)
      	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:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.InstantiationException: [Lcom.thalesgroup.dtkit.metrics.hudson.api.type.TestType;
      	at java.lang.Class.newInstance0(Class.java:340)
      	at java.lang.Class.newInstance(Class.java:308)
      	at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:235)
      	... 28 more
      Jul 10, 2010 8:42:45 AM hudson.model.Hudson$4 onTaskFailed
      SEVERE: Failed Loading job xunit-test
      

      At a glance, it looks like this is due to jar files not being present in xunit.hpi's WEB-INF/lib directory - they show up when I build it myself, but they're not there in the released hpi file.

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              abayer Andrew Bayer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: