cancel
Showing results for 
Search instead for 
Did you mean: 

web script execution error: AlfrescoRuntimeException

agrosu
Champ in-the-making
Champ in-the-making
Hi,

I try to execute the web script  http://localhost:8080/alfresco/wcs/ui/doclist

and i have en error     org.alfresco.error.AlfrescoRuntimeException - Read-Write transaction started within read-only transaction

Web Script Status 500 - Internal Error  

The Web Script /alfresco/wcs/ui/doclist 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:   Wrapped Exception (with status template): Read-Write transaction started within read-only transaction
   
Exception:   org.alfresco.error.AlfrescoRuntimeException - Read-Write transaction started within read-only transaction
   
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:292)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   org.alfresco.repo.web.scripts.RepoStore$RepoScriptLoader$1.doWork(RepoStore.java:860)
   org.alfresco.repo.web.scripts.RepoStore$RepoScriptLoader$1.doWork(RepoStore.java:858)
   org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:437)
   org.alfresco.repo.web.scripts.RepoStore$RepoScriptLoader.getScript(RepoStore.java:856)
   org.alfresco.web.scripts.MultiScriptLoader.getScript(MultiScriptLoader.java:56)
   org.alfresco.repo.web.scripts.RepositoryScriptProcessor.findScript(RepositoryScriptProcessor.java:84)
   org.alfresco.web.scripts.AbstractWebScript.getExecuteScript(AbstractWebScript.java:285)
   org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:79)
   org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:260)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   java.lang.Thread.run(Thread.java:619)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Read-Write transaction started within read-only transaction
   
   org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:595)
   
Server:   Alfresco Enterprise v3.0.1 (303) schema 501
Time:   Apr 9, 2009 1:09:33 PM
   
Diagnostics:   Inspect Web Script (org/alfresco/portlets/doclist.get)

Do you have an idea of the cause ?
Thanks
2 REPLIES 2

luxoliver
Champ in-the-making
Champ in-the-making
Hy,

Maybe it's because you didn't fill the argument f={filter?}, p={path?} and q={query?}.
In fact we have to fill the argument f and p, q is optionnal.
The filter is a number number betwen 0 and 4.
The path is a nodeRef.

But in fact if you didn't fill any argument the web script had to execute with succes.
Did you execute well other web script ?

agrosu
Champ in-the-making
Champ in-the-making
Thank you, Lux
The problem came  from the licence of Alfresco.