使用gemfire 8.1和spring-gemfire-data,版本1.5.2。
当缓存关闭时,我得到了一些孤立的"com.gemstone.gemfire.cache.CacheClosedException:错误。“
哪一种可能是原因?因为我不是手动做anything...and,让spring data来做这项工作……
com.gemstone.gemfire.cache.CacheClosedException: The cache is closed.
at com.gemstone.gemfire.internal.cache.GemFireCacheImpl$Stopper.generateCancelledException(GemFireCacheImpl.java:1294)
at com.gemstone.gemfire.CancelCriterion.checkCancelInProgress(CancelCriterion.java:82)
at com.gemstone.gemfire.internal.cache.TXManagerImpl.checkClosed(TXManagerImpl.java:606)
at com.gemstone.gemfire.internal.cache.TXManagerImpl.begin(TXManagerImpl.java:279)
at org.springframework.data.gemfire.GemfireTransactionManager.doBegin(GemfireTransactionManager.java:125)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:420)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:257)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)发布于 2015-07-29 00:46:20
您的堆栈跟踪似乎是不完整的,没有显示所有内容(例如,缺少“由:引起的”)。请包括整个堆栈跟踪。
很难确定这是来自您的应用程序内部,还是来自测试用例。GemFire不太可能因为TransactionException而“关闭”。因此,包含一些配置和直接涉及的代码会很有帮助。更好的是,可靠地再现问题的测试是非常有帮助和首选的,因为这始终是我解决所有问题的第一步。
还值得注意的是,Spring Data GemFire 1.5.x基于GemFire 7.0.2 (https://github.com/spring-projects/spring-data-gemfire/blob/v1.5.2.RELEASE/gradle.properties#L4),并不一定适用于GemFire 8.1,尽管众所周知,它可以在大多数UC中工作(网关是一个例外)。
从技术上讲,即将到来的Spring Data GemFire 1.7.0版本(https://github.com/spring-projects/spring-data-gemfire/blob/master/gradle.properties#L3)完全支持并兼容GemFire 8.1,尽管还没有最终正式发布(目前是1.7.0 M1)。支持Spring8.0的最新版本是GemFire Data GemFire 1.6.2.RELEASE
有关当前版本(http://projects.spring.io/spring-data-gemfire/)的更多详细信息,请参阅Spring Data GemFire主页;有关发布时间表(https://github.com/spring-projects/spring-data-commons/wiki/Release-planning),请参阅Spring Data Wiki的“发布计划”页面。请注意,当前的活动版本Fowler (SDG 1.6.x)和Gosling (1.7.x)是超链接的。
谢谢
https://stackoverflow.com/questions/31678125
复制相似问题