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 root42.jp by Unknown author, 1 year ago
java.lang.StackTraceElement cannot be cast to java.lang.String
via blogspot.com by Unknown author, 2 years ago
via Stack Overflow by ravi
, 1 year ago
java.io.ObjectStreamClass cannot be cast to java.lang.String
via Stack Overflow by Steve Omondi
, 7 months ago
via Stack Overflow by SSK
, 6 months ago
java.lang.StackTraceElement cannot be cast to java.lang.String
java.lang.ClassCastException: java.lang.StackTraceElement cannot be cast to java.lang.String	at java.io.ObjectInputStream.readTypeString(ObjectInputStream.java:1421)	at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:719)	at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:833)	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1609)	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)	at java.util.ArrayList.readObject(ArrayList.java:791)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)	at org.apache.catalina.session.StandardSession.doReadObject(StandardSession.java:1611)	at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1077)	at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:218)	at org.apache.catalina.session.StandardManager.load(StandardManager.java:162)	at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:356)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)