4 Replies Latest reply on Aug 18, 2003 2:58 PM by mainland

    RMI problem with JBoss3.2 but not with 3.04

    miquelsainco Newbie

      Hi,
      with Jboss 3.2.1 i have this exception when i try to access to a new remote method since i change to 3.2.1 from 3.0.4, but i don't have any problem with previos ones.
      With JBoss 3.0.4 all works fine. Could someone help me to understand how this is possible?

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.UnmarshalException: invalid method hash

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)

      at sun.rmi.transport.Transport$1.run(Transport.java:148)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

      at java.lang.Thread.run(Thread.java:536)

      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

      at com.saincotrafico.optimus.rmi.server.GetAreaImpl_Stub.getPepe(GetAreaImpl_Stub.java:513)

      at com.saincotrafico.optimus.client.gui.main.types.TEAreaUI.abrirVCambioEstrategia(TEAreaUI.java:371)

      at com.saincotrafico.optimus.client.gui.main.types.TEAreaUI.ejecutaAccion(TEAreaUI.java:161)

      at com.saincotrafico.optimus.client.gui.main.types.TElementoUI$1.run(TElementoUI.java:404)

      Caused by: java.rmi.UnmarshalException: invalid method hash

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:233)

      at sun.rmi.transport.Transport$1.run(Transport.java:148)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

      at java.lang.Thread.run(Thread.java:536)

      java.rmi.UnmarshalException: invalid method hash

      java.rmi.ConnectException: Connection refused to host: 223.254.254.196; nested exception is:
      java.net.ConnectException: Connection refused: connect

      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)

      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)

      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)

      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)

      at com.saincotrafico.optimus.rmi.server.OptimusSessionImpl_Stub.keepAlive(OptimusSessionImpl_Stub.java:126)

      at com.saincotrafico.optimus.client.gui.main.OptimusSessionKeepAlive.run(OptimusSessionKeepAlive.java:67)

      Caused by: java.net.ConnectException: Connection refused: connect

      at java.net.PlainSocketImpl.socketConnect(Native Method)

      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)

      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)

      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)

      at java.net.Socket.connect(Socket.java:426)

      at java.net.Socket.connect(Socket.java:376)

      at java.net.Socket.(Socket.java:291)

      at java.net.Socket.(Socket.java:119)

      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)

      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)

      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)

      ... 5 more