incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi goel <Ruchi.G...@Sun.COM>
Subject help needed for getting folder from repository
Date Mon, 12 Mar 2007 12:00:13 GMT
Hi,
  Please find attached jcrmapping file . I have created folder under a 
folder and then trying to read it back , by passing the name of parent 
folder. I am accessing repository via RMI.
I get the following error:

*Exception in thread "main" 
org.apache.portals.graffito.jcr.exception.RepositoryException: 
Impossible to get the object at /folder5/collection-element; nested 
exception is javax.jcr.RepositoryException: failed to resolve path 
graffito:classname relative to /folder5/collection-element: graffito
javax.jcr.RepositoryException: failed to resolve path graffito:classname 
relative to /folder5/collection-element: graffito
        at 
org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:136)
        at 
org.apache.jackrabbit.rmi.server.ServerNode.hasProperty(ServerNode.java:170)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
        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.hasProperty(Unknown Source)
        at 
org.apache.jackrabbit.rmi.client.ClientNode.hasProperty(ClientNode.java:320)
        at 
org.apache.portals.graffito.jcr.persistence.objectconverter.impl.ObjectConverterImpl.getObject(ObjectConverterImpl.java:273)
        at 
org.apache.portals.graffito.jcr.persistence.collectionconverter.impl.NTCollectionConverterImpl.doGetCollection(NTCollectionConverterImpl.java:207)
        at 
org.apache.portals.graffito.jcr.persistence.collectionconverter.impl.AbstractCollectionConverterImpl.getCollection(AbstractCollectionConverterImpl.java:136)
        at 
org.apache.portals.graffito.jcr.persistence.objectconverter.impl.ObjectConverterImpl.retrieveCollectionField(ObjectConverterImpl.java:622)
        at 
org.apache.portals.graffito.jcr.persistence.objectconverter.impl.ObjectConverterImpl.retrieveCollectionFields(ObjectConverterImpl.java:604)
        at 
org.apache.portals.graffito.jcr.persistence.objectconverter.impl.ObjectConverterImpl.getObject(ObjectConverterImpl.java:347)
        at 
org.apache.portals.graffito.jcr.persistence.impl.PersistenceManagerImpl.getObject(PersistenceManagerImpl.java:240)
        at com.sun.portal.cms.model.core.Folder.getFolder(Folder.java:81)
        at com.sun.portal.cms.test.TestFolder.findFolder(TestFolder.java:46)
        at com.sun.portal.cms.test.TestFolder.main(TestFolder.java:60)
*


Help appreciated.
Thanks,
Ruchi

Mime
View raw message