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

NoSuchLayoutException in CopyLayoutPageTemplateEntryMVCActionCommandTest

    Details

      Description

      CopyLayoutPageTemplateEntryMVCActionCommandTest#testCopyLayoutPageTemplateEntryRollbackMVCActionCommand is failing with:

          [exec] com.liferay.layout.page.template.admin.web.internal.portlet.action.test.CopyLayoutPageTemplateEntryMVCActionCommandTest > testCopyLayoutPageTemplateEntryRollbackMVCActionCommand STARTED
           [exec] 12:48:45,585 ERROR [com.liferay.layout.page.template.admin.web.test-executor-thread][CopyLayoutPageTemplateEntryMVCActionCommand:80] com.liferay.portal.kernel.exception.NoSuchLayoutException: No Layout exists with the primary key 49
           [exec] com.liferay.portal.kernel.exception.NoSuchLayoutException: No Layout exists with the primary key 49
           [exec] 	at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:17135)
           [exec] 	at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:17151)
           [exec] 	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.getLayout(LayoutLocalServiceImpl.java:1225)
           [exec] 	at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
           [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec] 	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler._invoke(LayoutLocalServiceStagingAdvice.java:775)
           [exec] 	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler.invoke(LayoutLocalServiceStagingAdvice.java:650)
           [exec] 	at com.sun.proxy.$Proxy89.getLayout(Unknown Source)
           [exec] 	at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
           [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.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec] 	at com.sun.proxy.$Proxy89.getLayout(Unknown Source)
           [exec] 	at com.liferay.layout.page.template.admin.web.internal.portlet.action.CopyLayoutPageTemplateEntryMVCActionCommand._copyLayoutPageTemplateEntry(CopyLayoutPageTemplateEntryMVCActionCommand.java:107)
           [exec] 	at com.liferay.layout.page.template.admin.web.internal.portlet.action.CopyLayoutPageTemplateEntryMVCActionCommand.doProcessAction(CopyLayoutPageTemplateEntryMVCActionCommand.java:75)
           [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.kernel.test.ReflectionTestUtil.invoke(ReflectionTestUtil.java:220)
           [exec] 	at com.liferay.layout.page.template.admin.web.internal.portlet.action.test.CopyLayoutPageTemplateEntryMVCActionCommandTest.testCopyLayoutPageTemplateEntryRollbackMVCActionCommand(CopyLayoutPageTemplateEntryMVCActionCommandTest.java:141)
           [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.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 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

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              brooke.dalton Brooke Dalton
              Participants of an Issue:
              Recent user:
              Tomas Polesovsky (topolik)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 1 day ago

                Packages

                Version Package
                Master