10 Replies Latest reply on Jun 22, 2004 1:52 AM by robby_us

    HARMI Exception

    robby_us Newbie

      Hi folks,
      We are using JBoss 3.2.2 with Java1.4 on HP-UX 11.11 and have 5 servers running in cluster.We are getting the following error on startup:
      ========================================
      15:29:06,154 ERROR [XSAM_Partition_UAT_1] setState failed
      java.io.InvalidClassException: org.jboss.ha.framework.interfaces.HARMIServer; local class name incompatible with stream class name "org.jboss.ha.framework.server.HARMIServerImpl_Stub"
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:467)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.util.HashMap.readObject(HashMap.java:986)
      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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.util.HashMap.readObject(HashMap.java:986)
      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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.util.HashMap.readObject(HashMap.java:986)
      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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at org.jboss.ha.framework.server.HAPartitionImpl.objectFromByteBuffer(HAPartitionImpl.java:135)
      at org.jboss.ha.framework.server.HAPartitionImpl.setState(HAPartitionImpl.java:367)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.passUp(MessageDispatcher.java:617)
      at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:336)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:716)
      at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$200(MessageDispatcher.java:562)
      at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:678)
      at java.lang.Thread.run(Thread.java:536)
      15:29:06,165 ERROR [HANamingService] Starting failed
      java.rmi.StubNotFoundException: Stub class missing constructor: org.jboss.ha.framework.server.HARMIServerImpl_Stub; nested exception is:
      java.lang.NoSuchMethodException: org.jboss.ha.framework.interfaces.HARMIServer.(java.rmi.server.RemoteRef)
      at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:101)
      at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:55)
      at sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:179)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:142)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:206)
      at org.jboss.ha.framework.server.HARMIServerImpl.(HARMIServerImpl.java:151)
      at org.jboss.ha.framework.server.HARMIServerImpl.(HARMIServerImpl.java:88)
      at org.jboss.ha.jndi.HANamingService.startService(HANamingService.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor8.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:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at org.jboss.system.ServiceController.start(ServiceController.java:411)
      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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.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:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.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:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor8.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:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.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:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.lang.NoSuchMethodException: org.jboss.ha.framework.interfaces.HARMIServer.(java.rmi.server.RemoteRef)
      at java.lang.Class.getConstructor0(Class.java:1790)
      at java.lang.Class.getConstructor(Class.java:1002)
      at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:94)
      ... 75 more
      15:29:06,174 WARN [ServiceController] Problem starting service jboss:service=HAJNDI
      java.rmi.StubNotFoundException: Stub class missing constructor: org.jboss.ha.framework.server.HARMIServerImpl_Stub; nested exception is:
      java.lang.NoSuchMethodException: org.jboss.ha.framework.interfaces.HARMIServer.(java.rmi.server.RemoteRef)
      at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:101)
      at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:55)
      at sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:179)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:142)
      at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
      at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:206)
      at org.jboss.ha.framework.server.HARMIServerImpl.(HARMIServerImpl.java:151)
      at org.jboss.ha.framework.server.HARMIServerImpl.(HARMIServerImpl.java:88)
      at org.jboss.ha.jndi.HANamingService.startService(HANamingService.java:237)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor8.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:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at org.jboss.system.ServiceController.start(ServiceController.java:411)
      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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.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:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.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:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor8.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:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.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:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.lang.NoSuchMethodException: org.jboss.ha.framework.interfaces.HARMIServer.(java.rmi.server.RemoteRef)
      at java.lang.Class.getConstructor0(Class.java:1790)
      at java.lang.Class.getConstructor(Class.java:1002)
      at sun.rmi.server.RemoteProxy.getStub(RemoteProxy.java:94)
      ... 75 more
      =============================================
      Can anyone tell us why this happens and what is the solution for this.

      Thanks
      Robby

        • 1. Re: HARMI Exception
          Sacha Labourey Master

          Make sure you are using the good client side JAR i.e. if you are using JBoss 3.2.3 on the server, use the 3.2.3 client side JAR, not the 3.2.2, etc.

          Cheers,


          sacha

          • 2. Re: HARMI Exception
            robby_us Newbie

            Hi Sacha,
            Thanks for the solution.But we are using jboss3.2.2 and we are getting this error while starting the server itself.
            Kindly let us know what is the cause and suggested solution for the same

            Thanks
            Robby

            • 3. Re: HARMI Exception
              Sacha Labourey Master

              Then make sure ALL JBoss servers that you are starting as part of the cluster are running the exact same version of JBoss. The exception message simply states that it is not the case.

              sacha

              • 4. Re: HARMI Exception
                robby_us Newbie

                Hi,
                I have checked the versions on all the servers and the version running on all the servers are same i.e 3.2.2(200310182216) .Kindly let us know abt the cause and solution for the issue.

                Thanks
                Robby

                • 5. Re: HARMI Exception
                  robby_us Newbie

                  Hi All,
                  Kindly let me know the cause and solution for the issue, as this is happening quite frequently, which is leading to lot server restarts.

                  Regards
                  Robby

                  • 6. Re: HARMI Exception
                    robby_us Newbie

                    Hi All,
                    Kindly let me know the cause and solution for the issue, as this is happening quite frequently, which is leading to lot server restarts.

                    Regards
                    Robby

                    • 7. Re: HARMI Exception
                      robby_us Newbie

                      Hi,
                      We have couple of servers in production which are running under UNIX environment and are in cluster.We have a development and UAT servers which is on Windows System.All the servers are on the same subnet.There is a possibility that the jboss though has the same versions on all the three eniviroment may not have certain updated patches .Inorder to isolate the problem/version mismatch we have changed the multicast IP Address and the partition name so that they are different in all the three environment i.e Production,Development and UAT.Still we are getting the same HARMI Exception.Can anyone tell us how to isolate the mismatch versions of JBOSS.The versions on production environment are the same.

                      • 8. Re: HARMI Exception
                        shantharam Newbie


                        If your production and development boxes are using different partition then you should not be having conflicts between them.

                        I suspect Multicasting might be the issue, contact your network administrator to check if they are blocking any multicast addresses.

                        Also on your windows box, disable Media Sense feature, the steps should be availalble in www.microsft.com.

                        • 9. Re: HARMI Exception
                          shantharam Newbie


                          seems like this issue is resolved in Jboss 3.2.3RC1, try upgrade Jboss if possible,

                          bug NO: 832561

                          • 10. Re: HARMI Exception
                            robby_us Newbie

                            The system is in production and upgrading to newer version of Jboss would entail changes in our code and UAT by the client which makes it costly with regard to time and money for the client.Is it possible to have the fix on JBoss3.2.2 itself.