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

NPE occurs on JournalSubscriptionClassTypeTest#testSubscriptionClassTypeWhenUpdatingBaseModel

    Details

      Description

      Error Message

           [exec] com.liferay.journal.subscriptions.test.JournalSubscriptionClassTypeTest > testSubscriptionClassTypeWhenUpdatingBaseModel FAILED
           [exec]     com.liferay.portal.kernel.search.SearchException: java.lang.NullPointerException
           [exec]     	at com.liferay.portal.kernel.search.BaseIndexer.getDocument(BaseIndexer.java:180)
           [exec]     	at com.liferay.journal.internal.search.JournalArticleIndexer._reindexEveryVersionOfResourcePrimKey(JournalArticleIndexer.java:1006)
           [exec]     	at com.liferay.journal.internal.search.JournalArticleIndexer.doReindex(JournalArticleIndexer.java:617)
           [exec]     	at com.liferay.journal.internal.search.JournalArticleIndexer.doReindex(JournalArticleIndexer.java:117)
           [exec]     	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:544)
           [exec]     	at com.liferay.portal.search.IndexableAdvice.afterReturning(IndexableAdvice.java:137)
           [exec]     	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:66)
           [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec]     	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec]     	at com.sun.proxy.$Proxy939.updateArticle(Unknown Source)
           [exec]     	at com.liferay.journal.service.JournalArticleLocalServiceUtil.updateArticle(JournalArticleLocalServiceUtil.java:3858)
           [exec]     	at com.liferay.journal.test.util.JournalTestUtil.updateArticle(JournalTestUtil.java:947)
           [exec]     	at com.liferay.journal.test.util.JournalTestUtil.updateArticle(JournalTestUtil.java:895)
           [exec]     	at com.liferay.journal.test.util.JournalTestUtil.updateArticle(JournalTestUtil.java:855)
           [exec]     	at com.liferay.journal.test.util.JournalTestUtil.updateArticle(JournalTestUtil.java:884)
           [exec]     	at com.liferay.journal.test.util.JournalTestUtil.updateArticleWithWorkflow(JournalTestUtil.java:975)
           [exec]     	at com.liferay.journal.subscriptions.test.JournalSubscriptionClassTypeTest.updateBaseModel(JournalSubscriptionClassTypeTest.java:129)
           [exec]     	at com.liferay.subscription.test.util.BaseSubscriptionClassTypeTestCase.testSubscriptionClassTypeWhenUpdatingBaseModel(BaseSubscriptionClassTypeTestCase.java:53)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
           [exec]     Caused by: java.lang.NullPointerException
      

      Affect Test
      JournalSubscriptionClassTypeTest#testSubscriptionClassTypeWhenUpdatingBaseModel

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Yang Cao
              Engineering Assignee:
              Ruben Pulido
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                36 weeks, 2 days ago

                  Packages

                  Version Package
                  Master