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

Samebug tips

  1. ,
    Expert tip

    You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

  2. ,
    Expert tip

    This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

Solutions on the web

via hibernate.org by Unknown author, 2 years ago
via Hibernate JIRA by Rafal Groszewski, 2 years ago
could not deserialize
via Hibernate JIRA by Vivek Venugopalan, 2 years ago
could not deserialize
via Hibernate JIRA by Rafal Groszewski, 1 year ago
could not deserialize
via Hibernate JIRA by Vivek Venugopalan, 1 year ago
could not deserialize
java.lang.ClassNotFoundException: long	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)	at java.security.AccessController.doPrivileged(Native Method)	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)	at java.lang.ClassLoader.loadClass(ClassLoader.java:299)	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)	at java.lang.Class.forName0(Native Method)	at java.lang.Class.forName(Class.java:195)	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)	at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)	at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)	at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)	at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)	at java.util.HashMap.readObject(HashMap.java:840)	at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)	at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)	at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)	at net.sf.hibernate.impl.SessionImpl.readObject(SessionImpl.java:446)	at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2214)	at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)	at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:190)	at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:194)	at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:220)	at org.hibernate.test.FooBarTest.testPersistCollections(FooBarTest.java:2262)	at org.hibernate.test.TestCase.runTest(TestCase.java:80)