cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with content rules for transform files

mhard666
Champ in-the-making
Champ in-the-making
Dear all

I have created a content rule for my home space to copy and transform a incoming file into other file type (word-doc to pdf) and space. I get this failure:

Bitte korrigieren Sie die unten genannten Fehler und klicken sie auf OK.
Die Operation Transaction didn't commit: Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnAddAs pectPolicy.onAddAspect(org.alfresco.service.cmr.re pository.NodeRef,org.alfresco.service.namespace.QN ame) in transaction 24864cb2-0d2e-11dc-b92e-97f8e08b513f hat einen Systemfehler verursacht.


It's the same with transform images or other file types.
View Details -> Run Action -> Transform and copy image/content works fine.
What's the problem? What i must change to run alfresco without this Problem?
It's an Alfresco 2.0 on Debian 4 Etch (new installation)

Thanks.

Regards mhard666
3 REPLIES 3

derek
Star Contributor
Star Contributor
Hi,

What are the details of the rule?  Was there any more to the failure message or was that all?

Regards

mhard666
Champ in-the-making
Champ in-the-making
hi derek,

thats the complete failure message in the frontend. I have append the logfile.

the rules was like:

condition: specific value in its name OR specific mime type
value: *.txt OR plain text or other mime type like Word doc
action: copy content to same/other Space an transform to PDF or RTF or DOC
type: inbound

sample:
Summary
The information you entered is shown below.
Rule Type:   inbound
Name:   text
Description:   text
Apply rule to sub spaces:   No
Run rule in background:   No
Disable rule:   No
Conditions:   Item has a mimetype of 'Plain Text'
Actions:   Copies content to 'testspace' and transforms to 'Microsoft Word'

the alfresco.log for this rule (from alfresco start to upload a plain tex file)
17:10:19,435 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
17:10:43,467 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/alfresco/alf_data
17:10:44,709 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Sucht nach anwendbaren Patches
17:10:44,781 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Es sind keine Patches erforderlich
17:10:44,790 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
17:10:46,233 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_10-b03; maximum heap size 506,313MB
17:10:46,234 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38
17:13:20,252 ERROR [org.alfresco.util.transaction.SpringAwareUserTransaction] Transaction didn't commit
org.alfresco.error.AlfrescoRuntimeException: Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnAddAspectPolicy.onAddAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) in transaction d3a06198-0f91-11dc-94d4-b392c7b49135
   at org.alfresco.repo.policy.TransactionBehaviourQueue.execute(TransactionBehaviourQueue.java:201)
   at org.alfresco.repo.policy.TransactionBehaviourQueue.queue(TransactionBehaviourQueue.java:97)
   at org.alfresco.repo.policy.TransactionInvocationHandlerFactory$TransactionHandler.invoke(TransactionInvocationHandlerFactory.java:151)
   at $Proxy35.onAddAspect(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)

Caused by: org.springframework.dao.DataIntegrityViolationException: Non-root node has no primary parent:
   child: workspace://SpacesStore/d918122d-0f91-11dc-94d4-b392c7b49135
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getPrimaryParentAssoc(HibernateNodeDaoServiceImpl.java:942)
   at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)

17:13:20,362 ERROR [org.alfresco.web.ui.common.Utils] Die Operation Transaction didn't commit: Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnAddAspectPolicy.onAddAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) in transaction d3a06198-0f91-11dc-94d4-b392c7b49135 hat einen Systemfehler verursacht.
javax.transaction.RollbackException: Transaction didn't commit: Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnAddAspectPolicy.onAddAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) in transaction d3a06198-0f91-11dc-94d4-b392c7b49135
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:412)
   at org.alfresco.web.bean.dialog.BaseDialogBean.finish(BaseDialogBean.java:118)
   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)

Caused by: org.alfresco.error.AlfrescoRuntimeException: Failed to execute transaction-level behaviour public abstract void org.alfresco.repo.node.NodeServicePolicies$OnAddAspectPolicy.onAddAspect(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName) in transaction d3a06198-0f91-11dc-94d4-b392c7b49135
   at org.alfresco.repo.policy.TransactionBehaviourQueue.execute(TransactionBehaviourQueue.java:201)
   at org.alfresco.repo.policy.TransactionBehaviourQueue.queue(TransactionBehaviourQueue.java:97)
   at org.alfresco.repo.policy.TransactionInvocationHandlerFactory$TransactionHandler.invoke(TransactionInvocationHandlerFactory.java:151)
   at $Proxy35.onAddAspect(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Caused by: org.springframework.dao.DataIntegrityViolationException: Non-root node has no primary parent:
   child: workspace://SpacesStore/d918122d-0f91-11dc-94d4-b392c7b49135
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.getPrimaryParentAssoc(HibernateNodeDaoServiceImpl.java:942)
   at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)

derek
Star Contributor
Star Contributor
We fixed that bug in 1.4 Enterprise and 2.0.1 Enterprise.  It is in the current HEAD code, if you want to test it.

Regards