Google app engine 没有合适的构造器google应用程序引擎
我试图在我的google数据存储中插入数据,因此我通过google API explorer发送此请求:Google app engine 没有合适的构造器google应用程序引擎,google-app-engine,objectify,Google App Engine,Objectify,我试图在我的google数据存储中插入数据,因此我通过google API explorer发送此请求: POST https://local-sport-meeting-app.appspot.com/_ah/api/localSportMeetingApi/v1/rencontre Content-Type: application/json X-JavaScript-User-Agent: Google APIs Explorer { "date": { "day":
POST https://local-sport-meeting-app.appspot.com/_ah/api/localSportMeetingApi/v1/rencontre
Content-Type: application/json
X-JavaScript-User-Agent: Google APIs Explorer
{
"date": {
"day": 30,
"hour": 20,
"minute": 15,
"month": 11,
"year": 2014
},
"idComp": "5153049148391424",
"idParticipant2": "5664902681198592",
"idPartiticpant1": "5734055144325120",
"latitude": 3.105024,
"lieu": "STADE MARCEL MICHELIN\"",
"longitude": 45.789907
}
但这将返回以下错误:
400 Bad Request
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.iutclermont.lpmobile.localsportmeeting.backend.DatePerso]: can not instantiate from JSON object (need to add/enable type information?)\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.iutclermont.lpmobile.localsportmeeting.backend.Rencontre[\"date\"])"
}
],
"code": 400,
"message": "com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class com.iutclermont.lpmobile.localsportmeeting.backend.DatePerso]: can not instantiate from JSON object (need to add/enable type information?)\n at [Source: N/A; line: -1, column: -1] (through reference chain: com.iutclermont.lpmobile.localsportmeeting.backend.Rencontre[\"date\"])"
}
}
我在android studio中使用Objectify和应用程序引擎模块生成实体,并且根据Objectify的请求,我有一个空构造函数
是否有人已经有这个问题或知道如何解决它。
谢谢。这里也有同样的问题。。。你找到解决办法了吗?当然找到了,因为这是一个学术项目,我完成了。但不幸的是,我无法告诉你。。。我遇到这个问题已经一年了。顺便说一句,我可能仍然有来源,所以我会看看我是否能找到答案。但我不能保证