我试图向包含密钥的 Google App Engine Endpoints 发送一个对象。但是该对象不能被反序列化。这是我得到的错误:
java.io.IOException: com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException:
(was java.lang.NullPointerException)
(through reference chain:
Form["identity"]->FormsIdentity["user"]->User["key"]->com.google.appengine.api.datastore.Key["appId"])
这是我发送的对象:
"identity":{
"user":
{
"key" : {
"kind" : "User",
"appId" : "no_app_id",
"id" : "1",
"complete" : true,
"namespace" : ""
},
"googleID" : "8493582",
"emailAddress" : "xxxxx@gmail.com",
"credential" : "xxxx@gmail.com"
},
"deviceID":"4234o34i523534"
}
但我只收到前端的错误,因为端点内的代码已执行。