Skip to content

Instantly share code, notes, and snippets.

@kmaria

kmaria/LPS-94336 Secret

Last active Apr 18, 2019
Embed
What would you like to do?
2019-04-18 12:47:38.763 ERROR [liferay/background_task-8][BackgroundTaskMessageListener:173] Unable to execute background task
com.liferay.exportimport.kernel.lar.PortletDataException: com.liferay.portal.kernel.dao.orm.ORMException: {"classNameId":"20003","classPK":"42","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-43","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"4","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591658733,"mvccVersion":"0","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"43","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591658733\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"9d917063-b263-6b8a-f548-629afd0038f3"} is stale in comparison to {"classNameId":"20003","classPK":"42","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-43","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"4","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591658733,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"43","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591658733\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"9d917063-b263-6b8a-f548-629afd0038f3"}
at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:433)
at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:456)
at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:442)
at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.doImportData(ChangesetPortletDataHandler.java:215)
at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:387)
at com.liferay.exportimport.internal.controller.PortletImportControllerImpl.importPortletData(PortletImportControllerImpl.java:415)
at com.liferay.exportimport.internal.controller.PortletImportControllerImpl.importPortletData(PortletImportControllerImpl.java:346)
at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.importSitePortlets(StagedGroupStagedModelDataHandler.java:599)
at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.doImportStagedModel(StagedGroupStagedModelDataHandler.java:319)
at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.doImportStagedModel(StagedGroupStagedModelDataHandler.java:78)
at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:392)
at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:456)
at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:442)
at com.liferay.exportimport.internal.controller.LayoutImportController.doImportFile(LayoutImportController.java:580)
at com.liferay.exportimport.internal.controller.LayoutImportController.importFile(LayoutImportController.java:220)
at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.importLayouts(ExportImportLocalServiceImpl.java:219)
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.$Proxy141.importLayouts(Unknown Source)
at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.importLayouts(ExportImportLocalServiceUtil.java:121)
at com.liferay.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor$LayoutStagingImportCallable.call(LayoutStagingBackgroundTaskExecutor.java:285)
at com.liferay.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor$LayoutStagingImportCallable.call(LayoutStagingBackgroundTaskExecutor.java:258)
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.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor.execute(LayoutStagingBackgroundTaskExecutor.java:145)
at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62)
at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:75)
at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:132)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: {"classNameId":"20003","classPK":"42","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-43","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"4","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591658733,"mvccVersion":"0","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"43","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591658733\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"9d917063-b263-6b8a-f548-629afd0038f3"} is stale in comparison to {"classNameId":"20003","classPK":"42","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-43","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"4","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591658733,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"43","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591658733\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"9d917063-b263-6b8a-f548-629afd0038f3"}
at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:443)
at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.updateImpl(LayoutPersistenceImpl.java:34314)
at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.updateImpl(LayoutPersistenceImpl.java:75)
at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:543)
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.publishDraft(LayoutLocalServiceImpl.java:2285)
at com.liferay.portal.service.impl.LayoutLocalServiceImpl.updateLayout(LayoutLocalServiceImpl.java:2458)
at sun.reflect.GeneratedMethodAccessor959.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler._invoke(LayoutLocalServiceStagingAdvice.java:766)
at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice$LayoutLocalServiceStagingInvocationHandler.invoke(LayoutLocalServiceStagingAdvice.java:745)
at com.sun.proxy.$Proxy267.updateLayout(Unknown Source)
at sun.reflect.GeneratedMethodAccessor959.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.$Proxy880.updateLayout(Unknown Source)
at com.liferay.portal.kernel.service.LayoutLocalServiceWrapper.updateLayout(LayoutLocalServiceWrapper.java:1666)
at com.liferay.layout.change.tracking.internal.service.CTLayoutLocalServiceWrapper.updateLayout(CTLayoutLocalServiceWrapper.java:187)
at sun.reflect.GeneratedMethodAccessor959.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.$Proxy881.updateLayout(Unknown Source)
at sun.reflect.GeneratedMethodAccessor959.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.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:65)
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.$Proxy135.updateLayout(Unknown Source)
at com.liferay.layout.admin.web.internal.exportimport.data.handler.LayoutStagedModelDataHandler.doImportStagedModel(LayoutStagedModelDataHandler.java:616)
at com.liferay.layout.admin.web.internal.exportimport.data.handler.LayoutStagedModelDataHandler.doImportStagedModel(LayoutStagedModelDataHandler.java:128)
at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:392)
... 45 more
Caused by: com.liferay.portal.kernel.dao.orm.ORMException: {"classNameId":"20003","classPK":"42","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-43","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"4","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591658733,"mvccVersion":"0","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"43","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591658733\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"9d917063-b263-6b8a-f548-629afd0038f3"} is stale in comparison to {"classNameId":"20003","classPK":"42","colorSchemeId":"","companyId":"20101","createDate":1555591289412,"css":"","description":"","descriptionCurrentValue":"","friendlyURL":"\/new-page1","groupId":"39102","headId":"-43","hidden":true,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"4","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","modifiedDate":1555591658733,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">new page<\/Name><\/root>","nameCurrentValue":"new page","parentLayoutId":"0","parentPlid":"0","plid":"43","priority":2147483647,"privateLayout":false,"publishDate":1555591293043,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","system":true,"themeId":"","title":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Title language-id=\"en_US\">new page<\/Title><\/root>","titleCurrentValue":"new page","type":"asset_display","typeSettings":"last-import-date=1555591658733\nlast-import-user-name=Test Test\nlast-import-user-uuid=b2f71fe9-cc74-fc72-ee56-ea0c2270736b\n","userId":"20129","userName":"Test Test","uuid":"9d917063-b263-6b8a-f548-629afd0038f3"}
at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:67)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:226)
at com.liferay.portal.kernel.dao.orm.ClassLoaderSession.merge(ClassLoaderSession.java:394)
at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.updateImpl(LayoutPersistenceImpl.java:34310)
... 83 more
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.liferay.portal.model.impl.LayoutImpl#43]
at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:485)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:255)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:867)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:851)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:855)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.merge(SessionImpl.java:223)
... 85 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.