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

Message Boards - 'Unable to process message' error when receiving replies from a Mailing List, thread reply does not get created in the portlet

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
    • Fix Version/s: 6.2.X EE
    • Labels:
    • Environment:
      Tomcat 7.0.40 + MySQL 5. Portal 6.2.x GIT ID: ef53f75433a9511e44b60731c9458164a209ed1f.
      Tomcat 7.0 + MySQL 5. Portal ee-6.2.x EE GIT ID: a68ccda94ffb0b19ad6f3e69968994e57c480e43.
    • Fix Priority:
      5

      Description

      When making the mailing list active for a Message Boards Category, replies from both the user's email and the mailing list is not being posted back in the Message Boards Category and the following error/exceptions appear.

      1. Setup a valid mailing list (I used Google Groups)
      2. Create a Blank Site, add a page, and add the Message Boards Portlet
      3. Create a user, with a valid email address that is a part of the mailing list, and add the user to the site created at Step 2 (this will be the User Email)
      4. In the Message Boards Portlet, click on Configuration > Email From and populate another valid email address (this will be the Server Email)
      5. Add a Category, check the 'Active' checkbox forthe Mailing List and populate the necessary fields (I used the Server Email for the incoming/outcoming user)
      6. Post a thread in the Category and assert the message is received in both the User's email and the Mailing List
      7. Reply back in the user's email, assert the response shows up in the mailing list but NOT the Message Boards portlet
      8. Reply back in the mailing list, assert the response shows up in the email but NOT the Message Boards portlet

      Exception Stacktrace

      17:11:54,748 ERROR [liferay/message_boards_mailing_list-1][ParallelDestination:92] Unable to process message {destinationName=liferay/message_boards_mailing_list, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portlet.messageboards.messaging.MailingListRequest@1960dcc5, values={JOB_NAME=liferay/message_boards_mailing_list/10508, EXCEPTIONS_MAX_SIZE=0, GROUP_NAME=liferay/message_boards_mailing_list/10508, DESTINATION_NAME=liferay/message_boards_mailing_list, JOB_STATE=com.liferay.portal.kernel.scheduler.JobState@263e1687, companyId=0}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.security.auth.PrincipalException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:76)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      	at java.lang.Thread.run(Thread.java:722)
      Caused by: com.liferay.portal.security.auth.PrincipalException
      	at com.liferay.portlet.messageboards.service.permission.MBCategoryPermission.check(MBCategoryPermission.java:43)
      	at com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl.addMessage(MBMessageServiceImpl.java:123)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
      	at $Proxy353.addMessage(Unknown Source)
      	at com.liferay.portlet.messageboards.service.MBMessageServiceUtil.addMessage(MBMessageServiceUtil.java:102)
      	at com.liferay.portlet.messageboards.messaging.MailingListMessageListener.processMessage(MailingListMessageListener.java:240)
      	at com.liferay.portlet.messageboards.messaging.MailingListMessageListener.processMessages(MailingListMessageListener.java:269)
      	at com.liferay.portlet.messageboards.messaging.MailingListMessageListener.doReceive(MailingListMessageListener.java:83)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 6 more

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 45 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE