cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating session from the same machine

romain_wilbert
Champ in-the-making
Champ in-the-making
I get the following error wihle trying to create a cmis session (with openCMIS) from localhost to localhost ONLY (ok when I call Alfresco from another machine).
(I am in multi-tenancy mode)

11:43:47,583 Tenant:client1 User:admin ERROR [repo.cmis.ws] org.alfresco.error.AlfrescoRuntimeException: 09290016 Read-Write transaction started within read-only transaction
org.alfresco.error.AlfrescoRuntimeException: 09290016 Read-Write transaction started within read-only transaction
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:297)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:232)
   at org.alfresco.cmis.mapping.CMISServicesImpl$1.doWork(CMISServicesImpl.java:453)
   at org.alfresco.cmis.mapping.CMISServicesImpl$1.doWork(CMISServicesImpl.java:450)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
   at org.alfresco.cmis.mapping.CMISServicesImpl.getDefaultRootNodeRef(CMISServicesImpl.java:449)
   at org.alfresco.repo.cmis.ws.DMRepositoryServicePort.getRepositoryInfo(DMRepositoryServicePort.java:466)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:58)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
   at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy132.getRepositoryInfo(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:166)
   at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)
   at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
   at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
   at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
   at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
   at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:95)
   at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
   at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
   at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
   at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:368)
   at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:183)
   at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:163)
   at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:141)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)
2 REPLIES 2

fmui
Champ in-the-making
Champ in-the-making
Hi,

That looks like a bug. Could you please create an issue in JIRA?!


Thanks,

Florian

janv
Employee
Employee
FYI, I have raised this as http://issues.alfresco.com/jira/browse/ALF-5492

Here's the patch for reference:


svn diff projects/repository/source/java/org/alfresco/cmis/mapping/CMISServicesImpl.java
Index: projects/repository/source/java/org/alfresco/cmis/mapping/CMISServicesImpl.java
===================================================================
— projects/repository/source/java/org/alfresco/cmis/mapping/CMISServicesImpl.java   (revision 23439)
+++ projects/repository/source/java/org/alfresco/cmis/mapping/CMISServicesImpl.java   (working copy)
@@ -471,7 +471,7 @@
                             }
                             return rootNodes.get(0);
                         };
-                    });
+                    }, true, false);
                 }
             }, AuthenticationUtil.getSystemUserName());
Regards,
Jan