AnsweredAssumed Answered

Recuperar nodos

Question asked by pablo.zapico on Nov 3, 2009
Latest reply on Feb 9, 2010 by dacedos
Me da el siguiente error al intentar recuperar los nodos de un espacio


creating local adapter for remotereference [ServerRepository_Stub[UnicastRef [liveRef: [endpoint:[10.228.21.132:2316](remote),objID:[-442f50f:124b9ca9ea5:-7f93, 8]]]]]
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 org.alfresco.sample.FirstJCRClient.pr(FirstJCRClient.java:582)
   at org.alfresco.sample.FirstJCRClient.main(FirstJCRClient.java:87)
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:466)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
   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:466)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
   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:466)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
   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 org.alfresco.sample.FirstJCRClient.pr(FirstJCRClient.java:582)
   at org.alfresco.sample.FirstJCRClient.main(FirstJCRClient.java:87)
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:466)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
   at java.lang.Thread.run(Thread.java:595)



El codigo que utilizo para recuperar es:


Node companyHome = rootNode.getNode(nodoGeneral);
NodeIterator nIt = companyHome .getNodes(); <!– En esta linea peta –>

Outcomes