2 Replies Latest reply on Aug 28, 2007 11:45 PM by sprightee

    org.jboss.cache.CacheException: Initial state transfer faile

      Hi,
      I am a newbie to jboss cache and i have a problem.
      When i use jboss cache in my application inside a clustered environment,i get the below exception and the cache does not get started.

      Caused By
      org.jboss.cache.CacheException: Initial state transfer failed: Channel.getState
      () returned false
      at org.jboss.cache.TreeCache.fetchStateOnStartup(TreeCache.java:3349)
      at org.jboss.cache.TreeCache.startService(TreeCache.java:1543)
      at com.hp.tpf.common.TPFCoSRuntimeCacheManager.startService(TPFCoSRuntimeCacheMana
      ger.java:511)


      I've tried increasing the InitialStateRetrievalTimeout ,but still the same problem persists.
      Can someone please help me out in solving this problem.

      Thanks in advance,
      Sprightee

        • 1. Re: org.jboss.cache.CacheException: Initial state transfer f

          Hi,
          With respect to my previous post, i'm getting the following error from JGroups.

          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast receive socket closed
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast send socket closed
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast socket is closed, exception=java.net.SocketException: Socket closed
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast thread terminated
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> socket closed
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> unicast receiver socket is closed, exception=java.net.SocketException: Socket closed
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> unicast receiver thread terminated
          [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> incoming packet handler terminating

          Have someone come across this issue before?

          Thanks in advance,
          Sprightee

          • 2. Re: org.jboss.cache.CacheException: Initial state transfer f

            Hi,

            I hope the below log trace will give a proper insight about the problem.

            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> sending msg to 192.168.100.166:44306 (src=192.168.100.173:52033), headers are {GMS=GmsHeader[LEAVE_REQ]: mbr=192.168.100.173:52033, UDP=[channel_name=TPFCoSRuntimeCache-Cluster-Stage2set2], UNICAST=[UNICAST: DATA, seqno=6]}
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> received (mcast) 75 bytes from 192.168.100.168:49614
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> received (mcast) 75 bytes from 192.168.100.168:49614
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> message is [dst: 224.10.11.12:46616, src: 192.168.100.168:49613 (2 headers), size = 0 bytes], headers are {UDP=[channel_name=TPFCoSProvCache-Cluster-Stage2set2], PING=[PING: type=GET_MBRS_REQ, arg=null]}
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.PING --> received GET_MBRS_REQ from 192.168.100.168:49613, sending response [PING: type=GET_MBRS_RSP, arg=[own_addr=192.168.100.173:52030, coord_addr=192.168.100.168:49613, is_server=true]]
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> message is [dst: 224.10.11.12:46616, src: 192.168.100.168:49613 (2 headers), size = 0 bytes], headers are {UDP=[channel_name=TPFCoSProvCache-Cluster-Stage2set2], PING=[PING: type=GET_MBRS_REQ, arg=null]}
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.PING --> received GET_MBRS_REQ from 192.168.100.168:49613, sending response [PING: type=GET_MBRS_RSP, arg=[own_addr=192.168.100.173:52030, coord_addr=192.168.100.168:49613, is_server=true]]
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> sending msg to 192.168.100.168:49613 (src=192.168.100.173:52030), headers are {PING=[PING: type=GET_MBRS_RSP, arg=[own_addr=192.168.100.173:52030, coord_addr=192.168.100.168:49613, is_server=true]], UDP=[channel_name=TPFCoSProvCache-Cluster-Stage2set2]}
            [DEBUG] - 08/29/07 12:42:42 org.jgroups.protocols.UDP --> sending msg to 192.168.100.168:49613 (src=192.168.100.173:52030), headers are {PING=[PING: type=GET_MBRS_RSP, arg=[own_addr=192.168.100.173:52030, coord_addr=192.168.100.168:49613, is_server=true]], UDP=[channel_name=TPFCoSProvCache-Cluster-Stage2set2]}
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.pbcast.GMS --> 192.168.100.173:52033 changed role to org.jgroups.protocols.pbcast.ClientGmsImpl
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> closing sockets and stopping threads
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.FD_SOCK --> socket to 192.168.100.166:44306 was reset
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.FD_SOCK --> pinger thread terminated
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast receive socket closed
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast send socket closed
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast socket is closed, exception=java.net.SocketException: Socket closed
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> multicast thread terminated
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> socket closed
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> unicast receiver socket is closed, exception=java.net.SocketException: Socket closed
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> unicast receiver thread terminated
            [DEBUG] - 08/29/07 12:42:43 org.jgroups.protocols.UDP --> incoming packet handler terminating


            Thanks in advance,
            Sprightee