[
https://issues.jboss.org/browse/ISPN-2967?page=com.atlassian.jira.plugin....
]
Pedro Ruivo updated ISPN-2967:
------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
https://github.com/infinispan/infinispan/pull/2122
Preload fails when auto-commit is false for tx caches
-----------------------------------------------------
Key: ISPN-2967
URL:
https://issues.jboss.org/browse/ISPN-2967
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Affects Versions: 5.2.5.Final
Environment: fedora 18, openjdk 1.7
Reporter: Aleksandar Kostadinov
Assignee: Pedro Ruivo
Priority: Minor
setting preload=true when using bdbje store results in exceptions that are otherwise not
seen.
{code}
00:45:30,745 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service
thread 1-1) Critical error during deployment: :
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Unable to invoke method
public void org.infinispan.loaders.CacheLoaderManagerImpl.preload() on object of type
CacheLoaderManagerImpl
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:377)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)
[jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: org.infinispan.CacheException: Unable to invoke method public void
org.infinispan.loaders.CacheLoaderManagerImpl.preload() on object of type
CacheLoaderManagerImpl
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:646)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:217)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.CacheImpl.start(CacheImpl.java:582)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:686)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:121)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at com.jboss.datagrid.chunchun.jsf.InitializeCache.startup(InitializeCache.java:82)
[classes:]
at
com.jboss.datagrid.chunchun.jsf.InitializeCache.processEvent(InitializeCache.java:76)
[classes:]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
[jboss-jsf-api_2.1_spec-2.0.7.Final-redhat-1.jar:2.0.7.Final-redhat-1]
at
com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2145)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:288)
[jboss-as-weld-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:602)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:371)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
... 9 more
Caused by: java.lang.IllegalStateException: This is a tx cache!
at
org.infinispan.context.TransactionalInvocationContextContainer.createInvocationContext(TransactionalInvocationContextContainer.java:112)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.CacheImpl.getInvocationContext(CacheImpl.java:531)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.CacheImpl.getInvocationContextWithImplicitTransaction(CacheImpl.java:515)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.CacheImpl.put(CacheImpl.java:776)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.DecoratedCache.put(DecoratedCache.java:180)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.loaders.CacheLoaderManagerImpl.preload(CacheLoaderManagerImpl.java:258)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_09-icedtea]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_09-icedtea]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_09-icedtea]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09-icedtea]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
... 28 more
00:45:30,747 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/chunchun]] (MSC
service thread 1-1) Exception sending context initialized event to listener instance of
class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Unable to invoke method
public void org.infinispan.loaders.CacheLoaderManagerImpl.preload() on object of type
CacheLoaderManagerImpl
at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:290)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
[jbossweb-7.0.17.Final-redhat-1.jar:]
at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89)
[jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Unable to
invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.preload() on
object of type CacheLoaderManagerImpl
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:377)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
... 8 more
Caused by: org.infinispan.CacheException: Unable to invoke method public void
org.infinispan.loaders.CacheLoaderManagerImpl.preload() on object of type
CacheLoaderManagerImpl
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:646)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:217)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.CacheImpl.start(CacheImpl.java:582)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:686)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:121)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at com.jboss.datagrid.chunchun.jsf.InitializeCache.startup(InitializeCache.java:82)
[classes:]
at
com.jboss.datagrid.chunchun.jsf.InitializeCache.processEvent(InitializeCache.java:76)
[classes:]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
[jboss-jsf-api_2.1_spec-2.0.7.Final-redhat-1.jar:2.0.7.Final-redhat-1]
at
com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2169)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2145)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:303)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
org.jboss.as.weld.webtier.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:288)
[jboss-as-weld-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:602)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:371)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
... 9 more
Caused by: java.lang.IllegalStateException: This is a tx cache!
at
org.infinispan.context.TransactionalInvocationContextContainer.createInvocationContext(TransactionalInvocationContextContainer.java:112)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.CacheImpl.getInvocationContext(CacheImpl.java:531)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.CacheImpl.getInvocationContextWithImplicitTransaction(CacheImpl.java:515)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.CacheImpl.put(CacheImpl.java:776)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at org.infinispan.DecoratedCache.put(DecoratedCache.java:180)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at
org.infinispan.loaders.CacheLoaderManagerImpl.preload(CacheLoaderManagerImpl.java:258)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_09-icedtea]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_09-icedtea]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_09-icedtea]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09-icedtea]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203)
[infinispan-core-5.2.5.Final.jar:5.2.5.Final]
... 28 more
00:45:30,749 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1)
Error listenerStart
00:45:30,749 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1)
Context [/chunchun] startup failed due to previous errors
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira