03-09-2010 10:58 AM
testDoc = space.childByNamePath("test_doc.pdf");
if(testDoc!=null)
{
var newNode;
for(i=0;i<500;i++)
{
newNode = space.createNode("test_" + i.toString() + ".pdf","cm:content");
newNode.content = testDoc.content;
newNode.mimetype =testDoc.mimetype;
newNode.properties.title=newNode.name;
newNode.save();
}
}
Running it on the space creates the following error message:Please correct the errors below then click OK.
* A system error happened during the operation: 02090638 Failed to execute script 'workspace://SpacesStore/59e69e84-009d-4e78-b7c8-caa5280bfc4e': could not insert: [org.alfresco.repo.domain.hibernate.ChildAssocImpl]; nested exception is org.hibernate.exception.LockAcquisitionException: could not insert: [org.alfresco.repo.domain.hibernate.ChildAssocImpl]
Please correct the errors below then click OK.
* This wizard has been already been completed, please re-launch it to continue.
17:45:27,315 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50886.715ms
17:45:27,430 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:46:18,320 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 101263.414ms
17:46:18,320 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50887.766ms
17:46:18,448 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:46:18,744 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:47:09,341 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50594.91ms
17:47:09,341 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50890.727ms
17:47:09,455 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:47:09,639 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:48:00,348 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50889.8ms
17:48:00,348 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50706.74ms
17:48:00,634 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:48:00,651 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:48:51,368 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50714.203ms
17:48:51,368 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50731.688ms
17:48:51,685 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:48:52,141 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:49:42,371 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50682.613ms
17:49:42,933 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:50:33,378 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 50442.676ms
17:50:33,378 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Time to execute script: 101233.914ms
17:50:33,624 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
17:50:34,104 User:jsauer DEBUG [repo.jscript.RhinoScriptProcessor] Imports resolved, adding resource '_root
03-10-2010 03:26 AM
03-10-2010 03:31 AM
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.