0 Replies Latest reply on Mar 23, 2010 1:25 PM by Barak Yaish

    Failing to boot two nodes cluster in Distribution mode

    Barak Yaish Newbie

      Hi,

       

      I'm evaluating Infinispan for my company, using the last stable version. I'm trying to boot two nodes cluster, in each node cache is confgiured as follow

       

       

      GlobalConfiguration gc = GlobalConfiguration.getClusteredDefault();

      org.infinispan.config.Configuration c = new org.infinispan.config.Configuration();

       

       

      c.setCacheMode(org.infinispan.config.Configuration.CacheMode.DIST_ASYNC);

       

       

       

      CacheManager cm = new DefaultCacheManager(gc, c);

       

      cache = cm.getCache();

       

       

      First node is booted as expected, and I'm able to load it with some entries using junit. But, trying to boot the second node seems to fail, and jstack says, is there something I miss?

       

      "main" prio=10 tid=0x000000005c461000 nid=0x258e waiting on condition [0x00000000406a9000..0x00000000406aced0]
         java.lang.Thread.State: TIMED_WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for  <0x00002aab29afff40> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
              at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2054)
              at org.jgroups.util.Promise.doWait(Promise.java:117)
              at org.jgroups.util.Promise._getResultWithTimeout(Promise.java:73)
              at org.jgroups.util.Promise.getResultWithTimeout(Promise.java:42)
              at org.jgroups.util.Promise.getResult(Promise.java:104)
              at org.jgroups.protocols.pbcast.ClientGmsImpl.joinInternal(ClientGmsImpl.java:142)
              at org.jgroups.protocols.pbcast.ClientGmsImpl.join(ClientGmsImpl.java:38)
              at org.jgroups.protocols.pbcast.GMS.down(GMS.java:924)
              at org.jgroups.protocols.FC.down(FC.java:432)
              at org.jgroups.protocols.FRAG2.down(FRAG2.java:154)
              at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.down(STREAMING_STATE_TRANSFER.java:331)
              at org.jgroups.protocols.pbcast.FLUSH.handleConnect(FLUSH.java:309)
              at org.jgroups.protocols.pbcast.FLUSH.down(FLUSH.java:270)
              at org.jgroups.stack.ProtocolStack.down(ProtocolStack.java:836)
              at org.jgroups.JChannel.downcall(JChannel.java:1652)
              at org.jgroups.JChannel.connect(JChannel.java:417)
              - locked <0x00002aab29468f58> (a org.jgroups.JChannel)
              at org.jgroups.JChannel.connect(JChannel.java:380)
              - locked <0x00002aab29468f58> (a org.jgroups.JChannel)
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:166)
              at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:155)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)
              at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:852)
              at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:672)
              at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:574)
              at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:131)
              at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:135)
              at org.infinispan.CacheDelegate.start(CacheDelegate.java:311)
              at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:507)
              at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:473)
              at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:446)
              at com.demo.context.ProxyContext$Initializer.initialize(ProxyContext.java:1023)
              at com.demo.context.ProxyContext.initialize(ProxyContext.java:255)
              at com.demo.context.ProxyContext.getInstance(ProxyContext.java:84)
              - locked <0x00002aaab2c9fb40> (a java.lang.Class for com.demo.context.ProxyContext)
              at com.demo.servlet.InitializerServlet.init(InitializerServlet.java:33)
              at javax.servlet.GenericServlet.init(GenericServlet.java:212)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
              - locked <0x00002aab19b31300> (a org.apache.catalina.core.StandardWrapper)
              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
              - locked <0x00002aab19b31300> (a org.apache.catalina.core.StandardWrapper)
              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
              - locked <0x00002aab18b4ba50> (a org.apache.catalina.core.StandardContext)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
              - locked <0x00002aab18646da8> (a java.util.HashMap)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)