ERROR: Actions invariably access the repository. Doing so without a transaction is not recommended.

cancel
Showing results for 
Search instead for 
Did you mean: 
alfresco_lover
Active Member

ERROR: Actions invariably access the repository. Doing so without a transaction is not recommended.

Hi,

I am trying to call action in my java class:

callAction.PNG

but line 57 throws an ERROR:errorCallAction.PNG

 

Do you have any ideas how to resolve this problem ?  

Thanks

2 Replies
EddieMay
Alfresco Employee

Re: ERROR: Actions invariably access the repository. Doing so without a transaction is not recommen

Hi @alfresco_lover 

Do you not need to call the ServiceRegistry?

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
alfresco_lover
Active Member

Re: ERROR: Actions invariably access the repository. Doing so without a transaction is not recommen

hi  ,

 

I am using action and search services, which are then registrated in a bean. I think that is not a problem.