0


gemfire 8.1 と spring-gemfire-data、バージョン 1.5.2.RELEASE を使用します。
「com.gemstone.gemfire.cache.CacheClosedException: The cache is closed.」という孤立したエラーがいくつか発生します。
原因として考えられるのはどれですか? 私は手動で何もしていないので...そして春のデータに任せてください...


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)
4

1 に答える 1

0

スタック トレースが不完全で、すべてを明らかにしていないようです (つまり、"Caused By:" がありません)。スタック トレース全体を含めてください。

これがアプリケーション内からのものなのか、それともテスト ケースからのものなのかを判断するのは困難です。TransactionException が原因で GemFire が「終了」することはほとんどありません。したがって、いくつかの構成と直接関連するコードを含めると役立ちます。さらに良いことに、問題を確実に再現するテストは非常に役立ち、すべての問題を解決するための最初のステップであるため、推奨されます。

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 で動作することが知られています (ただし、ゲートウェイは 1 つの例外です)。

技術的には、今後の Spring Data GemFire 1.7.0 リリース ( https://github.com/spring-projects/spring-data-gemfire/blob/master/gradle.properties#L3 ) は完全にサポートされており、GemFire 8.1 と互換性があります。ただし、まだ最終的な GA には達していません (現在 1.7.0 M1)。GemFire 8.0 をサポートする最新リリースは、Spring Data GemFire 1.6.2.RELEASE です。

現在のリリースの詳細については、Spring Data GemFire のホームページ ( http://projects.spring.io/spring-data-gemfire/ ) を参照してください。リリース スケジュールについては、Spring Data Wiki の「リリース計画」ページ ( https:// github.com/spring-projects/spring-data-commons/wiki/Release-planning )。現在アクティブなリリースである Fowler (SDG 1.6.x) と Gosling (1.7.x) はハイパーリンクされていることに注意してください。

ありがとう

于 2015-07-28T16:46:20.123 に答える