javax.servlet.ServletException: com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: Unable to get class name from id 30051

Liferay Issues | Sergio Alonso | 2 weeks ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    *Preconditions* # Set up two instances of DXP (Fix Pack >= 10), with a site on each (instance 1 -> Site A; instance 2 -> site B). # Deploy Audience Targeting (AT) from Marketplace it both instances. *Steps to reproduce* # In site A: Configure AT and add some user segment by rule. # In site A: Add Segment Content List Portlet to a page and configure it to show any of the previous user segment(s). # In site A: Export Segment Content List Portlet and download its LAR file. (i) (Checkpoint: Export process is OK) # In site B: Add Segment Content List Portlet to a page. # In site B: Import previous exported preferences from site A. (i) (Checkpoint: Import process is OK) *(/) Expected behaviour* In site B, the Segment Content List Portlet shows the same content as in site A *(x) Observed behaviour* In site B, the Segment Content List Portlet shows the error message "User Segment Content List is temporarily unavailable." And an exception is thrown in log: {code} 08:50:55,981 ERROR [http-nio-8080-exec-2][PortletRequestDispatcherImpl:261] javax.servlet.ServletException: com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: Unable to get class name from id 30051 javax.servlet.ServletException: com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: Unable to get class name from id 30051 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:953) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:885) at com.liferay.taglib.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:164) ... ... ... Caused by: com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: Unable to get class name from id 30051 at com.liferay.portal.kernel.search.BaseIndexer.getFullQuery(BaseIndexer.java:273) at com.liferay.portal.kernel.search.BaseIndexer.doSearch(BaseIndexer.java:1535) at com.liferay.portal.kernel.search.DefaultSearchResultPermissionFilter.getHits(DefaultSearchResultPermissionFilter.java:79) at com.liferay.portal.kernel.search.BaseSearchResultPermissionFilter.search(BaseSearchResultPermissionFilter.java:94) at com.liferay.portal.kernel.search.BaseIndexer.search(BaseIndexer.java:644) at com.liferay.portlet.asset.util.AssetUtil.searchAssetEntries(AssetUtil.java:738) at com.liferay.portlet.asset.util.AssetUtil.searchAssetEntries(AssetUtil.java:717) at com.liferay.asset.publisher.web.util.AssetPublisherUtil.getAssetEntries(AssetPublisherUtil.java:360) at com.liferay.asset.publisher.web.util.AssetPublisherUtil.getAssetEntryResultsByDefault(AssetPublisherUtil.java:1532) at com.liferay.asset.publisher.web.util.AssetPublisherUtil.getAssetEntryResults(AssetPublisherUtil.java:778) at com.liferay.asset.publisher.web.util.AssetPublisherUtil.getAssetEntryResults(AssetPublisherUtil.java:744) at org.apache.jsp.view_jsp._jspService(view_jsp:705) ... 208 more Caused by: java.lang.RuntimeException: Unable to get class name from id 30051 at com.liferay.portal.util.PortalImpl.getClassName(PortalImpl.java:1518) at com.liferay.portal.kernel.util.PortalUtil.getClassName(PortalUtil.java:546) at com.liferay.portlet.asset.util.AssetSearcher.getSearchClassNames(AssetSearcher.java:68) at com.liferay.portal.kernel.search.BaseIndexer.getFullQuery(BaseIndexer.java:248) ... 219 more {code} ---- As a workaround can be used an Asset Publisher portel configuring it as "_Dynamic_" and adding a _Filter_ with a _Category_ selected as AT rule.

    Liferay Issues | 2 weeks ago | Sergio Alonso
    javax.servlet.ServletException: com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: Unable to get class name from id 30051
  2. 0

    [LPS-45662] Click folder in D&M display portlet with a page using page template cause excetion - Liferay Issues

    liferay.com | 1 year ago
    com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
  3. 0

    NO VALIDA ISBN

    openxava | 6 years ago | yerikab
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/WebClient
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Outputtext Attribute and Bean

    Oracle Community | 9 years ago | 843844
    javax.faces.FacesException: javax.servlet.ServletException: java.lang.IndexOutOfBoundsException: Index: 10, Size: 9
  6. 0

    NullpointerException with selectItems

    Oracle Community | 1 decade ago | 843842
    javax.servlet.ServletException: javax.servlet.jsp.JspException: null

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.servlet.ServletException

      com.liferay.portal.kernel.search.SearchException: java.lang.RuntimeException: Unable to get class name from id 30051

      at org.apache.jasper.runtime.PageContextImpl.doHandlePageException()
    2. GWT dev
      PageContextImpl.handlePageException
      1. org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:953)
      2. org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:885)
      2 frames
    3. com.liferay.taglib
      PageContextWrapper.handlePageException
      1. com.liferay.taglib.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:164)
      1 frame