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?
I guess you need to take care of transaction database in your custom code:
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.
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
Can you use Trial Edition?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.