java.lang.ClassCastException

java.lang.String cannot be cast to java.io.ObjectStreamClass 00:13:56.870 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1511) 00:13:56.870 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) 00:13:56.870 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) 00:13:56.870 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 00:13:56.870 at java.util.ArrayList.readObject(ArrayList.java:771) 00:13:56.870 at sun.reflect.GeneratedMethodAccessor3441.invoke(Unknown Source) 00:13:56.870 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 00:13:56.870 at java.lang.reflect.Method.invoke(Method.java:606) 00:13:56.870 at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) 00:13:56.870 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) 00:13:56.870 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) 00:13:56.870 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) 00:13:56.870 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) 00:13:56.870 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) 00:13:56.870 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) 00:13:56.870 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) 00:13:56.870 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 00:13:56.870 at java.util.ArrayList.readObject(ArrayList.java:771) 00:13:56.870 at sun.reflect.GeneratedMethodAccessor3441.invoke(Unknown Source) 00:13:56.870 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web161

  • via Unknown by Emory Penney,
  • via Unknown by Emory Penney,
  • Stack trace

    • java.lang.ClassCastException: java.lang.String cannot be cast to java.io.ObjectStreamClass 00:13:56.870 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1511) 00:13:56.870 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) 00:13:56.870 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) 00:13:56.870 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 00:13:56.870 at java.util.ArrayList.readObject(ArrayList.java:771) 00:13:56.870 at sun.reflect.GeneratedMethodAccessor3441.invoke(Unknown Source) 00:13:56.870 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 00:13:56.870 at java.lang.reflect.Method.invoke(Method.java:606) 00:13:56.870 at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) 00:13:56.870 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) 00:13:56.870 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) 00:13:56.870 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) 00:13:56.870 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) 00:13:56.870 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) 00:13:56.870 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) 00:13:56.870 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) 00:13:56.870 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) 00:13:56.870 at java.util.ArrayList.readObject(ArrayList.java:771) 00:13:56.870 at sun.reflect.GeneratedMethodAccessor3441.invoke(Unknown Source) 00:13:56.870 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at hudson.remoting.UserRequest.deserialize(UserRequest.java:184) at hudson.remoting.UserResponse.retrieve(UserRequest.java:217) at hudson.remoting.Channel.call(Channel.java:781) at hudson.FilePath.act(FilePath.java:979) at hudson.FilePath.act(FilePath.java:968) at org.jenkinsci.plugins.xunit.XUnitProcessor.getTestResult(XUnitProcessor.java:326) at org.jenkinsci.plugins.xunit.XUnitProcessor.recordTestResult(XUnitProcessor.java:288) at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:103) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:142) at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:134) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    MattyMatty
    3 times, last one
    johnxflyjohnxfly
    54 times, last one
    bpbhat77bpbhat77
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    10 more bugmates