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

Class exception when searching a blog entry in Admin

    Details

      Description

      Steps to reproduce:

      1. Navigate to Content & Data > Blogs
      2. Add a new blog entry
      3. In Blogs Admin, search for the recently created blog entry

      Expected result:
      Blog entry displays

      Actual result:
      Result says that the blog is found but the article does not display. Console error as follows:

      2019-05-02 18:50:27.398 ERROR [http-nio-8080-exec-9][IncludeTag:128] Current URL /group/guest/~/control_panel/manage?_com_liferay_blogs_web_portlet_BlogsAdminPortlet_keywords=newBlogentry&p_p_mode=view&p_p_state=maximized&p_p_id=com_liferay_blogs_web_portlet_BlogsAdminPortlet&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_orderByCol=title&p_p_lifecycle=0&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_mvcRenderCommandName=%2Fblogs%2Fview&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_navigation=entries&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_orderByType=asc&refererPlid=1 generates exception: java.lang.ClassCastException: java.util.Optional cannot be cast to com.liferay.blogs.model.BlogsEntry
      java.lang.ClassCastException: java.util.Optional cannot be cast to com.liferay.blogs.model.BlogsEntry
              at org.apache.jsp.blogs_005fadmin.view_005fentries_jsp._jspService(view_005fentries_jsp:608)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:321)
              at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:332)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
              at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
              at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
              at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
              at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:202)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:397)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:374)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:219)
      

       

      Workaround exists:
      Blogs are still searchable via site pages.

       

      Reproduced on
      Master

      • Tomcat 9.0.17 + HSQL. Portal master GIT ID: 486ebd420c51f5094068b7787750a329c7398cb5

      DXP 7.2.10

      • Tomcat 9.0.17 + HSQL. Portal DXP 7.2.10 GIT ID: 34b38d9217a5ffd4400e45c9987c533361160d7d

        Attachments

          Activity

            People

            • Assignee:
              nikki.prudencio Nikki Prudencio
              Reporter:
              nikki.prudencio Nikki Prudencio
              Participants of an Issue:
              Recent user:
              Brian Wulbern
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                23 weeks, 4 days ago

                Packages

                Version Package
                Master