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

Publish Web Content with null title cause ClassCastException

    Details

      Description

      1. Admin -> Content -> Add Basic Web Content.
      2. Publish without fill the title and content.

      Expected result:
      It should be no exception in the console.

      Actual result:
      Throw exception in the console.

      06:25:47,202 ERROR [http-bio-8080-exec-4][IncludeTag:129] Current URL /web/guest/home?p_auth=zmqefSzU&p_p_auth=Hphp5zFS&p_p_id=15&p_p_lifecycle=1&p_p_state=pop_up&p_p_mode=view&_15_struts_action=%2Fjournal%2Fedit_article generates exception: java.lang.String cannot be cast to java.lang.Exception
      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Exception
              at org.apache.jsp.html.taglib.ui.input_005flocalized.page_jsp._jspService(page_jsp.java:581)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
              at org.apache.jsp.html.taglib.ui.input_005ffield.page_jsp._jspService(page_jsp.java:1638)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
              at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:57)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:78)
              at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
              at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:295)
              at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:192)
              at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:83)
              at org.apache.jsp.html.taglib.aui.input.page_jsp._jspService(page_jsp.java:1175)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                he.song Serena Song (Inactive)
                Reporter:
                he.song Serena Song (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 31 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M1