org.infinispan.statetransfer.StateTransferException:传输没有或未配置为支持状态转移

时间:2017-04-06 15:12:17

标签: java jboss infinispan change-notification

我使用相同的数据库在同一个盒子中并行运行JBoss 5和JBoss 7。另外,我还配置了Java数据库更改通知和Infinispan。但是当试图在JBoss7中启动应用程序而没有暂时关闭JBoss 5时,我在JBoss 7中得到了以下错误。请告诉我如何克服这个

2017.04.06 10:09:46 INFO  GlobalComponentRegistry(691): Infinispan version: Infinispan 'Ursus' 4.2.1.FINAL
2017.04.06 10:09:46 INFO  GlobalComponentRegistry(691): Infinispan version: Infinispan 'Ursus' 4.2.1.FINAL
2017.04.06 10:09:46 DEBUG InterceptorChain(67): Interceptor chain size: 6
2017.04.06 10:09:46 DEBUG InterceptorChain(67): Interceptor chain size: 6
2017.04.06 10:09:46 DEBUG InterceptorChain(68): Interceptor chain is:
        >> org.infinispan.interceptors.InvocationContextInterceptor
        >> org.infinispan.interceptors.TxInterceptor
        >> org.infinispan.interceptors.NotificationInterceptor
        >> org.infinispan.interceptors.LockingInterceptor
        >> org.infinispan.interceptors.ReplicationInterceptor
        >> org.infinispan.interceptors.CallInterceptor
2017.04.06 10:09:46 DEBUG InterceptorChain(68): Interceptor chain is:
        >> org.infinispan.interceptors.InvocationContextInterceptor
        >> org.infinispan.interceptors.TxInterceptor
        >> org.infinispan.interceptors.NotificationInterceptor
        >> org.infinispan.interceptors.LockingInterceptor
        >> org.infinispan.interceptors.ReplicationInterceptor
        >> org.infinispan.interceptors.CallInterceptor
2017.04.06 10:09:46 DEBUG StateTransferManagerImpl(126): Initiating state transfer process
2017.04.06 10:09:46 DEBUG StateTransferManagerImpl(126): Initiating state transfer process
2017.04.06 10:09:46 WARN  JGroupsTransport(359): Channel not set up properly!
2017.04.06 10:09:46 ERROR CacheManager(444): Exception while trying to take over listening
org.infinispan.CacheException: Unable to invoke method public void org.infinispan.statetransfer.StateTransferManagerImpl.start() throws org.infinispan.statet
ransfer.StateTransferException on object
        at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:174)
        at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:889)
        at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:687)
        at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:589)
        at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:147)
        at org.infinispan.CacheDelegate.start(CacheDelegate.java:323)
        at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:516)
        at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:439)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:171)
        ... 17 more
Caused by: org.infinispan.statetransfer.StateTransferException: Transport does not, or is not configured to, support state transfer.  Please disable fetching
 state on startup, or reconfigure your transport.
        at org.infinispan.remoting.rpc.RpcManagerImpl.retrieveState(RpcManagerImpl.java:189)
        at org.infinispan.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:130)
        ... 22 more

1 个答案:

答案 0 :(得分:0)

需要将初始成员从2更新为4,以考虑额外的集群集,实例。 num_initial_members = “$ {jgroups.num.initial.members:2}”

详细的xml配置:developer.jboss.org/message/970623