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

As a developer, I want to add liferay/background_task_status to the SynchronousDestinationTestCallback

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Testing, Testing > Portal
    • Labels:
      None

      Description

      liferay/background_task_status needs to be added to the SynchronousDestinationTestCallback or something like the following can be thrown:

          [junit] 22:40:53,180 ERROR [liferay/background_task_status-1][ParallelDestination:55] Unable to process message {destinationName=liferay/background_task_status, response=null, responseDestinationName=null, responseId=null, payload=null, values={defaultLocale=en_US, groupId=0, [email protected]1dbb19f, principalName=20163, companyId=20118, portletModelAdditionCountersTotal=0, portletId=com_liferay_message_boards_web_portlet_MBPortlet, messageType=portlet, themeDisplayLocale=en_US, backgroundTaskId=22935, modelDeletionCounters={com.liferay.portlet.messageboa[email protected]6a48ef, com.liferay.portlet.messageboards.model.MBMessage#referrer-class-[email protected], com.liferay.portlet.messageboard[email protected]1bd869a, com.liferay.portlet.messageb[email protected]1d00f4f, com.liferay.portlet.messa[email protected]9d0f8a}, modelAdditionCounters={com.liferay.portlet.messageboa[email protected]16764bb, com.liferay.portlet.messageboards.model.MBMessage#referrer-class-[email protected], com.liferay.portlet.messageboard[email protected]14a8ad9, com.liferay.portlet.messageb[email protected]e1d019, com.liferay.portlet.messa[email protected]1252a2c}}}
          [junit] com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
          [junit] 	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
          [junit] 	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
          [junit] 	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
          [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
          [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] Caused by: java.lang.NullPointerException
          [junit] 	at com.liferay.exportimport.background.task.DefaultExportImportBackgroundTaskStatusMessageTranslator.translatePortletMessage(DefaultExportImportBackgroundTaskStatusMessageTranslator.java:120)
          [junit] 	at com.liferay.exportimport.background.task.DefaultExportImportBackgroundTaskStatusMessageTranslator.translate(DefaultExportImportBackgroundTaskStatusMessageTranslator.java:46)
          [junit] 	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskStatusMessageListener.doReceive(BackgroundTaskStatusMessageListener.java:64)
          [junit] 	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
          [junit] 	... 5 more
          [junit] Tests run: 46, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.379 sec
          [junit] Tests run: 46, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.379 sec
          [junit] 
          [junit] Testcase: testSelectableParentSitesStaging(com.liferay.portal.service.GroupServiceTest):	FAILED
      

        Attachments

          Activity

            People

            Assignee:
            jason.pince Jason Pince
            Reporter:
            matthew.tambara Matthew Tambara
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master