<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco lock exception in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-exception/m-p/52388#M19751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create a new site programmatically. At the end of the transaction I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2019-02-12 14:20:45,098 ERROR [repo.transaction.RetryingTransactionHelper] [defaultAsyncAction8] Rolling back in exception org.alfresco.repo.lock.LockAcquisitionException: 01120883 Failed to get lock '{}tagscope_workspace://spacesstore/6c18bee8-2d3d-4e37-babb-7e0555fc899b' using token '2c9a3fe7-ba1c-4c2b-b709-15a5f42729f4'. An exclusive lock exists: LockEntity[ ID=100, sharedResourceId=184, exclusiveResourceId=184]&lt;BR /&gt; 2019-02-12 14:20:45,101 ERROR [repo.transaction.RetryingTransactionHelper] [defaultAsyncAction3] txn failed org.springframework.dao.DuplicateKeyException: &lt;BR /&gt;### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "idx_alf_lockr_key"&lt;BR /&gt; Detail: Key (qname_ns_id, qname_localname)=(14, tagscope_workspace://spacesstore/d8c161fe-bd98-42f2-b872-82937d738964) already exists.&lt;BR /&gt;### The error may exist in alfresco/ibatis/#resource.dialect#/locks-insert-SqlMap.xml&lt;BR /&gt;### The error may involve alfresco.lock.insert.insert_LockResource-Inline&lt;BR /&gt;### The error occurred while setting parameters&lt;BR /&gt;### SQL: insert into alf_lock_resource (id, version, qname_ns_id, qname_localname) values (?, ?, ?, ?)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The site is working correct.&amp;nbsp; &amp;nbsp; Any idea what goes wrong?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2019 13:30:57 GMT</pubDate>
    <dc:creator>elshelsen</dc:creator>
    <dc:date>2019-02-12T13:30:57Z</dc:date>
    <item>
      <title>Alfresco lock exception</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-exception/m-p/52388#M19751</link>
      <description>I create a new site programmatically. At the end of the transaction I get the following error:2019-02-12 14:20:45,098 ERROR [repo.transaction.RetryingTransactionHelper] [defaultAsyncAction8] Rolling back in exception org.alfresco.repo.lock.LockAcquisitionException: 01120883 Failed to get lock '{}tag</description>
      <pubDate>Tue, 12 Feb 2019 13:30:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-exception/m-p/52388#M19751</guid>
      <dc:creator>elshelsen</dc:creator>
      <dc:date>2019-02-12T13:30:57Z</dc:date>
    </item>
  </channel>
</rss>

