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

NoSuchLayoutException after importing LAR

    Details

      Description

      Steps to reproduce:

      1. Add the following properties

      company.default.locale=pt_BR
      locales=en_US,es_ES,pt_BR
      com.liferay.portal.upload.UploadServletRequestImpl.max.size=1073741824
      

      2. Import LAR's (information on comments below)
      3. Access 'Conteúdo web' -> 'Notícias e Destaques' -> Notícias

      You get the following error

      15:05:47,758 ERROR [http-bio-8080-exec-20][IncludeTag:129] Current URL /group/control_panel/manage?p_p_auth=swBqDIb8&p_p_id=15&p_p_lifecycle=2&p_p_state=maximized&p_p_mode=view&p_p_cacheability=cacheLevelPage&doAsGroupId=10184&refererPlid=10187&controlPanelCategory=sites&_15_folderId=10660&_15_displayStyle=&_15_viewEntries=1&_15_viewFolders=false&_15_struts_action=%2Fjournal%2Fview&_15_entryStart=0&_15_entryEnd=50&_15_folderStart=0&_15_folderEnd=20&ajax=1 generates exception: com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=045a1ec9-01d7-45b5-bd0b-69d770cbc9bd, companyId=10157}
      com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=045a1ec9-01d7-45b5-bd0b-69d770cbc9bd, companyId=10157}
      	at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByUuid_C_First(LayoutPersistenceImpl.java:1133)
      	at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayoutByUuidAndCompanyId(LayoutLocalServiceBaseImpl.java:360)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:180)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:141)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.liferay.portal.service.LayoutLocalServiceUtil.getLayoutByUuidAndCompanyId(LayoutLocalServiceUtil.java:253)
      	at com.liferay.portlet.journal.util.JournalUtil.getPreviewPlid(JournalUtil.java:897)
      	at org.apache.jsp.html.portlet.journal.article_005faction_jsp._jspService(article_005faction_jsp.java:1067)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
      

      PS: the issue is only reproducible if LPS-43945 is commited. Otherwise, you get a different error.

      Not reproducible in master since LARs version (6.2) is incompatible.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.jin Mark Jin (Inactive)
              Reporter:
              antonio.junior Antonio Junior (Inactive)
              Participants of an Issue:
              Recent user:
              Jonathan McCann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 33 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 M1