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

Push notifications do not work when using UserNotification framework

    Details

    • Branch Version/s:
      7.0.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      4

      Description

      To test this in an easy way:

      1. ModifyBlogsAddEntryUserNotificationDefinition and add the UserNotificationDeliveryConstants.TYPE_PUSH to the constructor (see the attached java file) and deploy the changes
      2. create a new user
      3. Add blogs portlet to a page
      4. Subscribe to this portlet with the created user
      5. add a blog entry

      Current: NPM is thrown:

      13:20:43,700 ERROR [liferay/push_notification-1][SerialDestination:61] Unable to process message {destinationName=liferay/push_notification, response=null, responseDestinationName=null, responseId=null, payload={"classPK":"36086","entryURL":"http://localhost:8080/web/guest/home/-/blogs/36086","className":"com.liferay.blogs.model.BlogsEntry","notificationType":0,"entryTitle":"asfasf","userId":"20150"}, values={defaultLocale=en_US, companyId=20110, groupId=0, principalName=20150, permissionChecker=com.liferay.portal.kernel.util.TransientValue@15dcdeff, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
      com.liferay.portal.kernel.messaging.MessageListenerException: 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.SerialDestination$1.run(SerialDestination.java:58)}}
      {{ at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)}}
      {{ at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)}}
      {{ at java.lang.Thread.run(Thread.java:748)}}
      Caused by: java.lang.NullPointerException
      {{ at com.liferay.push.notifications.internal.messaging.PushNotificationsMessageListener.doReceive(PushNotificationsMessageListener.java:47)}}
      {{ at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)}}
      {{ ... 5 more}}

       

        Attachments

          Activity

            People

            • Assignee:
              roberto.diaz Roberto Díaz
              Reporter:
              roberto.diaz Roberto Díaz
              Participants of an Issue:
              Recent user:
              Jason Pince
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 14 weeks ago

                Packages

                Version Package
                7.0.X
                7.1.0 M1
                7.1.X
                Master