11-03-2006 10:15 AM
private void publishNode(Session localSession, Session remoteSession, String path, Node node) {
try {
String nodePath = node.getPath();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
localSession.exportSystemView(nodePath, outputStream, false, false);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
remoteSession.importXML("/epoline/website/content", inputStream,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);
} catch (RepositoryException e) {
reportError("Generic repository exception", e, null);
} catch (IOException e) {
reportError("Export from local or import to remote repository failed.", e, null);
}
}javax.jcr.nodetype.NoSuchNodeTypeException: {http://www.alfresco.org/model/content/1.0}content
at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:122)
at org.apache.jackrabbit.rmi.server.ServerSession.importXML(ServerSession.java:243)
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: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.ServerSession_Stub.importXML(Unknown Source)
at org.apache.jackrabbit.rmi.client.ClientSession.importXML(ClientSession.java:260)
at org.epo.cms.alfresco.executer.PublishActionExecuter.publishNode(PublishActionExecuter.java:169)
at org.epo.cms.alfresco.executer.PublishActionExecuter.executeImpl(PublishActionExecuter.java:78)11-03-2006 10:34 AM
11-03-2006 10:50 AM
Obviously, I would prefer if you were importing from Jackrabbit to Alfresco.
Although, JSR-170 specifies a standard API, it does enforce a standard model. And that's the problem here.
11-03-2006 11:02 AM
11-04-2006 02:11 AM
11-06-2006 06:29 AM
11-06-2006 08:09 AM
It's possible to switch off the 'author' capability, revealing a vanilla storage and retrieval repository, however, our own benchmarking indicates this is not necessary. Alfresco will suit your published repository even with all the extra functionality.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.