Stas Ostapenko wrote:
So, here is new code

public class Domain implements java.io.Serializable

SerializationUtils needs Serializable classes by contract, this should probably be better documented. Any suggestions as to where in the docs/config files you would first look for this? (So we could update the docs.)

Domain d = new Domain();
Object result = SerializationUtils.clone(d);
...
org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException: Domain
...
at org.apache.commons.lang.SerializationUtils.deserialize(
SerializationUtils.java:202)
...
Caused by: java.lang.ClassNotFoundException: Domain
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)

This is weird.

Under which JVM environment is this happening? Are you running
inside an application server (like Tomcat or a J2EE container,
with it's own ClassLoader)? Are you using Java security policy?

Regards,
 Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to