【发布时间】:2018-01-23 19:22:03
【问题描述】:
我正在使用 objectify 读取 App Engine Datastore 条目并遇到以下异常。
com.google.api.server.spi.SystemService invokeServiceMethod:
exception occurred while calling backend method (SystemService.java:375)
com.googlecode.objectify.LoadException: Error loading UserData(5678701068944971):
At path 'name': Expected class com.google.appengine.api.datastore.Blob,
got class com.google.appengine.api.datastore.ShortBlob: <ShortBlob: 164 bytes>
来自 GitHub 问题 #284,这已在 5.1.11 版本中得到解决,但是我正在使用 5.1.21 版本,但仍然遇到问题。
我是不是做错了什么?
Datastore 创建不是通过objectify,而是通过 Cloud Datastore API。当数据存储条目通过objectify 时,不会出现异常。
【问题讨论】:
标签: google-app-engine objectify