0 Replies Latest reply on Aug 15, 2006 4:33 AM by joseph fernando

    How to implement JGroups-RMI Clustering in Tomcat

    joseph fernando Newbie


      I had tried to replicate my RMI Server using JGROUPS in the following manner.

      RMI Server running in one node with rmireplicated code using jgroups api (downloaded from soucreforge.net) and Tomcat server running on
      another node. I had copied replicated rmi class files from RMI Server and pasted it into a WEB-INF/classes directory.
      First I had started the RMI Server. It displayes message as Become Group Coordinator found in Remote Home.

      Then I had started the Tomcat server and call my apllication using IE. When a client contacts the RMI Server it shows error..

      RMI Side

      [WARN] UDP - -packet from / has different version ( ??") from
      ours (0227). This may cause problems
      [ERROR] UDP - -exception=java.io.StreamCorruptedException: invalid stream header

      at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
      at java.io.ObjectInputStream.(Unknown Source)
      at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:670)
      at org.jgroups.protocols.UDP.run(UDP.java:249)
      at java.lang.Thread.run(Unknown Source)

      Tomcat Side

      Aug 14, 2006 1:31:18 PM org.jgroups.protocols.TP handleIncomingPacket
      WARNING: packet from has different version (12338) from ours
      (231). This may cause problems
      Aug 15, 2006 1:31:18 PM org.jgroups.protocols.TP handleIncomingPacket
      SEVERE: failed unmarshalling message
      at java.io.DataInputStream.readShort(DataInputStream.java:287)
      at org.jgroups.Message.readFrom(Message.java:624)
      at org.jgroups.protocols.TP.bufferToMessage(TP.java:982)
      at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:838)
      at org.jgroups.protocols.TP.access$200(TP.java:44)
      at org.jgroups.protocols.TP$IncomingPacketHandler.run(TP.java:1290)

      How to solve this issue. Any help regard this highly appreciated..

      Thanks and Regards