Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2664

Unable to update batch engine in BatchEngineExportTaskExecutorTest and BatchEngineImport

    Details

    • Portal Version/s:
      7.2.x

      Description

      Testray Results: https://testray.liferay.com/home/-/testray/case_results/957398329

      java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.batch.engine.internal.BatchEngineExportTaskExecutorImpl, message=Unable to update batch engine export task {mvccVersion=1, uuid=cca982fe-e849-fdfd-c252-236cbc0d51a9, batchEngineExportTaskId=2, companyId=20096, userId=44829, createDate=Thu Jan 16 13:13:25 GMT 2020, modifiedDate=Thu Jan 16 13:13:25 GMT 2020, callbackURL=, className=com.liferay.headless.delivery.dto.v1_0.BlogPosting, contentType=CSV, endTime=null, errorMessage=, fieldNames=articleBody,datePublished,headline,id, executeStatus=STARTED, parameters={siteId=44825}, startTime=Thu Jan 16 13:13:25 GMT 2020, version=v1.0}  at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:60)  at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)  at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)  at org.apache.log4j.Category.callAppenders(Category.java:206)  at org.apache.log4j.Category.forcedLog(Category.java:391)  at org.apache.log4j.Category.log(Category.java:856)  at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)  at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)  at com.liferay.batch.engine.internal.BatchEngineExportTaskExecutorImpl.execute(BatchEngineExportTaskExecutorImpl.java:87)  at com.liferay.batch.engine.internal.test.BatchEngineExportTaskExecutorTest._exportBlogPostings(BatchEngineExportTaskExecutorTest.java:398)  at com.liferay.batch.engine.internal.test.BatchEngineExportTaskExecutorTest._testExportBlogPostingsToCSVFile(BatchEngineExportTaskExecutorTest.java:444)  at com.liferay.batch.engine.internal.test.BatchEngineExportTaskExecutorTest.testExportBlogPostingsToCSVFileWithFieldNames(BatchEngineExportTaskExecutorTest.java:121)  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.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)  at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)  at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)  at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)  at org.junit.rules.RunRules.evaluate(RunRules.java:20)  at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)  at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)  at org.junit.rules.RunRules.evaluate(RunRules.java:20)  at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)  at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)  at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.reflect.InvocationTargetException  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.batch.engine.internal.item.BatchEngineTaskItemResourceDelegate.getItems(BatchEngineTaskItemResourceDelegate.java:153)  at com.liferay.batch.engine.internal.BatchEngineExportTaskExecutorImpl._exportItems(BatchEngineExportTaskExecutorImpl.java:156)  at com.liferay.batch.engine.internal.BatchEngineExportTaskExecutorImpl.lambda$execute$0(BatchEngineExportTaskExecutorImpl.java:79)  at com.liferay.batch.engine.internal.BatchEngineTaskExecutorUtil.execute(BatchEngineTaskExecutorUtil.java:44)  at com.liferay.batch.engine.internal.BatchEngineExportTaskExecutorImpl.execute(BatchEngineExportTaskExecutorImpl.java:78)  ... 31 more Caused by: java.lang.RuntimeException: java.lang.NullPointerException  at com.liferay.portal.vulcan.util.ActionUtil.addAction(ActionUtil.java:66)  at com.liferay.headless.delivery.internal.resource.v1_0.BaseBlogPostingResourceImpl.addAction(BaseBlogPostingResourceImpl.java:463)  at com.liferay.headless.delivery.internal.resource.v1_0.BaseBlogPostingResourceImpl.addAction(BaseBlogPostingResourceImpl.java:472)  at com.liferay.headless.delivery.internal.resource.v1_0.BlogPostingResourceImpl._getListActions(BlogPostingResourceImpl.java:316)  at com.liferay.headless.delivery.internal.resource.v1_0.BlogPostingResourceImpl.getSiteBlogPostingsPage(BlogPostingResourceImpl.java:135)  at com.liferay.batch.engine.internal.test.BaseBatchEngineTaskExecutorTest$TestBlogPostingResourceImpl.getSiteBlogPostingsPage(BaseBatchEngineTaskExecutorTest.java:271)  ... 40 more Caused by: java.lang.NullPointerException  at com.liferay.portal.vulcan.util.ActionUtil._addAction(ActionUtil.java:76)  at com.liferay.portal.vulcan.util.ActionUtil.addAction(ActionUtil.java:61)  ... 45 more 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tai.nguyen Tai Nguyen
              Reporter:
              tai.nguyen Tai Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.0.8