JsonMappingException thrown by GAE endpoint due to missing entity key's appId

0 views
Skip to first unread message

Vanessa Ramirez via StackOverflow

unread,
Apr 20, 2014, 1:28:26 PM4/20/14
to google-appengin...@googlegroups.com

The getAppId() method from the Key class does the following:

   public String getAppId() {
    return appIdNamespace.getAppId();
  }

It is very likely that in your case, the appIdNamespace is null, which is causing the error. Make sure that your appUser has been retrieved from the datastore so that your groups keys are properly set. If these keys are generated in your code, use the KeyFactory.createKey method, which will generate the appIdNamespace for you.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/22892068/jsonmappingexception-thrown-by-gae-endpoint-due-to-missing-entity-keys-appid/23185445#23185445
Reply all
Reply to author
Forward
0 new messages