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=2581875

Reply via email to