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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by Emory Penney, 1 year ago
(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)
via Jenkins JIRA by Emory Penney, 1 year ago
(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)
via Oracle Community by 3004, 1 year ago
com.mergentonline.common.dao.CompanyPK 13:36:57,619 ERROR [STDERR] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceM anagerImpl.java:873) 13:36:57,619 ERROR [STDERR] at com.mergentonline.ejb.session.MergentOnLineServiceBean.requestCompanyInfo(Unkn own Source) 13:36:57,619 ERROR [STDERR]
via ittoolbox.com by Unknown author, 1 year ago
org.apache.naming.resources.ProxyDirContext cannot be cast to org.apache.naming.resources.ProxyDirContext at org.apache.catalina.servlets.DefaultServlet.init(D efaultServlet.java:256) at javax.servlet.GenericServlet.init(GenericServlet.j ava
via knowcoding.com by Unknown author, 1 year ago
com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate at com.sun.faces.application.ApplicationAssociate.cle arInstance(ApplicationAssociate.java:186) at
via knowcoding.com by Unknown author, 2 years ago
com.sun.faces.application.ApplicationAssociate cannot be cast to com.sun.faces.application.ApplicationAssociate at com.sun.faces.application.ApplicationAssociate.cle arInstance(ApplicationAssociate.java:186) at
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.