cancel
Showing results for 
Search instead for 
Did you mean: 

Recuperar nodos

pablo_zapico
Champ in-the-making
Champ in-the-making
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 –>
3 REPLIES 3

pablo_zapico
Champ in-the-making
Champ in-the-making
Encontre el error me faltaba por añadir la libreria jackrabbit-jcr-rmi-1.0.jar en el lib del alfresco, para el jcr…

ane_diaz
Champ in-the-making
Champ in-the-making
Hola!
Yo tengo el mismo problema al llamar a "rootNode.getNodes()"
Donde has descargado la libreria "jackrabbit-jcr-rmi-1.0.jar" ?

Gracias

dacedos
Champ in-the-making
Champ in-the-making
hola ane,

esa libreria la puedes bajar de aqui:

http://archive.apache.org/dist/jackrabbit/binaries/jackrabbit-jcr-rmi-1.0.1.jar

en el directorio padre puedes encontrar otras versiones

http://archive.apache.org/dist/jackrabbit/binaries/

¿como conseguis conectar por JCR? me estoy volviendo loco con ello.

gracias