Hi Peter,

Peter A wrote:

> A bit late, but I'm finally checking out the latest version of xstream for
> Applet compatibility.  So far no luck.  When I run the following code
> inside of appletviewer it crashes on the "new XStream()" line.  Code and
> exception below.  Am I doing something wrong or are there still issues
> that
> need to be worked around?

It seems so.

> I'm using version 1.4.7 from Maven central
> repository.
> 
> Thanks!
> 
> --------------------- BEGIN -------------------------
>     public static <T> T loadXML( Reader r ) {
>         XStream xstream = new XStream(new PureJavaReflectionProvider(),new
> DomDriver(),new
>             ClassLoaderReference(r.getClass().getClassLoader()));
>         xstream.registerConverter(new
> JavaBeanConverter(xstream.getMapper()));
>         return (T)xstream.fromXML(r);
>     }
> --------------------- END -------------------------
> 
> Exception in thread "Thread-1"
> com.thoughtworks.xstream.InitializationException: Could not instantiate
> mapper : com.thoughtworks.xstream.mapper.EnumMapper : access denied
> ("java.lang.RuntimePermission" "getClassLoader")
>     at
> com.thoughtworks.xstream.XStream.buildMapperDynamically(XStream.java:622)
>     at com.thoughtworks.xstream.XStream.buildMapper(XStream.java:596)
>     at com.thoughtworks.xstream.XStream.<init>(XStream.java:568)
>     at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
>     at com.thoughtworks.xstream.XStream.<init>(XStream.java:489)
>     at com.thoughtworks.xstream.XStream.<init>(XStream.java:428)
>     at boofcv.io.UtilIO.loadXML(UtilIO.java:157)


Is this the complete stack trace? I am missing at least one additional 
"caused by".

Cheers,
Jörg



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to