10 Replies Latest reply on Feb 13, 2004 3:52 AM by Dietmar Scheidl

    Clustering on HP-UX

    Dietmar Scheidl Newbie

      Hi,

      I am just trying to start JBoss 3.2.1 on my HP-UX but I am getting the following Exception on deployment of cluster-service.xml (this one is already running on my WinXP, its the file from the all-config):

      2004-02-06 15:01:12,516 DEBUG [org.javagroups.DefaultPartition] [Fri Feb 6 15:01:12 CET 2004] [ERROR] JChannel.connect(): exception: java.net.SocketException: Invalid argument
      2004-02-06 15:01:12,518 ERROR [org.jboss.ha.framework.server.ClusterPartition] Starting failed
      ChannelException: java.net.SocketException: Invalid argument
       at org.javagroups.JChannel.connect(JChannel.java:214)
       at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:267)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
       at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
       at $Proxy11.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:392)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
       at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy7.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
       at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:392)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
       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:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:388)
       at java.lang.Thread.run(Thread.java:536)
      2004-02-06 15:01:12,522 WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=DefaultPartition
      ChannelException: java.net.SocketException: Invalid argument
       at org.javagroups.JChannel.connect(JChannel.java:214)
       at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:267)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
       at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
       at $Proxy11.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:392)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
       at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy7.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
       at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:392)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
       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:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:388)
       at java.lang.Thread.run(Thread.java:536)
      


      Regards,
      Didi

        • 1. Re: Clustering on HP-UX
          Bela Ban Master

          what's you cluster-service.xml ?

          • 2. Re: Clustering on HP-UX
            Dietmar Scheidl Newbie

            Hi,

            here is my ClusterPartition-part of my cluster-service.xml. It should look like the default one. The only thing I changed is the multicast address so I get a stand alone machine without changing my deployment descriptors.

             <mbean code="org.jboss.ha.framework.server.ClusterPartition"
             name="jboss:service=DefaultPartition">
            
             <!-- Name of the partition being built -->
             <attribute name="PartitionName">DefaultPartition</attribute>
             <!-- Determine if deadlock detection is enabled -->
             <attribute name="DeadlockDetection">False</attribute>
             <!-- The JavaGroups protocol configuration -->
             <attribute name="PartitionConfig">
             <Config>
             <!-- UDP: if you have a multihomed machine,
             set the bind_addr attribute to the appropriate NIC IP address -->
             <!-- UDP: On Windows machines, because of the media sense feature
             being broken with multicast (even after disabling media sense)
             set the loopback attribute to true -->
             <UDP mcast_addr="228.1.2.3" mcast_port="45567"
             ip_ttl="64" ip_mcast="true"
             mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
             ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
             loopback="false" />
             <PING timeout="2000" num_initial_members="3"
             up_thread="true" down_thread="true" />
             <MERGE2 min_interval="5000" max_interval="10000" />
             <FD shun="true" up_thread="true" down_thread="true" />
             <VERIFY_SUSPECT timeout="1500"
             up_thread="true" down_thread="true" />
             <pbcast.STABLE desired_avg_gossip="20000"
             up_thread="true" down_thread="true" />
             <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"
             up_thread="true" down_thread="true" />
             <UNICAST timeout="5000" window_size="100" min_threshold="10"
             down_thread="true" />
             <FRAG frag_size="8192"
             down_thread="true" up_thread="true" />
             <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
             shun="true" print_local_addr="true" />
             <pbcast.STATE_TRANSFER up_thread="true" down_thread="true" />
             </Config>
             </attribute>
             </mbean>
            


            Thanks,
            Didi

            • 3. Re: Clustering on HP-UX
              Dietmar Scheidl Newbie

              Don't know why but the forum lost some of the config-lines ...

               {!-- Name of the partition being built --}
               {attribute name="PartitionName"}DefaultPartition{/attribute}
               {!-- Determine if deadlock detection is enabled --}
               {attribute name="DeadlockDetection"}False{/attribute}
               {!-- The JavaGroups protocol configuration --}
               {attribute name="PartitionConfig"}
               {Config}
              


              I had to replace <> with {} to post the lines.



              • 4. Re: Clustering on HP-UX
                theone Newbie

                Check if multicasting is enabled.

                -one

                • 5. Re: Clustering on HP-UX
                  Dietmar Scheidl Newbie

                  phohpux1:/#ifconfig lan0
                  lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
                  inet 16.55.16.122 netmask fffffe00 broadcast 16.55.17.255

                  I would say multicast is enabled.

                  Didi

                  • 6. Re: Clustering on HP-UX
                    Bela Ban Master

                    Do you have a route (netstat -nr). There should be a 224.0.0.0 entry pointing to lan0

                    Bela

                    • 7. Re: Clustering on HP-UX
                      theone Newbie

                      try

                      route add -net "224.0.0.0" -netmask "240.0.0.0" m/c IP -dev tu0


                      or some flavour of it.

                      -one

                      • 8. Re: Clustering on HP-UX
                        Dietmar Scheidl Newbie

                        Hi,

                        sorry, that seems not to be the problem. Here is my routing table.

                        phohpux1:/tmp#netstat -nrv
                        IPv4 Routing tables:
                        Dest/Netmask Gateway Flags Refs Interface Pmtu
                        127.0.0.1/255.255.255.255 127.0.0.1 UH 0 lo0 4136
                        16.55.16.42/255.255.255.255 16.55.16.42 UH 0 lan0:1 4136
                        16.55.16.122/255.255.255.255 16.55.16.122 UH 0 lan0 4136
                        10.187.28.122/255.255.255.255 10.187.28.122 UH 0 lan2 4136
                        10.187.28.0/255.255.255.0 10.187.28.122 U 2 lan2 1500
                        16.55.16.0/255.255.254.0 16.55.16.122 U 3 lan0 1500
                        16.55.16.0/255.255.254.0 16.55.16.42 U 3 lan0:1 1500
                        224.0.0.0/240.0.0.0 16.55.16.122 U 0 lan0 1500
                        127.0.0.0/255.0.0.0 127.0.0.1 U 0 lo0 0
                        default/0.0.0.0 16.55.16.1 UG 0 lan0 0
                        
                        IPv6 Routing tables:
                        Destination/Prefix Gateway Flags Refs Interface Pmtu
                        ::1/128 ::1 UH 0 lo0 4136
                        phohpux1:/tmp#
                        


                        Didi

                        • 9. Re: Clustering on HP-UX
                          Dietmar Scheidl Newbie

                          Hi,

                          I think I found the problem a small test produces:

                          phohpux1:/tmp#/opt/java/bin/java -cp . TestUDP
                          /16.55.16.122
                          java.net.SocketException: Invalid argument
                           at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
                           at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.j)
                           at java.net.MulticastSocket.setInterface(MulticastSocket.java:418)
                           at TestUDP.main(TestUDP.java:23)
                          phohpux1:/tmp#
                          


                          import java.net.*;
                          
                          public class TestUDP
                          {
                           public static void main(String[] args)
                           {
                           try
                           {
                           InetAddress bind_addr = null;
                           InetAddress[] interfaces=InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress());
                           if(interfaces != null && interfaces.length > 0)
                           bind_addr=interfaces[0];
                          
                           if(bind_addr == null)
                           bind_addr=InetAddress.getLocalHost();
                          
                           System.out.println( bind_addr );
                          
                          
                           MulticastSocket mcast_sock=new MulticastSocket(45567);
                          
                           if(bind_addr != null)
                           mcast_sock.setInterface(bind_addr);
                          
                           InetAddress tmp_addr=InetAddress.getByName("228.1.2.3");
                           mcast_sock.joinGroup(tmp_addr);
                           mcast_sock.close();
                          
                           }
                           catch(Exception e)
                           {
                           e.printStackTrace();
                           }
                           }
                          }
                          


                          The example is a snippet of createSockets in UDP.java of JGroups. It seems that setInterfaces causes the problem. On my XP-box everything works without any Exception.

                          Didi


                          • 10. Re: Clustering on HP-UX
                            Dietmar Scheidl Newbie

                            What I forgot to post is how the story ended:

                            The problem seems to be my java version:
                            phohpux2:/opt/java1.4/bin#./java -version
                            java version "1.4.1.03"
                            Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.03-030630-19:37)
                            Java HotSpot(TM) Server VM (build 1.4.1 1.4.1.03-030701-03:26-IA64N IA64, mixed)

                            I upgraded to:
                            phohpux1:/opt/java1.4/bin#./java -version
                            java version "1.4.2.01"
                            Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.01-040128-03:14)
                            Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.01-040128-09:53-IA64N IA64, mixed)

                            This fixed the problem with MulticastSockets but created some new ones ... now the UnifiedClassLoader3 is not working correctly but thats an other story ... *g*

                            Downgrading does the job (thats how I got JBoss up and running):
                            phohpux1:/opt/java1.3/bin#./java -version
                            java version "1.3.1.09"
                            Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.09-030418-12:59)
                            Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.09-_18_apr_2003_15_19 IA64, mixed)

                            My problem is that my application relies on some features of Java 1.4 ... :-(

                            Didi