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

Update SampleSQLBuilder to use correct layout id to generate data for JournalArticle

    Details

      Description

      After LPS-92799, we should use the correct layout id to generate data for JournalContentSearchModel, otherwise, NoSuchLayoutException appeared when visiting AssetPublisher portlet if it shown the data of JournalArticle.

      2019-03-28 13:08:17.926 ERROR [http-nio-127.0.0.1-8080-exec-32][IncludeTag:128] Current URL /web/site-1/1_asset_publisher_3 generates exception: com.liferay.portal.kernel.exception.NoSuchLayoutException: No Layout exists with the key {groupId=1, privateLayout=false, layoutId=389}
      com.liferay.portal.kernel.exception.NoSuchLayoutException: No Layout exists with the key {groupId=1, privateLayout=false, layoutId=389}
      	at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.findByG_P_L(LayoutPersistenceImpl.java:7815)
      	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.getLayout(LayoutLocalServiceImpl.java:1467)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler._invoke(LayoutLocalServiceStagingAdvice.java:756)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler.invoke(LayoutLocalServiceStagingAdvice.java:639)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      	at com.liferay.portal.kernel.service.LayoutLocalServiceUtil.getLayout(LayoutLocalServiceUtil.java:1078)
      	at com.liferay.journal.web.asset.JournalArticleAssetRenderer.getHitLayoutURL(JournalArticleAssetRenderer.java:601)
      	at com.liferay.journal.web.asset.JournalArticleAssetRenderer.getURLViewInContext(JournalArticleAssetRenderer.java:424)
      	at org.apache.jsp.view_005fasset_005fentry_005fmetadata_jsp._jspService(view_005fasset_005fentry_005fmetadata_jsp:387)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
      	at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:202)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lily.chi Lily Chi
              Reporter:
              lily.chi Lily Chi
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 25 weeks, 3 days ago

                  Packages

                  Version Package
                  7.3.10 DXP GA1
                  Master