Hi Martin !
I`m using the following JVM
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
and no app servers or other software for this simple (work or not) test.
Info about serialization may be added to javadoc and tutorial for the
MetadataManager.
On 4/29/05, Martin Kal�n <[EMAIL PROTECTED]> wrote:
> 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]
>
>