AnsweredAssumed Answered

wcservice vs service web scripts

Question asked by smcardle on Nov 4, 2012
Latest reply on Nov 26, 2012 by smcardle
Hi All

I have a 4.2.b installation and there seems to be an issue with the calling of web scripts when using wcservice in the URL

For instance calling
http://localhost:8080/alfresco/wcservice/AdminHome

Results in the following error page


The Web Script /alfresco/wcservice/AdminHome has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   100544940 Read-Write transaction started within read-only transaction
   
Exception:   org.alfresco.error.AlfrescoRuntimeException - 100544940 Read-Write transaction started within read-only transaction
   
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:360)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304)
   org.alfresco.web.bean.repository.User.getUserPreferencesRef(User.java:220)
   org.alfresco.web.bean.repository.User.getPreferences(User.java:188)
   org.alfresco.web.bean.repository.PreferencesService.getPreferences(PreferencesService.java:55)
….

Where as calling

http://localhost:8080/alfresco/service/AdminHome

Produces the correct page…

Has something changed in 4.2 ?

if not, can anybody explain why I am getting the 500 error using wcservice ?

Regards

Steve

Outcomes