【发布时间】:2014-08-12 09:08:35
【问题描述】:
我正在使用 Gemfire Spring 放置/查找 pojo 对象
@Autowired
GemfireTemplate responseTemplate;
....
HTTPAudit audit = new HTTPAudit(sessionId,response);
responseTemplate.put("Detail", audit);
System.out.println("Get caching...");
SelectResults<HTTPAudit> result = responseTemplate.find("SELECT * from /HTTPAudit WHERE sessionId= $1", sessionId);
HTTPAudit 对象实现了 Serializable 接口。
实体已成功保存在 Gemfire 中,但在尝试反序列化时抛出异常。错误消息是 “com.gemstone.gemfire.SerializationException:在尝试反序列化缓存值时抛出 ClassNotFoundException。”
【问题讨论】:
-
我正在使用带有 data-policy="EMPTY" 的客户区域。
标签: gemfire spring-data-gemfire