cancel
Showing results for 
Search instead for 
Did you mean: 

error 'java.rmi.UnmarshalException: invalid method hash

naveenkumar
Champ in-the-making
Champ in-the-making
Hi,

I am trying to retrive content using JCR.. but getting following error… i tried "jackrabbit-jcr-rmi-1.1 file as well as with next version".
but still same error..

Please help..



org.apache.jackrabbit.rmi.client.RemoteRepositoryException: RemoteException occurred in server thread; nested exception is:
   java.rmi.UnmarshalException: invalid method hash: RemoteException occurred in server thread; nested exception is:
   java.rmi.UnmarshalException: invalid method hash
   at org.apache.jackrabbit.rmi.client.ClientNode.getNodes(ClientNode.java:239)
   at Phones4U.directprogram.cms.CMSSecurityHelper.Test(CMSSecurityHelper.java:79)
   at Phones4U.directprogram.cms.CMSSecurityHelper.main(CMSSecurityHelper.java:51)
Caused by: 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:325)
   at sun.rmi.transport.Transport$1.run(Transport.java:153)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
   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:595)
   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:126)
   at org.apache.jackrabbit.rmi.server.ServerNode_Stub.getNodes(Unknown Source)
   at org.apache.jackrabbit.rmi.client.ClientNode.getNodes(ClientNode.java:237)
   … 2 more
Caused by: java.rmi.UnmarshalException: invalid method hash
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:266)
   at sun.rmi.transport.Transport$1.run(Transport.java:153)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
   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:595)
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:325)
   at sun.rmi.transport.Transport$1.run(Transport.java:153)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
   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:595)
   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:126)
   at org.apache.jackrabbit.rmi.server.ServerNode_Stub.getNodes(Unknown Source)
   at org.apache.jackrabbit.rmi.client.ClientNode.getNodes(ClientNode.java:237)
   at Phones4U.directprogram.cms.CMSSecurityHelper.Test(CMSSecurityHelper.java:79)
   at Phones4U.directprogram.cms.CMSSecurityHelper.main(CMSSecurityHelper.java:51)
Caused by: java.rmi.UnmarshalException: invalid method hash
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:266)
   at sun.rmi.transport.Transport$1.run(Transport.java:153)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
   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:595)
Exception at endorg.apache.jackrabbit.rmi.client.RemoteRepositoryException: RemoteException occurred in server thread; nested exception is:
   java.rmi.UnmarshalException: invalid method hash: RemoteException occurred in server thread; nested exception is:
   java.rmi.UnmarshalException: invalid method hash
1 REPLY 1

finner
Champ in-the-making
Champ in-the-making
Hi naveenkumar.
I had this problem recently. The error was caused by having the wrong jar in my classpath.

Have a look towards the bottom of this post
http://forums.alfresco.com/viewtopic.php?t=5942&highlight=

Finner