Hi
I am using Remote API for connecing with my database while running
code on my local machine. While I use transactions, it gives "Invalid
handle" exception while saving my entity. If I don't use transaction.
same code is running fine. Below is my code:
============================================================================
RemoteDatastore.install();
RemoteDatastore.divert("http://my_application_link/remote-datastore",
"applicationname", "versionname");
DatastoreService datastoreService =
DatastoreServiceFactory.getDatastoreService();
Transaction transaction = datastoreService.beginTransaction();
Entity entity = new Entity("TestUser");
entity.setProperty("ActivityDateTime", new Date());
entity.setProperty("Activity", "LOGIN");
entity.setProperty("IPAddress", "192.168.1.666");
datastoreService.put(entity);
transaction.commit();
============================================================================
Below is exception which I got on server:
java.lang.IllegalStateException: Could not read datastore request.
Main cause is [ApplicationError: 1: invalid handle:
15930507385780890370] Class Type [class
com.google.apphosting.api.ApiProxy$ApplicationException]
Any help/suggestion in this regard will be highly appreciated.
Regards,
Subhash
--
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.