cancel
Showing results for 
Search instead for 
Did you mean: 

OnCopyNode Event problem

eugeneburtsev
Champ in-the-making
Champ in-the-making
Hi,
I implement interface CopyServicePolicies.OnCopyNodePolicy. When I try to copy document, document was copied successfilly, but size of copy is 0 and when I try to open it I recieve the error message:

The node's content is missing:
   node: workspace://SpacesStore/ea5ad157-d489-4e94-84aa-7d7f3531d8dd
   reader: null 
Please contact your system administrator.
My code near:
Binding behavior:

this.policyComponent.bindClassBehaviour(QName.createQName(
      NamespaceService.ALFRESCO_URI, "onCopyNode"),
      ContentModel.TYPE_CONTENT,
      new JavaBehaviour(this, "onCopyNode"));

Handler:

public void onCopyNode(QName classRef, NodeRef sourceNodeRef,
      StoreRef destinationStoreRef, boolean copyToNewNode,
      PolicyScope copyDetails) {
   log.debug("onCopyNode()");
   log.debug("copyToNewNode = " + copyToNewNode);
}
1 REPLY 1

eugeneburtsev
Champ in-the-making
Champ in-the-making
I research this issue. I am determined that this behavior occur, even if the program is empty.
Can anybody say me about reasons of this behavior?