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

NullPointerException occurs on Calendar modules integration tests

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Calendar
    • Labels:
    • Fix Priority:
      4

      Description

      Testray Results

      Full Console Log

      Error log:

       [exec] com.liferay.calendar.util.test.CalendarResourceUtilTest > testGetGroupCalendarResourceCreatesStagingCalendarResource STARTED
           [exec] 
           [exec] com.liferay.calendar.util.test.CalendarResourceUtilTest > testGetGroupCalendarResourceCreatesStagingCalendarResource FAILED
           [exec]     java.lang.NullPointerException
           [exec]     	at com.liferay.portal.service.permission.GroupPermissionImpl.contains(GroupPermissionImpl.java:96)
           [exec]     	at com.liferay.portal.service.permission.GroupPermissionImpl.contains(GroupPermissionImpl.java:118)
           [exec]     	at com.liferay.portal.service.permission.GroupPermissionImpl.check(GroupPermissionImpl.java:64)
           [exec]     	at com.liferay.portal.kernel.service.permission.GroupPermissionUtil.check(GroupPermissionUtil.java:37)
           [exec]     	at com.liferay.exportimport.internal.staging.StagingImpl._checkPermission(StagingImpl.java:3961)
           [exec]     	at com.liferay.exportimport.internal.staging.StagingImpl.publishLayouts(StagingImpl.java:2281)
           [exec]     	at com.liferay.exportimport.internal.staging.StagingImpl.publishLayouts(StagingImpl.java:2372)
           [exec]     	at com.liferay.exportimport.internal.staging.StagingImpl.publishLayouts(StagingImpl.java:2329)
           [exec]     	at com.liferay.exportimport.internal.staging.StagingImpl.publishLayouts(StagingImpl.java:2384)
           [exec]     	at com.liferay.exportimport.kernel.staging.StagingUtil.publishLayouts(StagingUtil.java:333)
           [exec]     	at com.liferay.portlet.exportimport.service.impl.StagingLocalServiceImpl.enableLocalStaging(StagingLocalServiceImpl.java:369)
           [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.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [exec]     	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
           [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec]     	at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
           [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.$Proxy106.enableLocalStaging(Unknown Source)
           [exec]     	at com.liferay.exportimport.kernel.service.StagingLocalServiceUtil.enableLocalStaging(StagingLocalServiceUtil.java:85)
           [exec]     	at com.liferay.portal.kernel.test.util.GroupTestUtil.enableLocalStaging(GroupTestUtil.java:201)
           [exec]     	at com.liferay.portal.kernel.test.util.GroupTestUtil.enableLocalStaging(GroupTestUtil.java:175)
           [exec]     	at com.liferay.calendar.util.test.CalendarResourceUtilTest.testGetGroupCalendarResourceCreatesStagingCalendarResource(CalendarResourceUtilTest.java:100)
           [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$2.evaluate(TestExecutorRunnable.java:234)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [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 com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [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:181)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              joyce.wang Joyce Wang
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 14 weeks, 4 days ago

                  Packages

                  Version Package
                  Master