Jahia DX > Clear lock on node...

0 (0 Good)
0 (0 Bad)

Clear lock on node failed

by  jd »  2011/07/06 14:18

Hi,

I'm testing JAHIA 6.5 CE and I have a problem with a lock on a node.

In Edit mode, the node isn't displayed as locked but in Contribution mode, it is displayed as locked (see captures)

edit mode contribution mode

When I'm using the command Clear lock on node, this message is displayed : Error when clearing all locks on node /sites/ACME/home/about-us with user {jcr}root

I have flushed all caches, stop and restart Tomcat, but without success.

I have tested that for an another user, the node is displayed locked in Contribution mode, not in Edit mode.

I can start a workflow and publish this node, but this node remain locked.

What can I do to resolve this problem?

Thanks all for help.

Jenny

 

 

  • Clear lock on node failed
    2011/07/06 14:18

    jd <p> Hi,</p> <p> I&#39;m testing JAHIA 6.5 CE and I have a problem with a lock on a node.</p> <p> In Edit mode, the node isn&#39;t displayed as locked but in Contribution mode, it is displayed as locked (see captures)</p> <p> <img alt="edit mode" src="http://www.geomod.eu/captures/edit_mode.png" style="width: 295px; height: 244px;" /> <img alt="contribution mode" src="http://www.geomod.eu/captures/contrib_mode.png" style="width: 604px; height: 270px;" /></p> <p> When I&#39;m using the command <strong>Clear lock on node</strong>, this message is displayed : <strong><span class="ext-mb-text" id="x-auto-1286-content">Error when clearing all locks on node /sites/ACME/home/about-us with user {jcr}root</span></strong></p> <p> I have flushed all caches, stop and restart Tomcat, but without success.</p> <p> I have tested that for an another user, the node is displayed locked in Contribution mode, not in Edit mode.</p> <p> I can start a workflow and publish this node, but this node remain locked.</p> <p> What can I do to resolve this problem?</p> <p> Thanks all for help.</p> <p> Jenny</p> <p> &nbsp;</p> <p> &nbsp;</p>

  • Number of messages  29
    Registration date Jul 6, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Clear lock on node failed

    by  tyurk »  2011/07/06 22:44

     

    Jenny,

    I had some lock issues with nodes before (often for reasons I never ended up tracking down).  A couple of things that worked for me in different cases:

    1.  Try logging in as the user holding the lock or as the root user, opening the node for editing and saving it.

    2.  Try browsing to the node in the repository explorer (or right-click on the object and click "show in content manager"), and right-click then clear locks on node or try locking it and unlocking it (preferably as root).

    3.  Try exporting the node as xml, editing the xml to change the j:locked=true to j:locked=false, and re-importing the node afterwards (most easily done within the repository explorer).

    Good luck ;)

    Denis

  • Re: Clear lock on node failed
    2011/07/06 22:44

    tyurk <blockquote> <p> &nbsp;</p> </blockquote> <p> Jenny,</p> <p> I had some lock issues with nodes before (often for reasons I never ended up tracking down).&nbsp; A couple of things that worked for me in different cases:</p> <p> 1.&nbsp; Try logging in as the user holding the lock or as the root user, opening the node for editing and saving it.</p> <p> 2.&nbsp; Try browsing to the node in the repository explorer (or right-click on the object and click &quot;show in content manager&quot;), and right-click then clear locks on node or try locking it and unlocking it (preferably as root).</p> <p> 3.&nbsp; Try exporting the node as xml, editing the xml to change the j:locked=true to j:locked=false, and re-importing the node afterwards (most easily done within the repository explorer).</p> <p> Good luck ;)</p> <p> Denis</p>

  • Number of messages  38
    Registration date Jul 6, 2011
    0 (0 Good)
    0 (0 Bad)

    Clear lock on node failed

    by  jd »  2011/07/07 13:23

    Hi Denis,

    I have try the solutions that you give me but without success.

    The solution 1 don't work, I can't edit the node because it is locked. The save button is disabled.

    The solution 2 don't work because when I save this message is displayed : 'Invalid link Cannot unlock node'.

    When I export the node in xml (solution 3), the propertie j:locked=true don't exists on the node. See below the xml file :

    <maincontent j:lastPublished="2011-07-06T15:07:31.062+02:00" j:lastPublishedBy="root" j:lockTypes="root:user" j:locktoken="5ed91c44-b8c7-47d6-9b7a-415effc4cc9d-5" j:published="true" jcr:created="2011-02-01T16:40:07.771+01:00" jcr:createdBy="root" jcr:lastModified="2011-02-01T16:40:14.671+01:00" jcr:lastModifiedBy="root" jcr:lockIsDeep="false" jcr:lockOwner="root" jcr:primaryType="jnt:contentList"><acme-in-brief align="left" j:lastPublished="2011-07-06T15:06:33.828+02:00" j:lastPublishedBy="root" j:published="true" jcr:created="2011-02-01T16:40:07.771+01:00" jcr:createdBy="root" jcr:lastModified="2011-07-06T14:54:29.156+02:00" jcr:lastModifiedBy="jdy" jcr:lockIsDeep="false" jcr:lockOwner="jdy" jcr:primaryType="jnt:mainContent"><j:translation_en body="<p>  ACME construction, Europe&#39;s leading and largest construction group, with more than 40&rsquo;000 employees around the world</p> <p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; ">  Acme is the main player in Europe and USA, deploying its expertise across the full spectrum of building and infrastructure construction and operating businesses, including property development and road construction.</p> <p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; ">  Founded in 1950, ACME&nbsp; bases its growth on its international successes, the personal development of its collaborator and the acquisition of companies exercising similar activities with strong recurring profits.</p> <p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; ">  Acme brings together an impressive array of capabilities in building services</p> " j:lastPublished="2011-07-06T15:11:56.265+02:00" j:lastPublishedBy="root" j:published="true" jcr:language="en" jcr:lastModified="2011-02-01T16:40:14.671+01:00" jcr:lastModifiedBy="root" jcr:mixinTypes="mix:title" jcr:primaryType="jnt:translation" jcr:title="Acme in Brief"/><j:translation_fr body="<p>  Acme r&eacute;unit un ensemble sans &eacute;quivalent de comp&eacute;tences dans les m&eacute;tiers du b&acirc;timent et du g&eacute;nie civil. Acme est acteur europ&eacute;en majeur qui b&eacute;n&eacute;ficie d&rsquo;une expertise solide dans les domaines de la construction civile et de la mise l&rsquo;infrastructures urbaines.</p> <p>  Fond&eacute;e en 1950, l&#39;entreprise fonde sa croissance sur ses succ&egrave;s internationaux, la formation et le d&eacute;veloppement personnel de ses collaborateurs et l&#39;acquisition d&#39;entreprises dans les m&eacute;tiers qui lui sont proches.</p> <p>  Le groupe propose &agrave; ses clients une impressionante couverture des solutions requises pour les m&eacute;tiers de la construction et la mise en oeuvre d&#39;infrastructures.</p> <p>  Une autre modif</p> " j:lastPublished="2011-07-06T15:06:33.828+02:00" j:lastPublishedBy="root" j:published="true" jcr:language="fr" jcr:lastModified="2011-07-06T14:54:20.765+02:00" jcr:lastModifiedBy="jdy" jcr:mixinTypes="mix:title" jcr:primaryType="jnt:translation" jcr:title="ACME en quelques mots..."/></acme-in-brief></maincontent>
     

    I don't know what happend....

     

    Jenny

  • Clear lock on node failed
    2011/07/07 13:23

    jd <p> Hi Denis,</p> <p> I have try the solutions that you give me but without success.</p> <p> The solution 1 don&#39;t work, I can&#39;t edit the node because it is locked. The save button is disabled.</p> <p> The solution 2 don&#39;t work because when I save this message is displayed : &#39;Invalid link Cannot unlock node&#39;.</p> <p> When I export the node in xml (solution 3), the propertie j:locked=true don&#39;t exists on the node. See below the xml file :</p> <p> &lt;maincontent j:lastPublished=&quot;2011-07-06T15:07:31.062+02:00&quot; j:lastPublishedBy=&quot;root&quot; j:lockTypes=&quot;root:user&quot; j:locktoken=&quot;5ed91c44-b8c7-47d6-9b7a-415effc4cc9d-5&quot; j:published=&quot;true&quot; jcr:created=&quot;2011-02-01T16:40:07.771+01:00&quot; jcr:createdBy=&quot;root&quot; jcr:lastModified=&quot;2011-02-01T16:40:14.671+01:00&quot; jcr:lastModifiedBy=&quot;root&quot; jcr:lockIsDeep=&quot;false&quot; jcr:lockOwner=&quot;root&quot; jcr:primaryType=&quot;jnt:contentList&quot;&gt;&lt;acme-in-brief align=&quot;left&quot; j:lastPublished=&quot;2011-07-06T15:06:33.828+02:00&quot; j:lastPublishedBy=&quot;root&quot; j:published=&quot;true&quot; jcr:created=&quot;2011-02-01T16:40:07.771+01:00&quot; jcr:createdBy=&quot;root&quot; jcr:lastModified=&quot;2011-07-06T14:54:29.156+02:00&quot; jcr:lastModifiedBy=&quot;jdy&quot; jcr:lockIsDeep=&quot;false&quot; jcr:lockOwner=&quot;jdy&quot; jcr:primaryType=&quot;jnt:mainContent&quot;&gt;&lt;j:translation_en body=&quot;&lt;p&gt;&nbsp; ACME construction, Europe&amp;#39;s leading and largest construction group, with more than 40&amp;rsquo;000 employees around the world&lt;/p&gt; &lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&nbsp; Acme is the main player in Europe and USA, deploying its expertise across the full spectrum of building and infrastructure construction and operating businesses, including property development and road construction.&lt;/p&gt; &lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&nbsp; Founded in 1950, ACME&amp;nbsp; bases its growth on its international successes, the personal development of its collaborator and the acquisition of companies exercising similar activities with strong recurring profits.&lt;/p&gt; &lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&nbsp; Acme brings together an impressive array of capabilities in building services&lt;/p&gt; &quot; j:lastPublished=&quot;2011-07-06T15:11:56.265+02:00&quot; j:lastPublishedBy=&quot;root&quot; j:published=&quot;true&quot; jcr:language=&quot;en&quot; jcr:lastModified=&quot;2011-02-01T16:40:14.671+01:00&quot; jcr:lastModifiedBy=&quot;root&quot; jcr:mixinTypes=&quot;mix:title&quot; jcr:primaryType=&quot;jnt:translation&quot; jcr:title=&quot;Acme in Brief&quot;/&gt;&lt;j:translation_fr body=&quot;&lt;p&gt;&nbsp; Acme r&amp;eacute;unit un ensemble sans &amp;eacute;quivalent de comp&amp;eacute;tences dans les m&amp;eacute;tiers du b&amp;acirc;timent et du g&amp;eacute;nie civil. Acme est acteur europ&amp;eacute;en majeur qui b&amp;eacute;n&amp;eacute;ficie d&amp;rsquo;une expertise solide dans les domaines de la construction civile et de la mise l&amp;rsquo;infrastructures urbaines.&lt;/p&gt; &lt;p&gt;&nbsp; Fond&amp;eacute;e en 1950, l&amp;#39;entreprise fonde sa croissance sur ses succ&amp;egrave;s internationaux, la formation et le d&amp;eacute;veloppement personnel de ses collaborateurs et l&amp;#39;acquisition d&amp;#39;entreprises dans les m&amp;eacute;tiers qui lui sont proches.&lt;/p&gt; &lt;p&gt;&nbsp; Le groupe propose &amp;agrave; ses clients une impressionante couverture des solutions requises pour les m&amp;eacute;tiers de la construction et la mise en oeuvre d&amp;#39;infrastructures.&lt;/p&gt; &lt;p&gt;&nbsp; Une autre modif&lt;/p&gt; &quot; j:lastPublished=&quot;2011-07-06T15:06:33.828+02:00&quot; j:lastPublishedBy=&quot;root&quot; j:published=&quot;true&quot; jcr:language=&quot;fr&quot; jcr:lastModified=&quot;2011-07-06T14:54:20.765+02:00&quot; jcr:lastModifiedBy=&quot;jdy&quot; jcr:mixinTypes=&quot;mix:title&quot; jcr:primaryType=&quot;jnt:translation&quot; jcr:title=&quot;ACME en quelques mots...&quot;/&gt;&lt;/acme-in-brief&gt;&lt;/maincontent&gt;<br /> &nbsp;</p> <p> I don&#39;t know what happend....</p> <p> &nbsp;</p> <p> Jenny</p>

  • Number of messages  29
    Registration date Jul 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Clear lock on node failed

    by  tyurk »  2011/07/10 19:06

    " j:lastPublished="2011-07-06T15:11:56.265+02:00" j:lastPublishedBy="root" j:published="true" jcr:language="en" jcr:lastModified="2011-02-01T16:40:14.671+01:00" jcr:lastModifiedBy="root" jcr:mixinTypes="mix:title" jcr:primaryType="jnt:translation" jcr:title="Acme in Brief"/>

    Jenny,

    Sorry, my mistake.  It isn't j:locked (I was thinking of j:published).  Try removing the j:lockTypes="root:user", j:lockToken="...", jcr:lockIsDeep="false" and jcr:lockOwner="root" items from the description.  Also, you will have to delete the item and then import the xml.

    Cheers,

    Denis

  • Re: Clear lock on node failed
    2011/07/10 19:06

    tyurk <blockquote> <p> &quot; j:lastPublished=&quot;2011-07-06T15:11:56.265+02:00&quot; j:lastPublishedBy=&quot;root&quot; j:published=&quot;true&quot; jcr:language=&quot;en&quot; jcr:lastModified=&quot;2011-02-01T16:40:14.671+01:00&quot; jcr:lastModifiedBy=&quot;root&quot; jcr:mixinTypes=&quot;mix:title&quot; jcr:primaryType=&quot;jnt:translation&quot; jcr:title=&quot;Acme in Brief&quot;/&gt;</p> </blockquote> <p> Jenny,</p> <p> Sorry, my mistake. &nbsp;It isn&#39;t j:locked (I was thinking of j:published). &nbsp;Try removing the j:lockTypes=&quot;root:user&quot;, j:lockToken=&quot;...&quot;, jcr:lockIsDeep=&quot;false&quot; and jcr:lockOwner=&quot;root&quot; items from the description. &nbsp;Also, you will have to delete the item and then import the xml.</p> <p> Cheers,</p> <p> Denis</p>

  • Number of messages  38
    Registration date Jul 10, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Clear lock on node failed

    by  poiuytrez »  2011/07/12 14:36

    Hi Denis,

    I have try the solutions that you give me but without success.

    The solution 1 don't work, I can't edit the node because it is locked. The save button is disabled.

    The solution 2 don't work because when I save this message is displayed : 'Invalid link Cannot unlock node'.

    When I export the node in xml (solution 3), the propertie j:locked=true don't exists on the node. See below the xml file :


    Hello Jenny, 

    Did you succeed to unlock you node with Denis steps ? I recommend also to use the repository explorer to perform the steps.

    poiuytrez

     

    I don't know what happend....

     

    Jenny

     


  • Re: Clear lock on node failed
    2011/07/12 14:36

    poiuytrez <blockquote> <p> Hi Denis,</p> <p> I have try the solutions that you give me but without success.</p> <p> The solution 1 don&#39;t work, I can&#39;t edit the node because it is locked. The save button is disabled.</p> <p> The solution 2 don&#39;t work because when I save this message is displayed : &#39;Invalid link Cannot unlock node&#39;.</p> <p> When I export the node in xml (solution 3), the propertie j:locked=true don&#39;t exists on the node. See below the xml file :</p> </blockquote> <p> <maincontent j:lastpublished="2011-07-06T15:07:31.062+02:00" j:lastpublishedby="root" j:locktoken="5ed91c44-b8c7-47d6-9b7a-415effc4cc9d-5" j:locktypes="root:user" j:published="true" jcr:created="2011-02-01T16:40:07.771+01:00" jcr:createdby="root" jcr:lastmodified="2011-02-01T16:40:14.671+01:00" jcr:lastmodifiedby="root" jcr:lockisdeep="false" jcr:lockowner="root" jcr:primarytype="jnt:contentList"><acme-in-brief align="left" j:lastpublished="2011-07-06T15:06:33.828+02:00" j:lastpublishedby="root" j:published="true" jcr:created="2011-02-01T16:40:07.771+01:00" jcr:createdby="root" jcr:lastmodified="2011-07-06T14:54:29.156+02:00" jcr:lastmodifiedby="jdy" jcr:lockisdeep="false" jcr:lockowner="jdy" jcr:primarytype="jnt:mainContent"><j:translation_en acme="" acquisition="" across="" activities="" an="" and="" array="" bases="" body="&lt;p&gt;&nbsp; Acme réunit un ensemble sans équivalent de compétences dans les métiers du bâtiment et du génie civil. Acme est acteur européen majeur qui bénéficie d’une expertise solide dans les domaines de la construction civile et de la mise l’infrastructures urbaines.&lt;/p&gt; &lt;p&gt;&nbsp; Fondée en 1950, l'entreprise fonde sa croissance sur ses succès internationaux, la formation et le développement personnel de ses collaborateurs et l'acquisition d'entreprises dans les métiers qui lui sont proches.&lt;/p&gt; &lt;p&gt;&nbsp; Le groupe propose à ses clients une impressionante couverture des solutions requises pour les métiers de la construction et la mise en oeuvre d'infrastructures.&lt;/p&gt; &lt;p&gt;&nbsp; Une autre modif&lt;/p&gt; " brings="" building="" capabilities="" collaborator="" companies="" construction="" deploying="" development="" europe="" exercising="" expertise="" founded="" full="" growth="" impressive="" in="" including="" infrastructure="" international="" is="" its="" j:lastpublished="2011-07-06T15:06:33.828+02:00" j:lastpublishedby="root" j:published="true" j:translation_fr="" jcr:language="fr" jcr:lastmodified="2011-07-06T14:54:20.765+02:00" jcr:lastmodifiedby="jdy" jcr:mixintypes="mix:title" jcr:primarytype="jnt:translation" jcr:title="ACME en quelques mots..." main="" margin-bottom:="" margin-left:="" margin-right:="" margin-top:="" of="" on="" operating="" p="" padding-bottom:="" padding-left:="" padding-right:="" padding-top:="" personal="" player="" property="" recurring="" road="" similar="" spectrum="" strong="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0.5em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; " the="" together="" with=""><br /> Hello Jenny,&nbsp;</j:translation_en></acme-in-brief></maincontent></p> <p> Did you succeed to unlock you node with Denis steps ? I recommend also to use the repository explorer to perform the steps.</p> <p> poiuytrez</p> <blockquote> <p> &nbsp;</p> <p> I don&#39;t know what happend....</p> <p> &nbsp;</p> <p> Jenny</p> <p> &nbsp;</p> </blockquote> <br />

  • Number of messages  16
    Registration date Jul 12, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Clear lock on node failed

    by  shyrkov »  2011/08/09 18:48

    Hello,

    just FYI: the issue with the inability to clear locks was addressed (builds after 38501) and the correction will be part of SP1 release.

    Kind regards

    Sergiy

  • Re: Clear lock on node failed
    2011/08/09 18:48

    shyrkov <p> Hello,</p> <p> just FYI: the issue with the inability to clear locks was addressed (builds after 38501) and the correction will be part of SP1 release.</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Aug 9, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page