Cannot get JPA enhanced object from GAE server through GWT-RPC

9 views
Skip to first unread message

Jean-Marc Truillet

unread,
Oct 25, 2011, 4:16:43 PM10/25/11
to Google Web Toolkit
Hello,

I would like to know if I am facing a limitation of GWT.
I have stored a JPA entity with owned OneToOne and OneToMany
relationships in GAE DataStore through GWT-RPC without any problem.

I've succeeded in retrieving the main entity alone, as well as the
main entity with the entity linked by the OneToOne annotation. But
when I try to get the main entity with the ones in the collection
associated to the OneToMany annotation, I get this exception:

"Type 'org.datanucleus.sco.backed.List' was not included in the set of
types which can be serialized by this SerializationPolicy or its Class
object could not be loaded. For security purposes, this type will not
be serialized.: instance = [com.mydomain.myapp.shared.MyClass@ef3b6f]"

I thought this enhanced class issue was solved with the version 2.0 of
GWT as explained in the doc. Can someone confirm my case is not
supported by GWT? Or am I doing something wrong?
If there is no obvious solution I will probably use RequestFactory.

Thanks for your help.

Jean-Marc

Patrick Julien

unread,
Oct 25, 2011, 4:32:00 PM10/25/11
to google-we...@googlegroups.com
In order for this to be "solved" by GWT 2, you need to be using RequestFactory instead of GWT-RPC.


List, Set and Collection will be properly copied to a shim when using this facility
Reply all
Reply to author
Forward
0 new messages