Alfresco Community - Read only mode

cancel
Showing results for 
Search instead for 
Did you mean: 
sanjaybandhniya
Intermediate

Alfresco Community - Read only mode

I am using alfresco community v6.2.

I have create job, that job have logic to call external webservice.

In middle of the job, it is giving below error.

 

 org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.transaction.ReadOnlyServerException: 01180072 Access Denied.  The system is currently in read-only mode.]

Any idea why this is happening?

Thanks & Regards,
Sanjay
4 Replies
angelborroy
Alfresco Employee

Re: Alfresco Community - Read only mode

I guess you need to take care of transaction database in your custom code:

https://github.com/Alfresco/alfresco-community-repo/blob/14.111/repository/src/main/java/org/alfresc...

Hyland Developer Evangelist
sanjaybandhniya
Intermediate

Re: Alfresco Community - Read only mode

You mean I need to handle usertransaction?

Same Code is working fine in webscript but it is giving above error when I am running from job.

Thanks & Regards,
Sanjay
upforsin
Senior Member

Re: Alfresco Community - Read only mode

Hi @sanjaybandhniya 

I suppose you injected lower-case services into your job. Try to chnage them in the upper-case (i.e. "nodeService" -> "NodeService").

 

I had the same issue, from the nodeService I was getting

Access Denied.  The system is currently in read-only mode.

and from the contentService I was getting 

Transaction must be active and synchronization is required.

 after changing them to the NodeService and ContentService the error was gone.

 

Regards,

howkymike

unibravo
Active Member II

Re: Alfresco Community - Read only mode

Can you use Trial Edition?