I'm struggeling with this now - did you guys solve it? I have a
simple client class that will be a parent in a simple parent-child
relationship. If i add an ArrayList property to the parent class (i
don't even have to decorate it as persistant) i get
EVERE: [1254861190636000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: 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.
i've tried java.util.list and java.util.arraylist with same result -
defiitly not a 'org.datanucleus.sco.backed.List'
what's odd is that the RPC call runs in a way and the object is
persisted but without the list field.
Anyway - this seems like something that can't be passed in an RPC call
but i don't see why
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Catagory extends BaseTreeModel implements Serializable {
public Catagory() {}
private static final long serialVersionUID = 1L;
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName="datanucleus", key="gae.encoded-pk",
value="true")
private String key;
@Persistent(mappedBy = "catagory")
private List<SubCatagory> subcatagories;
}
On Sep 22, 5:43 am, Angel <[email protected]> wrote:
> i have the same problem
>
> On 5 ago, 04:52, mike <[email protected]> wrote:
>
>
>
> > I have a simple one-to-many betwen two entities. The parent entity
> > uses List to contain the child entities. I am able to persist these
> > entities in the datastore without problems.
>
> > However, when reading a root entity at the server, I get:
>
> > rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was
> > not included in the set of types which can be serialized...
>
> > The entities are successfully read from the datastore, but something
> > in Datanucleus doesn't build the List correctly.
>
> > Has anyone found a workaround for this serialization problem.
>
> > Thanks
>
> > GWT 1.7 GAE 1.2.2- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---