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

Layout copy helper test is failing due to absence of service context in corresponding thread local

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: WCM
    • Labels:

      Description

      Layout copy helper test is failing due to absence of service context in corresponding thread local

       

      com.liferay.layout.test.LayoutCopyHelperTest > testCopyLayoutNameAndTitle FAILED
      java.lang.Exception: java.lang.NullPointerException
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl.copyLayout(LayoutCopyHelperImpl.java:83)
      at com.liferay.layout.test.LayoutCopyHelperTest.testCopyLayoutNameAndTitle(LayoutCopyHelperTest.java:240)
      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:205)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:142)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:180)
      at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:94)
      at java.lang.Thread.run(Thread.java:748)

      Caused by:
      java.lang.NullPointerException
      at com.liferay.layout.page.template.service.impl.LayoutPageTemplateStructureLocalServiceImpl.addLayoutPageTemplateStructure(LayoutPageTemplateStructureLocalServiceImpl.java:64)
      at com.liferay.layout.page.template.service.impl.LayoutPageTemplateStructureLocalServiceImpl.rebuildLayoutPageTemplateStructure(LayoutPageTemplateStructureLocalServiceImpl.java:184)
      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.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:64)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
      at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
      at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      at com.sun.proxy.$Proxy1426.rebuildLayoutPageTemplateStructure(Unknown Source)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl._copyLayoutPageTemplateStructure(LayoutCopyHelperImpl.java:119)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl.access$200(LayoutCopyHelperImpl.java:70)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl$CopyLayoutCallable.call(LayoutCopyHelperImpl.java:377)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl$CopyLayoutCallable.call(LayoutCopyHelperImpl.java:369)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:51)
      at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:39)
      at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl.copyLayout(LayoutCopyHelperImpl.java:80)
      ... 29 more

        Attachments

          Activity

            People

            • Assignee:
              kyle.miho Kyle Miho
              Reporter:
              pavel.savinov Pavel Savinov
              Participants of an Issue:
              Recent user:
              Brian Wulbern
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 weeks, 3 days ago