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

LayoutPageTemplateEntryStagedModelDataHandlerTest fails due to duplicate key

    Details

      Description

      The following error is thrown when executing LayoutPageTemplateEntryStagedModelDataHandlerTest

       

       com.liferay.layout.page.template.internal.exportimport.data.handler.test.LayoutPageTemplateEntryStagedModelDataHandlerTest > testImportLayoutPageTemplateEntryByDefaultUser FAILED
          com.liferay.layout.page.template.exception.DuplicateLayoutPageTemplateEntryException: Duplicate layout page template for group 20127 with name Test Layout Prototype
              at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.validate(LayoutPageTemplateEntryLocalServiceImpl.java:757)
              at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:125)
              at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:723)
              at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:95)
              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.$Proxy1665.addLayoutPageTemplateEntry(Unknown Source)
              at com.liferay.layout.page.template.internal.service.LayoutPageTemplateLayoutPrototypeLocalServiceWrapper.addLayoutPrototype(LayoutPageTemplateLayoutPrototypeLocalServiceWrapper.java:78)
              at sun.reflect.GeneratedMethodAccessor550.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
              at com.sun.proxy.$Proxy1493.addLayoutPrototype(Unknown Source)
              at sun.reflect.GeneratedMethodAccessor550.invoke(Unknown Source)
              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.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:60)
              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.$Proxy133.addLayoutPrototype(Unknown Source)
              at com.liferay.portal.kernel.service.LayoutPrototypeLocalServiceUtil.addLayoutPrototype(LayoutPrototypeLocalServiceUtil.java:63)
              at com.liferay.layout.page.template.internal.exportimport.data.handler.test.LayoutPageTemplateEntryStagedModelDataHandlerTest.addLayoutPrototype(LayoutPageTemplateEntryStagedModelDataHandlerTest.java:139)
              at com.liferay.layout.page.template.internal.exportimport.data.handler.test.LayoutPageTemplateEntryStagedModelDataHandlerTest.testImportLayoutPageTemplateEntryByDefaultUser(LayoutPageTemplateEntryStagedModelDataHandlerTest.java:81)
              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:180)
              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.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:54)
              at org.junit.rules.RunRules.evaluate(RunRules.java:20)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:118)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
              at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:71)
              at org.junit.rules.RunRules.evaluate(RunRules.java:20)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:155)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:77)
              at java.lang.Thread.run(Thread.java:748)

        Attachments

          Activity

            People

            • Assignee:
              kyle.miho Kyle Miho
              Reporter:
              jurgen.kappler Jürgen Kappler
              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:
                14 weeks, 4 days ago

                Packages

                Version Package
                Master