Legacy Knowledge Base
Publicado Sep. 25, 2010

Searching in a page created from a content page template does not work

Written By

Ahmed Abdin

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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

  1. Start 2025.q1.14-lts

  2. Go to Design > Page Templates

  3. Add a new Page Template Set (e.g. "Custom Templates")

  4. Add a new Content Page Template (e.g. "Page Template Set")

  5. Leave the page template empty and publish

  6. Go to Site Builder > Pages

  7. Create a new page based on the "Page Template Set" template; call it "Test spritz"

  8. Leave the page empty and publish

  9. 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.
Did this article resolve your issue ?

Legacy Knowledge Base