ok i have to learn to read at the console. Here is my log :

The server is running at http://localhost:8080/
10 nov. 2009 18:00:24
com.google.appengine.tools.development.ApiProxyLocalImpl log
SEVERE: [1257876024239000] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'org.datanucleus.store.appengine.query.StreamingQueryResult' 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.
        at
com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
(StandardSerializationPolicy.java:83)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
(ServerSerializationStreamWriter.java:591)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
(AbstractSerializationStreamWriter.java:129)
        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
[more logs]

The word 'SerializationException' make me blind to anything else.
So it doesn't say it's not serializable but that GWT doesn't allow
it... that is not the same.

In fact, it is a pure GWT problem and using ".subList()" is a just a
way to stay within the GWT white list of classes supported.

i had updated my sidewiki post to that :
"
The list is not a basic ArrayList but a class of Datanucleus
('StreamingQueryResult') that is not allowed by GWT ('[...] was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded [...]', it
says).

If you want use that trick, just begin with a simple object, not a
resultset.
Alternatively, you may return a ".subList(x, y)", which produces a
simple ArrayList.
"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to