Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-1514

Audience Targeting is causing a ClassCastException when interacting with message boards

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 3.0, 3.x
    • Fix Version/s: 3.0, 3.x
    • Component/s: Content Targeting
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Start a 7.1 bundle and deploy Audience Targeting (version 3.0.0 for 7.1).
      2. Go to Content -> Message Boards and add a new Thread.

      Expected result: the thread is published with no errors.

      Current result: the thread is published but the next exception occurs:

      2020-09-07 09:08:48.728 ERROR [http-nio-8080-exec-7][DynamicIncludeUtil:79] java.lang.ClassCastException: com.liferay.message.boards.model.impl.MBMessageImpl cannot be cast to com.liferay.message.boards.kernel.model.MBMessage
      java.lang.ClassCastException: com.liferay.message.boards.model.impl.MBMessageImpl cannot be cast to com.liferay.message.boards.kernel.model.MBMessage
       at com.liferay.content.targeting.analytics.web.servlet.taglib.MBThreadMessageTrackingDynamicInclude.include(MBThreadMessageTrackingDynamicInclude.java:38)
       at com.liferay.portal.kernel.servlet.taglib.DynamicIncludeUtil.include(DynamicIncludeUtil.java:76)
       at com.liferay.taglib.util.DynamicIncludeTag.doEndTag(DynamicIncludeTag.java:32)
       at org.apache.jsp.message_005fboards.view_005fthread_005fmessage_jsp._jspx_meth_liferay$1util_dynamic$1include_1(view_005fthread_005fmessage_jsp.java:2225)
       at org.apache.jsp.message_005fboards.view_005fthread_005fmessage_jsp._jspService(view_005fthread_005fmessage_jsp.java:1965)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

        Attachments

          Activity

            People

            Assignee:
            pavel.savinov Pavel Savinov
            Reporter:
            cristina.rodriguez Cristina Rodriguez
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                3.0
                3.x