Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1845

ClassCastException thrown when two JSF portlets appear on the same portal page in Liferay Portal 5.2

    Details

      Description

      This issue is a regression in the 3.0.4-legacy-ga4 released caused by the combination of FACES-1700 and FACES-1704.

      Steps to Reproduce:

      • Deploy the jsf2-ipc-pub-render-params portlet in Liferay Portal 5.2 + Tomcat
      • Add the Customers and Bookings portlet to a portal page
      • Reload the portal page

      If the bug still exists, then the portal page will not render, and the following stacktrace will appear in the server log:

      14:50:19,262 ERROR [IncludeTag:80] Current URL /group/bridge-demos/jsf2-prp generates exception: Invocation of method 'include' in  class com.liferay.taglib.util.VelocityTaglib threw exception org.apache.jasper.JasperException: java.lang.ClassCastException: com.liferay.faces.util.portal.StringBundler cannot be cast to com.liferay.portal.kernel.util.StringBundler at _SERVLET_CONTEXT_/html/themes/classic/templates/portal_normal.vm[line 10, column 16]
      14:50:19,263 ERROR [IncludeTag:156] java.lang.ClassCastException: com.liferay.faces.util.portal.StringBundler cannot be cast to com.liferay.portal.kernel.util.StringBundler
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
      at com.liferay.taglib.util.VelocityTaglib.include(VelocityTaglib.java:426)
      at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
      at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
      at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
      at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
      at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
      at org.apache.velocity.Template.merge(Template.java:328)
      at org.apache.velocity.Template.merge(Template.java:235)
      

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-3.0.4-legacy-ga5