0 Replies Latest reply on Jun 14, 2005 11:09 AM by none none

    StreamCorrupted Exception

    none none Newbie

      I have setup a clustered nodes on 2 tomcat instances. Below are the cluster details
      mcastAddr="228.0.0.4"
      mcastPort="45564"
      mcastFrequency="500"
      mcastDropTime="3000"
      tcpListenAddress="auto"
      tcpListenPort="4001"
      tcpSelectorTimeout="100"
      tcpThreadCount="6"

      tcpListenPort is different for both the instances i.e 4001, 4002.

      I execued a simple program which loads 2 nodes into TreeCache and prints it. Below is the exception that I am facing

      Jun 14 10:48:46 DEBUG [DownHandler (UDP)] protocols.UDP - created unicast receiv
      er thread
      Jun 14 10:48:46 DEBUG [DownHandler (FD_SOCK)] protocols.PING - FIND_INITIAL_MBRS

      Jun 14 10:48:46 DEBUG [ServerSocketHandler thread] protocols.FD_SOCK - waiting f
      or client connections on port 49152
      Jun 14 10:48:46 DEBUG [FD_SOCK Ping thread] protocols.FD_SOCK - pinger_thread st
      arted
      Jun 14 10:48:46 DEBUG [FD_SOCK Ping thread] protocols.FD_SOCK - determinePingDes
      t()=null, pingable_mbrs=[]
      Jun 14 10:48:46 DEBUG [FD_SOCK Ping thread] protocols.FD_SOCK - pinger thread te
      rminated
      Jun 14 10:48:46 DEBUG [DownHandler (UDP)] protocols.UDP - sending message to 228
      .0.0.4:45564 (src=RAMIRESR-1130:3883), headers are {PING=[PING: type=GET_MBRS_RE
      Q, arg=null], UDP=[UDP:group_addr=TreeCache-Cluster]}
      Jun 14 10:48:46 DEBUG [DownHandler (FD_SOCK)] protocols.PING - waiting for initi
      al members: time_to_wait=2000, got 0 rsps
      Jun 14 10:48:46 DEBUG [UDP mcast receiver] protocols.UDP - received (mcast) 105
      bytes from /3.25.203.42:3884 (size=105 bytes)
      Jun 14, 2005 10:48:46 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster member
      Added
      INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[??
      ?pw? ?UDP ? ¶ ?TreeCache-Cluster,1.0.0.0,2000552192, alive=3472893477361876
      997]
      Jun 14 10:48:46 DEBUG [UDP mcast receiver] protocols.UDP - message is [dst: 228.
      0.0.4:45564, src: RAMIRESR-1130:3883 (2 headers), size = 0 bytes], headers are {
      PING=[PING: type=GET_MBRS_REQ, arg=null], UDP=[UDP:group_addr=TreeCache-Cluster]
      }
      Jun 14 10:48:46 DEBUG [UDP mcast receiver] protocols.UDP - received (mcast) 38 b
      ytes from /3.25.203.42:45564 (size=38 bytes)
      Jun 14 10:48:46 WARN [UDP mcast receiver] protocols.UDP - packet from /3.25.203
      .42:45564 has different version ( ) from ours (0227). This may cause problems

      Jun 14 10:48:46 ERROR [UDP mcast receiver] protocols.UDP - exception=java.io.Str
      eamCorruptedException: invalid stream header
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737
      )
      at java.io.ObjectInputStream.(ObjectInputStream.java:253)
      at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:670)
      at org.jgroups.protocols.UDP.run(UDP.java:249)
      at java.lang.Thread.run(Thread.java:534)

      Jun 14 10:48:47 DEBUG [UDP mcast receiver] protocols.UDP - received (mcast) 38 b
      ytes from /3.25.203.42:45564 (size=38 bytes)
      Jun 14 10:48:47 WARN [UDP mcast receiver] protocols.UDP - packet from /3.25.203
      .42:45564 has different version ( ) from ours (0227). This may cause problems


      Thanks