Invalid method Hash
Hi,
I'm writing an application which has an RMI-server running on AIX and the client on WinXP. At the moment it is still a very simple app with just 2 remote calls. I am now facing a very wierd problem with those calls. Invoking the first one allways works but second allways throws following exception:
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:309)
at sun.rmi.transport.Transport$1.run(Transport.java:163)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at sun.rmi.transport.Transport.serviceCall(Transport.java)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:834)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:908)
at java.lang.Thread.run(Thread.java:568)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at com.ing.scfm.calypso.utilities.configcreator.rmi.RMIServer_Stub.doIt(Unknown Source)
at com.ing.scfm.calypso.utilities.configcreator.ConfigCreator.publish(ConfigCreator.java:1078)
I do mean that the call itself fails, the remote method is never actually invoked. I've tried changing the parameters, renaming the method but it keeps giving this error.
So, please help because I'm out of ideas.
Some code that might help:publicvoid doIt()throws RemoteException
{
log.info("Doing it");//never reaches here
}
RMIServer r =new RMIServer();
Naming.rebind("//localhost:1222/ConfigCreator", r);
...
r.doIt();//throw the exception
tx a lot!
Stijn

