I want to create an instance , put it on a container and send it.
TransferContainer container = null;
...
Class aClass = container.getByteCode();
o = aClass.newInstance();
....// Some code
...
container.setInstance(o);
ObjectOutputStream out = new ObjectOutputStream(_s.getOutputStream());
out.writeObject(container);
I get this error
java.io.NotSerializableException If I don't add the the instance o in the container I can send it without any problem.