Objectify Blob Read ShortBlob Received Exception

时间:2018-01-23 19:22:04

标签: google-app-engine objectify

I am reading App Engine Datastore entry using objectify and got the following exception.

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>

From the GitHub issue #284, this has been addressed in 5.1.11 release, however I am using 5.1.21 release and still getting the issue.

Am I doing something wrong?

The Datastore create is not through objectify, it is through Cloud Datastore API. When the Datastore entry is through objectify the exception is not seen.

1 个答案:

答案 0 :(得分:1)

在对问题跟踪器进行一些讨论之后,我们发现在尝试反序列化@Serialize字段时会发生这种情况。已经修复并发布为v5.1.22。

相关问题