Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-143588

Occasional "Store is not available" error during AddDefaultLayoutPortalInstanceLifecycleListener

    Details

    • Branch Version/s:
      7.3.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3

      Description

      This issue is similar to LPS-135887 During the AddDefaultLayoutPortalInstanceLifecycleListener  a "Store is not available" error can occur occasionally. This is due to a race condition.

      We should add a dependency from onto the activated StoreFactory so that this error cannot occur.

      Here is an example stack trace from when the error occurs:

      Caused by: com.liferay.portal.kernel.exception.PortalException: java.lang.IllegalStateException: Store is not available
      	at com.liferay.layout.internal.importer.DefaultLayoutDefinitionImporter.importDefaultLayoutDefinition(DefaultLayoutDefinitionImporter.java:93)
      	at com.liferay.layout.internal.instance.lifecycle.AddDefaultLayoutPortalInstanceLifecycleListener.addDefaultGuestPublicLayoutByProperties(AddDefaultLayoutPortalInstanceLifecycleListener.java:106)
      	... 65 more
      

       

      Steps to Reproduce
      Unfortunately, this issue cannot be reproduced consistently. It can happen randomly when initializing the portal.

        Attachments

          Activity

            People

            Assignee:
            diego.hu Diego Hu
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Brian Lee
            Engineering Assignee:
            Mariano Álvaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              29 weeks, 1 day ago

                Packages

                Version Package
                7.3.X
                7.4.3.5 CE GA5
                7.4.13 DXP U1
                Master