3 Replies Latest reply on Sep 19, 2011 4:50 AM by yokese20

    Cluster UDP ports

    jyoonyang

      Hi,

      I am getting the following exception:

      15:05:53,555 ERROR [UDP] exception=java.io.StreamCorruptedException: invalid stream header
       at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
       at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
       at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:670)
       at org.jgroups.protocols.UDP$IncomingPacketHandler.run(UDP.java:1332)
       at java.lang.Thread.run(Thread.java:595)


      I think this caused by another application sending message on the UDP port that my JBoss is listening on.

      What I cannot figure out is where this port is specified. I see the following messages, but I can't find the specified port in any of the config files.
      15:04:05,235 INFO [UDP] unicast sockets will use interface 172.25.8.70
      15:04:05,239 INFO [UDP] socket information:
      local_addr=pssoapp01:34930, mcast_addr=230.1.2.7:45577, bind_addr=/172.25.8.70, ttl=2
      sock: bound to 172.25.8.70:34930, receive buffer size=2097152, send buffer size=640000
      mcast_recv_sock: bound to 172.25.8.70:45577, send buffer size=640000, receive buffer size=2097152
      mcast_send_sock: bound to 172.25.8.70:34931, send buffer size=640000, receive buffer size=2097152
      15:04:05,239 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is pssoapp01:34930
      -------------------------------------------------------
      
      ...
      
      15:04:08,091 INFO [UDP] unicast sockets will use interface 172.25.8.70
      15:04:08,091 INFO [UDP] socket information:
      local_addr=pssoapp01:34933 (additional data: 16 bytes), mcast_addr=228.1.2.3:45566, bind_addr=/172.25.8.70, ttl=8
      sock: bound to 172.25.8.70:34933, receive buffer size=150000, send buffer size=800000
      mcast_recv_sock: bound to 172.25.8.70:45566, send buffer size=800000, receive buffer size=150000
      mcast_send_sock: bound to 172.25.8.70:34934, send buffer size=800000, receive buffer size=150000
      15:04:08,092 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is pssoapp01:34933 (additional data: 16 bytes)
      -------------------------------------------------------
      


      Where are these being defined? How can I override these?

      Thanks,
      Jennifer

        • 1. Re: Cluster UDP ports
          brian.stansberry

          In deploy/cluster-service.xml and deploy/tc5-cluster.sar/META-INF/jboss-service.xml. In 4.0.3.SP1 and earlier, the 2nd file was deploy/tc5-cluster-service.xml.

          • 2. Re: Cluster UDP ports
            malligarjunan

            Hi,

            is this issue resolved?
            if yes, kindly let me know how to resolve the issue?

            • 3. Re: Cluster UDP ports
              yokese20

              Year 2011. I'm running a JBoss with this same issue; error trace it's printed several times in a minute (3-4).

               

              I post my JBoss initial traces for more information:

               

              10:17:21,886 INFO  [Server] Starting JBoss (MX MicroKernel)...
              10:17:21,887 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=201107071506)
              10:17:21,888 INFO  [Server] Home Dir: /home/jboss
              10:17:21,888 INFO  [Server] Home URL: file:/home/jboss/
              10:17:21,889 INFO  [Server] Patch URL: null
              10:17:21,889 INFO  [Server] Server Name: teseo
              10:17:21,889 INFO  [Server] Server Home Dir: /home/jboss/server/teseo
              10:17:21,889 INFO  [Server] Server Home URL: file:/home/jboss/server/teseo/
              10:17:21,889 INFO  [Server] Server Log Dir: /home/jboss/server/teseo/log
              10:17:21,889 INFO  [Server] Server Temp Dir: /home/jboss/server/teseo/tmp
              10:17:21,890 INFO  [Server] Root Deployment Filename: jboss-service.xml
              10:17:22,273 INFO  [ServerInfo] Java version: 1.5.0_22,Sun Microsystems Inc.
              10:17:22,273 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_22-b03,Sun Microsystems Inc.
              10:17:22,273 INFO  [ServerInfo] OS-System: Linux 2.6.18-164.el5,i386
              10:17:23,083 INFO  [Server] Core system initialized
              10:17:28,775 INFO  [WebService] Using RMI server codebase: http://Cletus.logesta.com:8083/
              10:17:28,789 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
              10:17:36,632 INFO  [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
              

               

               

              Also the error trace is this:

               

              10:31:20,992 ERROR [UDP] exception=java.io.StreamCorruptedException: invalid stream header
                      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
                      at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
                      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:595)
              

               

              Does it exist any solution or procedure to detect the cause for this?