Hi,
I have this Method(server side) Which I call Asynchronously (RPC) I'm Using 
GWT and GAE:

@Override
public List<?> getClientData(MyPersistance filterClass) {
// TODO Auto-generated method stub
pm = getPersistenceManagerFactory().getPersistenceManager();
 Query clientQ = pm.newQuery(filterClass.getClass());
List<?> clientList = new ArrayList();
 List<?> clientPCopy;
 try {
 clientList = (List<?>) clientQ.execute();
 clientPCopy = (List<?>) pm.detachCopyAll(clientList);
    } finally {
     clientQ.closeAll();
    }
return clientPCopy;
}


And I have in my Interface Two Widgets That are calling this method and both 
of them call this method to get data from Database, So here is the problem, 
When I call this method separately for each widget commenting from another 
one It works ok, but when they both call this method I got this Error :
Service method 'public abstract java.util.List 
am.officemanager.directory.client.services.AdminService.getClientData(am.officemanager.directory.shared.MyPersistance)'
 
threw an unexpected exception: javax.jdo.JDOUserException: Object with id 
"com.google.appengine.api.datastore.Key:AgentP(9)" is managed by a different 
Object Manager 

Please tell Me why It happence so.

Regards,
Manvel Saroyan

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/73JWfFF4M1MJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to