Issue
- I have an issue with searching in pages created from the content page template. When I search in a page and filter to "Pages", nothing happens in the page, and there are no search results.
Steps to reproduce
Start 2025.q1.14-lts
Go to Design > Page Templates
Add a new Page Template Set (e.g. "Custom Templates")
Add a new Content Page Template (e.g. "Page Template Set")
Leave the page template empty and publish
Go to Site Builder > Pages
Create a new page based on the "Page Template Set" template; call it "Test spritz"
Leave the page empty and publish
Go to the default Search page and search for "spritz"
Actual Result: The search works with no issues.
Expected Result: The search does not work, and the following error is thrown in the log:
ERROR [http-nio-8080-exec-10][AssetURLViewProviderImpl:102] Unable to get asset view URL for class com.liferay.layout.page.template.model.LayoutPageTemplateEntry with primary key 35204
com.liferay.asset.kernel.exception.NoSuchEntryException: No AssetEntry exists with the key {classNameId=29511, classPK=35204}
at com.liferay.portlet.asset.service.persistence.impl.AssetEntryPersistenceImpl.findByC_C(AssetEntryPersistenceImpl.java:4060) ~[portal-impl.jar:?]
at com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl.getEntry(AssetEntryLocalServiceImpl.java:351) ~[portal-impl.jar:?]
at jdk.internal.reflect.GeneratedMethodAccessor636.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:60) ~[portal-kernel.jar:?]
at jdk.proxy196.$Proxy856.getEntry(Unknown Source) ~[?:?]
at com.liferay.asset.kernel.service.AssetEntryLocalServiceWrapper.getEntry(AssetEntryLocalServiceWrapper.java:509) ~[portal-kernel.jar:?]
at jdk.internal.reflect.GeneratedMethodAccessor636.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:60) ~[portal-kernel.jar:?]
at jdk.proxy197.$Proxy858.getEntry(Unknown Source) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor636.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:41) ~[portal-impl.jar:?]
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:60) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:48) ~[portal-impl.jar:?]
at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:40) ~[portal-impl.jar:?]
at jdk.proxy3.$Proxy71.getEntry(Unknown Source) ~[?:?]
at com.liferay.portal.search.internal.asset.AssetURLViewProviderImpl.getAssetURLView(AssetURLViewProviderImpl.java:69) ~[?:?]
at com.liferay.portal.search.internal.suggestions.spi.BasicSuggestionsContributor._getSuggestion(BasicSuggestionsContributor.java:210) ~[?:?]
at com.liferay.portal.search.internal.suggestions.spi.BasicSuggestionsContributor.lambda$_toSuggestionsContributorResults$1(BasicSuggestionsContributor.java:288) ~[?:?]
at com.liferay.petra.function.transform.TransformUtil.unsafeTransform(TransformUtil.java:146) ~[com.liferay.petra.function.jar:?]
at com.liferay.petra.function.transform.TransformUtil.transform(TransformUtil.java:25) ~[com.liferay.petra.function.jar:?]
at com.liferay.portal.search.internal.suggestions.spi.BasicSuggestionsContributor._toSuggestionsContributorResults(BasicSuggestionsContributor.java:286) ~[?:?]
at com.liferay.portal.search.internal.suggestions.spi.BasicSuggestionsContributor.getSuggestionsContributorResults(BasicSuggestionsContributor.java:92) ~[?:?]
at com.liferay.portal.search.internal.suggestions.SuggestionsRetrieverImpl._getSuggestionsContributorResults(SuggestionsRetrieverImpl.java:77) ~[?:?]
at com.liferay.portal.search.internal.suggestions.SuggestionsRetrieverImpl.lambda$getSuggestionsContributorResults$0(SuggestionsRetrieverImpl.java:44) ~[?:?]
at com.liferay.petra.function.transform.TransformUtil.unsafeTransformToList(TransformUtil.java:257) [com.liferay.petra.function.jar:?]
at com.liferay.petra.function.transform.TransformUtil.transformToList(TransformUtil.java:117) [com.liferay.petra.function.jar:?]
at com.liferay.portal.search.internal.suggestions.SuggestionsRetrieverImpl.getSuggestionsContributorResults(SuggestionsRetrieverImpl.java:40) [bundleFile:?]
at com.liferay.portal.search.rest.internal.resource.v1_0.SuggestionResourceImpl.postSuggestionsPage(SuggestionResourceImpl.java:94) [bundleFile:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
Environment
- Liferay Quarterly Release 2025.q1.14-lts
Resolution
- The case has been fixed by LPD-56585. Please request a hotfix.