New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Cache Service does not support restart #297

Closed
cescoffier opened this Issue Aug 3, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@cescoffier
Member

cescoffier commented Aug 3, 2014

When the application configuration service disappears and re-appears (because of a modification on the application.conf file), the cache service is broken. The EHCache Cache object is in a broken state, and a new instance should be recreated.

Caused by: java.lang.IllegalStateException: The wisdom Cache is not alive (STATUS_SHUTDOWN)
    at net.sf.ehcache.Cache$CacheStatus.checkAlive(Cache.java:4267) ~[na:na]
    at net.sf.ehcache.Cache.checkStatus(Cache.java:2701) ~[na:na]
    at net.sf.ehcache.Cache.get(Cache.java:1576) ~[na:na]
    at net.sf.ehcache.Cache.get(Cache.java:1557) ~[na:na]
    at org.wisdom.cache.ehcache.EhCacheService.__M_get(EhCacheService.java:138) ~[na:na]
    at org.wisdom.cache.ehcache.EhCacheService.get(EhCacheService.java) ~[na:na]
    at org.wisdom.api.cache.Cache$$Proxy.get(Unknown Source) ~[na:na]
    at me.escoffier.fut.backend.impl.ItemManagerImpl.__M_getPlayerName(ItemManagerImpl.java:41) ~[na:na]
    at me.escoffier.fut.backend.impl.ItemManagerImpl.getPlayerName(ItemManagerImpl.java) ~[na:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0]
    at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0]
    at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870) ~[na:na]
    at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293) ~[na:na]
    at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) ~[na:na]
    at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369) ~[na:na]
    at ognl.ASTMethod.getValueBody(ASTMethod.java:90) ~[na:na]
    at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) ~[na:na]
    at ognl.SimpleNode.getValue(SimpleNode.java:258) ~[na:na]
    at ognl.ASTChain.getValueBody(ASTChain.java:141) ~[na:na]
    at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) ~[na:na]
    at ognl.SimpleNode.getValue(SimpleNode.java:258) ~[na:na]
    at ognl.Ognl.getValue(Ognl.java:494) ~[na:na]
    at ognl.Ognl.getValue(Ognl.java:458) ~[na:na]

@cescoffier cescoffier added this to the 0.7 milestone Aug 3, 2014

@cescoffier cescoffier added the bug label Aug 3, 2014

@cescoffier cescoffier closed this in 4919b85 Aug 4, 2014

@cescoffier cescoffier modified the milestones: 0.7, 0.6.3 Sep 1, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment