Hi,

I used datastore in development mode as follows,

DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Entity person = new Entity("Personn");
person.setProperty("name", "Deepak");
person.setProperty("lname", "priyanka");
ds.put(person);

when i run it, i get the following exception

java.lang.NullPointerException: No API environment is registered for this
thread.
at
com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java:108)
at
com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace(DatastoreApiHelper.java:118)
at com.google.appengine.api.datastore.Key.<init>(Key.java:104)
at com.google.appengine.api.datastore.Key.<init>(Key.java:88)
at com.google.appengine.api.datastore.Key.<init>(Key.java:84)
at com.google.appengine.api.datastore.Entity.<init>(Entity.java:122)
at com.google.appengine.api.datastore.Entity.<init>(Entity.java:103)

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to