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

MessageListenerException throws when adding a comment on production for a content with comment

    Description

    Steps to reproduce

    1. Enable publications
    2. Add a new publication "P1"
    3. Add a new document
    4. Add a page with Documents and Media widget
    5. Add a new comment for the document
    6. Publish the publication
    7. Work on production, add another comment for document

    Actual Result:
    the comment can be added but the following error throws

    021-07-16 04:16:12.185 ERROR [liferay/subscription_sender-3][ParallelDestination:59] Unable to process message {destinationName=liferay/subscription_sender, response=null, responseDestinationName=null, responseId=null, payload={}, values={defaultLocale=en_US, companyId=20100, groupId=0, principalName=20129, [email protected]1b08c389, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
    com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.ClassCastException: java.util.HashMap cannot be cast to com.liferay.portal.kernel.util.SubscriptionSender
    	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:41) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) ~[portal-kernel.jar:?]
    	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56) [bundleFile:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_291]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_291]
    	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_291]
    Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to com.liferay.portal.kernel.util.SubscriptionSender
    	at com.liferay.subscription.internal.messaging.SubscriptionSenderMessageListener.doReceive(SubscriptionSenderMessageListener.java:44) ~[?:?]
    	at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48) ~[portal-kernel.jar:?]
    	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34) ~[portal-kernel.jar:?]
    	... 5 more
    

      Attachments

        Activity

          People

          Assignee:
          support-lep@liferay.com SE Support
          Reporter:
          linda.sui Linda Sui
          Participants of an Issue:
          Recent user:
          Felipe Lins
          Engineering Assignee:
          Cheryl Tang
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Days since last comment:
            1 year, 5 weeks ago

              Packages

              Version Package