[
https://issues.jboss.org/browse/AS7-4426?page=com.atlassian.jira.plugin.s...
]
Radoslav Husar edited comment on AS7-4426 at 9/11/12 7:12 AM:
--------------------------------------------------------------
Reopening.
[~dereed] notified me, that this issue is still present. If you configure remote cache
store in a separate cache manager, the problem is fixed. However, if you configure a
remote cache store in a web or ejb cache manager which sets its own class loader, the
appropriate cache store classes (org.infinispan.cachestore.remote) are not on CP and are
causing this regression.
{noformat}
12:51:23,066 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 54)
MSC000001: Failed to start service jboss.infinispan.web.rhusarRemoteCacheStore:
org.jboss.msc.service.StartException in service
jboss.infinispan.web.rhusarRemoteCacheStore: org.infinispan.CacheException: Unable to
invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.start() on object
of type CacheLoaderManagerImpl
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87)
[jboss-as-clustering-common-7.1.3.Final-redhat-1.jar:7.1.3.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_35]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_35]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
[jboss-threads-2.0.0.GA-redhat-2.jar:2.0.0.GA-redhat-2]
Caused by: org.infinispan.CacheException: Unable to invoke method public void
org.infinispan.loaders.CacheLoaderManagerImpl.start() on object of type
CacheLoaderManagerImpl
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:238)
at
org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:889)
at
org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:639)
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:628)
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:531)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:174)
at org.infinispan.CacheImpl.start(CacheImpl.java:521)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:656)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:549)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:563)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:125)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:116)
at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:78)
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82)
[jboss-as-clustering-common-7.1.3.Final-redhat-1.jar:7.1.3.Final-redhat-1]
... 4 more
Caused by: org.infinispan.CacheException: Unable to start cache loaders
at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[rt.jar:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[rt.jar:1.6.0_35]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_35]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:236)
... 17 more
Caused by: org.infinispan.CacheConfigurationException: Unable to instantiate class
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
at org.infinispan.util.Util.loadClass(Util.java:90)
at org.infinispan.util.Util.getInstance(Util.java:208)
at org.infinispan.client.hotrod.RemoteCacheManager.start(RemoteCacheManager.java:464)
at
org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:233)
at
org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:190)
at org.infinispan.loaders.remote.RemoteCacheStore.start(RemoteCacheStore.java:164)
at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:152)
... 22 more
Caused by: java.lang.ClassNotFoundException:
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [rt.jar:1.6.0_35]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_35]
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [rt.jar:1.6.0_35]
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [rt.jar:1.6.0_35]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [rt.jar:1.6.0_35]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [rt.jar:1.6.0_35]
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_35]
at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_35]
at org.infinispan.util.Util.loadClassStrict(Util.java:127)
at org.infinispan.util.Util.loadClass(Util.java:88)
... 28 more
{noformat}
was (Author: rhusar):
Reopening.
[~dereed] notified me, that this issue is still present. If you configure remote cache
store in a separate cache manager, the problem is fixed. However, if you configure a
remote cache store in a web or ejb cache manager which sets its own module class loader,
the appropriate cache store classes (org.infinispan.cachestore.remote) are not on CP and
are causing this regression.
{noformat}
12:51:23,066 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 54)
MSC000001: Failed to start service jboss.infinispan.web.rhusarRemoteCacheStore:
org.jboss.msc.service.StartException in service
jboss.infinispan.web.rhusarRemoteCacheStore: org.infinispan.CacheException: Unable to
invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.start() on object
of type CacheLoaderManagerImpl
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87)
[jboss-as-clustering-common-7.1.3.Final-redhat-1.jar:7.1.3.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_35]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_35]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
[jboss-threads-2.0.0.GA-redhat-2.jar:2.0.0.GA-redhat-2]
Caused by: org.infinispan.CacheException: Unable to invoke method public void
org.infinispan.loaders.CacheLoaderManagerImpl.start() on object of type
CacheLoaderManagerImpl
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:238)
at
org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:889)
at
org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:639)
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:628)
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:531)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:174)
at org.infinispan.CacheImpl.start(CacheImpl.java:521)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:656)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:549)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:563)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:125)
at
org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:116)
at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:78)
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82)
[jboss-as-clustering-common-7.1.3.Final-redhat-1.jar:7.1.3.Final-redhat-1]
... 4 more
Caused by: org.infinispan.CacheException: Unable to start cache loaders
at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[rt.jar:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[rt.jar:1.6.0_35]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_35]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:236)
... 17 more
Caused by: org.infinispan.CacheConfigurationException: Unable to instantiate class
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
at org.infinispan.util.Util.loadClass(Util.java:90)
at org.infinispan.util.Util.getInstance(Util.java:208)
at org.infinispan.client.hotrod.RemoteCacheManager.start(RemoteCacheManager.java:464)
at
org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:233)
at
org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:190)
at org.infinispan.loaders.remote.RemoteCacheStore.start(RemoteCacheStore.java:164)
at org.infinispan.loaders.CacheLoaderManagerImpl.start(CacheLoaderManagerImpl.java:152)
... 22 more
Caused by: java.lang.ClassNotFoundException:
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [rt.jar:1.6.0_35]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_35]
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [rt.jar:1.6.0_35]
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [rt.jar:1.6.0_35]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [rt.jar:1.6.0_35]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [rt.jar:1.6.0_35]
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_35]
at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_35]
at org.infinispan.util.Util.loadClassStrict(Util.java:127)
at org.infinispan.util.Util.loadClass(Util.java:88)
... 28 more
{noformat}
Remote store config errors in AS7
---------------------------------
Key: AS7-4426
URL:
https://issues.jboss.org/browse/AS7-4426
Project: Application Server 7
Issue Type: Bug
Components: Clustering
Affects Versions: 7.1.1.Final
Environment: Windows
Reporter: rang s
Assignee: Radoslav Husar
Priority: Critical
Fix For: 7.1.3.Final (EAP), 7.2.0.Alpha1
When remote-store is configured in domain.xml, on server startup following errors :-
[Server:server-one] 17:00:00,889 ERROR [org.jboss.msc.service.fail] (pool-13-thread-1)
MSC00001: Failed to start service jboss.infinispan.web.repl: org.jboss.msc.servic
e.StartException in service jboss.infinispan.web.repl: org.infinispan.CacheException:
Unable to invoke method public void org.infinispan.loaders.CacheLoaderManagerImpl.
start() on object
[Server:server-one] at
org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:62)
[jboss-as-clustering-common-7.1.1.Final.jar:7.1.1.Final]
[Server:server-one] Caused by: org.infinispan.CacheConfigurationException: Unable to
instantiate class org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFacto
ry
[Server:server-one] Caused by: java.lang.ClassNotFoundException:
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
Looks like some issue in locating the jar which contains this class file. I could resolve
this issue by :-
Adding the following :-
<module name="org.infinispan.client.hotrod"/>
in %JBOSS_HOME%/modules/org/infinispan/main/module.xml
This seems to be a bug as it should work out of the box.
--
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