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.: instance = []
Members Class ------------- on client
---------
package com.Users.client;
@PersistenceCapable
public class Members implements Serializable{
.
.
.
}
----------------
Entry Point ----------- Client Class
the problem here
// Get Persisted Member
memberService.getMembers(new AsyncCallback<List<Members>>() {
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}
@Override
public void onSuccess(List<Members> result) {
// TODO Auto-generated method stub
adminPanel.add(new Label("get Members "));
adminPanel.add(new Label("size "
+result.size()));
for (Members m : result) {
adminPanel.add(new
Label(m.getMember()));
}
}
});
--------------------
MembersServiceImpl ------------ on Server
--------
package com.Users.server;
@SuppressWarnings("serial")
public class MembersServiceImpl extends RemoteServiceServlet
implements
MembersService {
@SuppressWarnings("unchecked")
@Override
public List<Members> getMembers() throws NotLoggedInException {
// TODO Auto-generated method stub
List<Members> returnList = new ArrayList<Members>();
PersistenceManager pm = PMF.get().getPersistenceManager();
String query = "select from " + Members.class.getName();
List<Members> members = (List<Members>)
pm.newQuery(query).execute();
for(Members step: members)
{
returnList.add(step);
}
return returnList;
}
}
how to Solve this problem
--
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.