javax.servlet.ServletException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • *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 User Segment and download its LAR file. # In site A: Export Segment Content List Portlet and download its LAR file. (i) (Checkpoint: Both export processes are 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) {panel} *(/) Expected behaviour* In site B, the Segment Content List Portlet shows the same configuration 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} {panel} # In site B: Import previous exported user segment from site A. (i) (Checkpoint: Import process is OK) {panel} *(/) Expected behaviour* In site B, the Segment Content List Portlet shows the same content as in site A *(x) Observed behaviour* Same error as above. {panel} ---- 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.
    via by Sergio Alonso,
  • JPA Eclipselink Static Weaving
    via Stack Overflow by lazell
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,