Hibernate - Class not found - SerializableProxy

I

Ian Semmel

I have a server program and a client program.

From the server program I send back (via a socket) hibernate objects like :

public abstract class AbstractUser implements java.io.Serializable
{
... etc
}

I serialize to the socket by using ObjectOutputStream.writeObject and retrieve the object using ObjectInputStream.readObject.

Now, on the client side, the FIRST time I read an object, I get a ClassNotFoundException for:

org.hibernate.proxy.pojo.cglib.SerializableProxy

Now, if I cancel the client and run it again (I am running it in eclipse), everything is OK.

I realise that this error could be generated from a number of sources. It could be a threading issue. My hibernate stuff actually
lives in a User Library.

I was wondering if anyone has come across this before and could point me towards a solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top