Details

      Description

      Steps to reproduce:

      1. Add a new page with the following widgets:
        • Message Boards
        • User Statistics
      2. Navigate to Configuration > Social Activity
      3. Enable Social Activity for Message Boards
        • Set User Participation and Owner Contribution points for "Read a Message" (for example, 10 points)
        • Limit contribution and participation to 1 time a day
      4. Save settings
      5. Navigate to the new page, add a category and thread.
      6. Create a new user
      7. Logout as Test; Login as new user
      8. As new user, navigate to the Message Boards widget and view/read the new thread.

      Expected result: User Statistics counter reflects the points allotted for reading a message
       Actual result: Console errors thrown. User statistics points only show up after page refresh;

      2019-02-20 17:03:12.874 ERROR [liferay/async_service-2][ParallelDestination:55] Unable to process message {destinationName=liferay/async_service, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portal.internal.messaging.async.AsyncProcessCallable@70e3b018, values={defaultLocale=en_US, companyId=20099, groupId=0, principalName=36788, permissionChecker=com.liferay.portal.kernel.util.TransientValue@10d12d0e, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.RuntimeException: java.lang.NullPointerException
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.RuntimeException: java.lang.NullPointerException
              at com.liferay.portal.internal.messaging.async.AsyncProcessCallable.call(AsyncProcessCallable.java:63)
              at com.liferay.portal.internal.messaging.async.AsyncMessageListener.doReceive(AsyncMessageListener.java:32)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 5 more
      Caused by: java.lang.NullPointerException
              at com.liferay.portlet.social.service.impl.SocialActivityCounterLocalServiceImpl.addActivityCounters(SocialActivityCounterLocalServiceImpl.java:291)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:59)
              at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:51)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:44)
              at com.sun.proxy.$Proxy43.addActivityCounters(Unknown Source)
              at com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl.addActivity(SocialActivityLocalServiceImpl.java:253)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:59)
              at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:51)
              at com.liferay.portal.internal.messaging.async.AsyncProcessCallable.call(AsyncProcessCallable.java:49)
              ... 7 more
      

      Reproduced on:
      Tomcat 9.0.10 + MySQL 5.7. Portal master GIT ID: e5f49f1432818edc4964092339adfaaa961de41d

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              nikki.prudencio Nikki Prudencio
              Participants of an Issue:
              Recent user:
              Nikki Prudencio
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                20 weeks, 6 days ago

                Packages

                Version Package