更新时间:2022-04-20 22:52:40
当某些东西无法反序列化时,你,上尉明显)。在您的实体映射中,以下内容可疑:
This issue is happening when something cannot be deserialized (thank you, Captain Obvious). In your entity mappings the following looks suspicious:
@Type(type = "hstore")
@Column(name = "tags", columnDefinition = "hstore")
private Object2ObjectOpenHashMap<String, String> tags = new Object2ObjectOpenHashMap<String, String>();
@Column(name = "bbox")
private Geometry bbox;
@Column(name = "linestring")
private Geometry linestring;
我的建议是看看几何
和 Object2ObjectHashMap
类 - 检查它们是否可序列化本身和它们的所有字段也可序列化,或标记为 transient
关键字。此外,如果您在这里发布这些课程,这也可能有帮助。 HstoreUserType
类别列表也可能有所帮助。
My suggestion is either to take a look over Geometry
and Object2ObjectHashMap
classes - check whether they are serializable itself and all their fields either serializable too, or marked with transient
keyword. Also if you post these classes here, this may help aswell. HstoreUserType
class listing may also be helpful.