Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-11098

'Failed to get lock java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock' error occurs during the startup

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.2.3
    • Component/s: Repository
    • Environment:
      Enterprise v4.2.2 (r65747-b256) schema 6,056 and above.
      RHEL v6.4 x64, Oracle v11.2.0.3.0, ojdbc6.jar, JBOSS v6.2, Alfresco + OpenLDAP, Solr / Lucene, Clustering Schema 2.

      Description

      Steps to reproduce (for cluster):
      1. Install Alfresco in cluster using the 2nd clustering schema;
      2. Start the 1st node (please, check the attached logs in the jboss-node1.log);
      3. Start the 2nd node.
      Observed result:

      Alfresco is started successfully on both nodes, but the following errors occurs during the startup of the 2nd node (please, see the logs in the attached jboss-node2.log, lines 379 - 426):

      [0m[0m13:34:08,709 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] (ServerService Thread Pool -- 57) Startup of 'Replication' subsystem, ID: [Replication, default] complete
      [0m[31m13:38:16,498 ERROR [org.quartz.core.JobRunShell] (DefaultScheduler_Worker-10) Job DEFAULT.onPremiseSyncPullJobDetail threw an unhandled Exception: : org.alfresco.util.LockHelper$LockTryException: Failed to get lock java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock@38631512[Read locks = 0] in 1000ms.
      	at org.alfresco.util.LockHelper.tryLock(LockHelper.java:68) [alfresco-core-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryDAOImpl.getDictionaryRegistry(DictionaryDAOImpl.java:1044) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryDAOImpl.getDictionaryRegistry(DictionaryDAOImpl.java:1030) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryDAOImpl.init(DictionaryDAOImpl.java:151) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:400) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:563) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:550) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceURI(NamespaceDAOImpl.java:300) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getNamespaceURI(DictionaryNamespaceComponent.java:73) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.service.namespace.QName.createQName(QName.java:99) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.service.namespace.QName.createQName(QName.java:124) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncSetDefinitionStorage.getOrCreateSyncSetDefinitionContainer(SyncSetDefinitionStorage.java:391) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncSetDefinitionStorage.hasSyncSetDefintions(SyncSetDefinitionStorage.java:253) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncAdminServiceImpl.hasSyncSetDefintions(SyncAdminServiceImpl.java:598) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncTrackerComponent$11.execute(SyncTrackerComponent.java:1177) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncTrackerComponent$11.execute(SyncTrackerComponent.java:1140) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450) [alfresco-repository-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncTrackerComponent.pull(SyncTrackerComponent.java:1139) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.OnPremiseSyncPullJob.execute(OnPremiseSyncPullJob.java:36) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:216) [quartz-1.8.3-patched.jar:]
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563) [quartz-1.8.3-patched.jar:]
      
      [0m[31m13:38:16,504 ERROR [org.quartz.core.ErrorLogger] (DefaultScheduler_Worker-10) Job (DEFAULT.onPremiseSyncPullJobDetail threw an exception.: org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.util.LockHelper$LockTryException: Failed to get lock java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock@38631512[Read locks = 0] in 1000ms.]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:227) [quartz-1.8.3-patched.jar:]
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563) [quartz-1.8.3-patched.jar:]
      Caused by: org.alfresco.util.LockHelper$LockTryException: Failed to get lock java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock@38631512[Read locks = 0] in 1000ms.
      	at org.alfresco.util.LockHelper.tryLock(LockHelper.java:68) [alfresco-core-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryDAOImpl.getDictionaryRegistry(DictionaryDAOImpl.java:1044) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryDAOImpl.getDictionaryRegistry(DictionaryDAOImpl.java:1030) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryDAOImpl.init(DictionaryDAOImpl.java:151) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceRegistry(NamespaceDAOImpl.java:400) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:563) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getPrefixesCtx(NamespaceDAOImpl.java:550) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.NamespaceDAOImpl.getNamespaceURI(NamespaceDAOImpl.java:300) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.repo.dictionary.DictionaryNamespaceComponent.getNamespaceURI(DictionaryNamespaceComponent.java:73) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.service.namespace.QName.createQName(QName.java:99) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.service.namespace.QName.createQName(QName.java:124) [alfresco-data-model-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncSetDefinitionStorage.getOrCreateSyncSetDefinitionContainer(SyncSetDefinitionStorage.java:391) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncSetDefinitionStorage.hasSyncSetDefintions(SyncSetDefinitionStorage.java:253) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncAdminServiceImpl.hasSyncSetDefintions(SyncAdminServiceImpl.java:598) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncTrackerComponent$11.execute(SyncTrackerComponent.java:1177) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncTrackerComponent$11.execute(SyncTrackerComponent.java:1140) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450) [alfresco-repository-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.SyncTrackerComponent.pull(SyncTrackerComponent.java:1139) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.alfresco.enterprise.repo.sync.OnPremiseSyncPullJob.execute(OnPremiseSyncPullJob.java:36) [alfresco-enterprise-repo-4.2.2.jar:]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:216) [quartz-1.8.3-patched.jar:]
      	... 1 more
      
      Note:

      The same behavior was also noticed on a single node (deployed from the default installer) both with lucene and solr search engine enabled.

      ChristinaSh

        Attachments

        1. alfresco_cache-invalidating.log
          211 kB
        2. alfresco.log
          416 kB
        3. alfresco.log.debug.first
          372 kB
        4. alfresco.log.debug.second
          345 kB
        5. alfresco.log.first
          71 kB
        6. alfresco.log.second
          34 kB
        7. alfrescoTomcat-2014-05-12-shutdown.rar
          3.06 MB
        8. jboss-node1.log
          124 kB
        9. jboss-node2.log
          170 kB
        10. MessageServiceImpl.java.patch
          1 kB
        11. mnt11089_singlenode_20retries_1run.log
          360 kB
        12. mnt11089_singlenode.log
          316 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  alfrescoqa Alfresco QA Team (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 4 days, 1 hour
                    4d 1h

                      Structure Helper Panel