AnsweredAssumed Answered

500 Error running webscripts

Question asked by lakshya on Jul 22, 2009
Latest reply on Jul 23, 2009 by lakshya
Hello,
I was running my webscripts (/alfresco/service/sample/upload) successfully till y'day.
Suddenly, all wenscripts in <tomcat_home>\webapps\alfresco\WEB-INF\classes\alfresco\webscripts\org\alfresco\test are giving error

I am getting
                     The Web Script /alfresco/service/sample/upload has responded with a status of 500 - Internal Error.
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$RepoTemplateLoader$1.doWork(RepoStore.java:703) org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:585) org.alfresco.repo.web.scripts.RepoStore$RepoTemplateLoader.findTemplateSource(RepoStore.java:699) freemarker.cache.MultiTemplateLoader.findTemplateSource(MultiTemplateLoader.java:111) freemarker.cache.TemplateCache.acquireTemplateSource(TemplateCache.java:600) freemarker.cache.TemplateCache.findTemplateSource(TemplateCache.java:590) freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:347) freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235) freemarker.template.Configuration.getTemplate(Configuration.java:487) freemarker.template.Configuration.getTemplate(Configuration.java:452) org.alfresco.repo.web.scripts.RepositoryTemplateProcessor.hasTemplate(RepositoryTemplateProcessor.java:132) org.alfresco.web.scripts.AbstractWebScript.getScriptStatusTemplate(AbstractWebScript.java:683) org.alfresco.web.scripts.AbstractWebScript.getStatusTemplate(AbstractWebScript.java:639) org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:602) org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:165) org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:311) 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:360) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:382) org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:264) 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.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:102) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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:595)

I tried after deleting work folder and setting index.recovery.mode=FULL as well.

I am using Alfresco-Enterprise-3.0 trial version. Everything else in the application is working fine.
Is it the issue of License?????

Outcomes