cancel
Showing results for 
Search instead for 
Did you mean: 

Regeneration lock error

paulossilva
Champ in-the-making
Champ in-the-making
Hi,

I have came across with some strange behavior in Alfresco 2.1.0 Community. I had to change a specific template which is attached to only one web form generating just one html file. Done so, I asked the respective content contributor to regenerate the rendition related to that template/web form. Regeneration was fine and the new html file got locked by that user. As we know, changes were made directly to staging.

So far, so good. But now, when he tries to edit the xml file to update its contents, an error message appears when saving indicating that he can't access the corresponding html file because it is locked by another user, who comes to be himself!!!

The error message is follows:
Error generating rendition using lei.ftl: You do not have access to the item at path intranet–mlinha–preview:/www/avm_webapps/ROOT/legislacao/leis.html it is currently locked by another user.

I deleted the html file (as a content manager) and still same thing. Worst, I deleted the xml file and started over filling a new web form with the exact name it had and the same problem happens!!!

Here goes the stack trace:

12:00:57,184 ERROR [org.alfresco.web.ui.common.Utils] Error generating rendition using lei.ftl: You do not have access to the item at path intranet–mlinha–preview:/www/avm_webapps/ROOT/legislacao/leis.html it is currently locked by another user.
org.alfresco.service.cmr.avm.locking.AVMLockingException: You do not have access to the item at path intranet–mlinha–preview:/www/avm_webapps/ROOT/legislacao/leis.html it is currently locked by another user.
   at org.alfresco.repo.avm.AVMLockingAwareService.grabLock(AVMLockingAwareService.java:874)
   at org.alfresco.repo.avm.AVMLockingAwareService.createFile(AVMLockingAwareService.java:129)
   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:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   at org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.invoke(AVMSnapShotTriggeredIndexingMethodInterceptor.java:154)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:92)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   at $Proxy5.createFile(Unknown Source)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:261)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.saveContent(CreateWebContentWizard.java:550)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.next(CreateWebContentWizard.java:235)
   at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:489)
   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:585)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   at java.lang.Thread.run(Thread.java:595)

Is it some kind of a bug or am I doing something wrong?

Thanks for any clue.
1 REPLY 1

kvc
Champ in-the-making
Champ in-the-making
Hi -

This was a bug in 2.1 Community.  This was fixed in 2.1 Enterprise.  That fix is now available in the newly released 2.9 Community, along with a ton of other fixes and enhancements.  Try this new release and you should be fine.


Kevin