hi all,

I'm really at dead end with the below. Can someone please help?

I've tried even the simplest classes but on GAE (even in local
development mode) I get the below exception.

Any help is appreciated,

Best,

Chen.

On Wed, Apr 14, 2010 at 11:01, Chen Bekor <[email protected]> wrote:
>
> hi,
>
> I'm using the Restlet SE Client in order to send  a JSON into a @Put("json") 
> annotated Resource method.
>
> The method takes a parameter (the target to which XStream is trying to 
> convert the source json representation)
>
> I get the following exception on the server:
>
> WARNING: Exception or error caught in resource
> com.thoughtworks.xstream.converters.ConversionException:
> Cannot construct com.mysite.myapp.Item : access denied 
> (java.lang.RuntimePermission accessClassInPackage.sun.reflect) :
> Cannot construct com.mysite.myapp.Item : access denied 
> (java.lang.RuntimePermission accessClassInPackage.sun.reflect)
> ---- Debugging information ----
> message             : Cannot construct com.mysite.myapp.Item : access denied 
> (java.lang.RuntimePermission accessClassInPackage.sun.reflect)
> cause-exception     : 
> com.thoughtworks.xstream.converters.reflection.ObjectAccessException
> cause-message       : Cannot construct com.funsoftmedia.balyan.dm.movie.Movie 
> : access denied (java.lang.RuntimePermission accessClassInPackage.sun.reflect)
> class               : com.mysite.myapp.Item
> required-type       : com.mysite.myapp.Item
> line number         : -1
> -------------------------------
>     at 
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:78)
>
> Please note that on the server I'm running the latest snapshot of the GAE 
> edition.
>
> Any clue?
>
> Thanks,
>
> Chen.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2583869

Reply via email to