Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12007

Node locked error after creating a content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0
    • None
    • None
    • None
    • 4.8.0 RC1

      Not reproductible all time...

      I create a new page with a content.
      The content is opened in edition
      I have the following error.
      Note that content's title is empty, it should not

      Cannot add lock token: lock already held by other session. (lock held by node /ametys:root/ametys-internal:sites/31/78/intranet/ametys-internal:contents/38/2c/formulaire-article)
      javax.jcr.lock.LockException: Cannot add lock token: lock already held by other session. (lock held by node /ametys:root/ametys-internal:sites/31/78/intranet/ametys-internal:contents/38/2c/formulaire-article)
          at org.apache.jackrabbit.core.lock.LockInfo.throwLockException(LockInfo.java:269)
          at org.apache.jackrabbit.core.lock.LockManagerImpl.addLockToken(LockManagerImpl.java:766)
          at org.apache.jackrabbit.core.lock.XALockManager.addLockToken(XALockManager.java:218)
          at org.apache.jackrabbit.core.lock.SessionLockManager.addLockToken(SessionLockManager.java:95)
          at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData._checkLock(JCRRepositoryData.java:938)
          at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.addRepositoryData(JCRRepositoryData.java:859)
          at org.ametys.plugins.repository.data.repositorydata.ModifiableRepositoryData.addRepositoryData(ModifiableRepositoryData.java:49)
          at org.ametys.plugins.repository.data.type.RepositoryModelItemGroupType.add(RepositoryModelItemGroupType.java:80)
          at org.ametys.plugins.repository.data.holder.impl.DefaultModifiableModelLessDataHolder._getComposite(DefaultModifiableModelLessDataHolder.java:153)
          at org.ametys.plugins.repository.data.holder.impl.DefaultModifiableModelLessDataHolder.getComposite(DefaultModifiableModelLessDataHolder.java:115)
          at org.ametys.cms.repository.ModifiableContentHelper.getCommentsDataHolder(ModifiableContentHelper.java:317)
          at org.ametys.web.repository.content.jcr.ModifiableDefaultWebContent.getComments(ModifiableDefaultWebContent.java:347)
          at org.ametys.cms.content.ContentSaxer.saxContentComments(ContentSaxer.java:602)
          at org.ametys.cms.content.ContentSaxer.saxBody(ContentSaxer.java:186)
          at org.ametys.web.content.ContentSaxer.saxBody(ContentSaxer.java:57)
          at org.ametys.cms.content.ContentSaxer.saxContent(ContentSaxer.java:145)
          at org.ametys.cms.content.ContentGenerator._saxContent(ContentGenerator.java:121)
          at org.ametys.cms.content.ContentGenerator._generateContent(ContentGenerator.java:86)
          at org.ametys.cms.content.ContentGenerator.generate(ContentGenerator.java:70)
          at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
          at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)
          at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
          at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:267)
          at org.ametys.core.ui.dispatcher.DispatchGenerator._handleResponse(DispatchGenerator.java:266)
      

            cbayle Caroline Bayle
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: