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

Content Pages do not work with page variations

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Enable local live staging with page versioning enabled
      2. Create a content page
      3. View content page and add a page variation
      4. Go to Main Variation, mark the page ready for publication and publish to live
      5. Switch page variations to create variation
      6. Edit content page
      7. Publish page

      Expected result:

      Page is able to be published

      Actual result:

      Page is not published and error in console log:

      2019-04-30 21:51:31.149 ERROR [http-nio-8080-exec-8][JDBCExceptionReporter:234] Duplicate entry '0-3-19-com_liferay_layout_content_page_editor_web_internal_portl' for key 'IX_C7057FF7'
      2019-04-30 21:51:31.159 ERROR [http-nio-8080-exec-8][PortletServlet:112] javax.portlet.PortletException: java.lang.Exception: java.lang.Exception: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      javax.portlet.PortletException: java.lang.Exception: java.lang.Exception: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:69)
      at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:364)
      at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:97)
      at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:246)
      at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
      at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
      at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
      at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
      at com.liferay.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:569)
      at com.liferay.portlet.internal.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:615)
      at com.liferay.portlet.internal.InvokerPortletImpl.processAction(InvokerPortletImpl.java:304)
      at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.processAction(MonitoringInvokerPortlet.java:216)
      at com.liferay.portlet.internal.PortletContainerImpl._processAction(PortletContainerImpl.java:491)
      at com.liferay.portlet.internal.PortletContainerImpl.lambda$processAction$0(PortletContainerImpl.java:148)
      at com.liferay.portlet.internal.PortletContainerImpl._preserveGroupIds(PortletContainerImpl.java:396)
      at com.liferay.portlet.internal.PortletContainerImpl.processAction(PortletContainerImpl.java:141)
      at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:95)
      at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:78)
      at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:118)
      at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:341)
      at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:172)
      at com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:405)
      at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
      at com.liferay.portal.internal.servlet.MainServlet.doPost(MainServlet.java:208)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
      at com.liferay.portal.internal.servlet.MainServlet.service(MainServlet.java:620)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:111)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:393)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:111)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:358)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:260)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:263)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
      at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.Exception: java.lang.Exception: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.layout.content.page.editor.web.internal.portlet.action.PublishLayoutMVCActionCommand.doProcessAction(PublishLayoutMVCActionCommand.java:67)
      at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:61)
      ... 158 more
      Caused by: java.lang.Exception: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl.copyLayout(LayoutCopyHelperImpl.java:83)
      at com.liferay.layout.content.page.editor.web.internal.portlet.action.PublishLayoutMVCActionCommand$PublishLayoutCallable.call(PublishLayoutMVCActionCommand.java:104)
      at com.liferay.layout.content.page.editor.web.internal.portlet.action.PublishLayoutMVCActionCommand$PublishLayoutCallable.call(PublishLayoutMVCActionCommand.java:86)
      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.content.page.editor.web.internal.portlet.action.PublishLayoutMVCActionCommand.doProcessAction(PublishLayoutMVCActionCommand.java:63)
      ... 159 more
      Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:443)
      at com.liferay.portal.service.persistence.impl.PortletPreferencesPersistenceImpl.fetchByO_O_P_P(PortletPreferencesPersistenceImpl.java:5555)
      at com.liferay.portal.service.persistence.impl.PortletPreferencesPersistenceImpl.fetchByO_O_P_P(PortletPreferencesPersistenceImpl.java:5451)
      at com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl.fetchPortletPreferences(PortletPreferencesLocalServiceImpl.java:182)
      at sun.reflect.GeneratedMethodAccessor356.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.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
      at com.sun.proxy.$Proxy65.fetchPortletPreferences(Unknown Source)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl._copyPortletPreferences(LayoutCopyHelperImpl.java:285)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl.access$300(LayoutCopyHelperImpl.java:70)
      at com.liferay.layout.internal.util.LayoutCopyHelperImpl$CopyLayoutCallable.call(LayoutCopyHelperImpl.java:379)
      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)
      ... 166 more
      Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:39)
      at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:124)
      at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:99)
      at com.liferay.portal.service.persistence.impl.PortletPreferencesPersistenceImpl.fetchByO_O_P_P(PortletPreferencesPersistenceImpl.java:5537)
      ... 188 more
      Caused by: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
      at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:268)
      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
      at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
      at com.liferay.portal.dao.orm.hibernate.event.NestableAutoFlushEventListener.onAutoFlush(NestableAutoFlushEventListener.java:69)
      at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1185)
      at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1261)
      at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
      at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:112)
      ... 190 more
      Caused by: java.sql.BatchUpdateException: Duplicate entry '0-3-19-com_liferay_layout_content_page_editor_web_internal_portl' for key 'IX_C7057FF7'
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at com.mysql.cj.util.Util.handleNewInstance(Util.java:191)
      at com.mysql.cj.util.Util.getInstance(Util.java:166)
      at com.mysql.cj.util.Util.getInstance(Util.java:173)
      at com.mysql.cj.jdbc.exceptions.SQLError.createBatchUpdateException(SQLError.java:224)
      at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchSerially(ClientPreparedStatement.java:870)
      at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchInternal(ClientPreparedStatement.java:452)
      at com.mysql.cj.jdbc.StatementImpl.executeBatch(StatementImpl.java:814)
      at com.zaxxer.hikari.pool.ProxyStatement.executeBatch(ProxyStatement.java:125)
      at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeBatch(HikariProxyPreparedStatement.java)
      at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
      at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
      ... 198 more
      Caused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '0-3-19-com_liferay_layout_content_page_editor_web_internal_portl' for key 'IX_C7057FF7'
      at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117)
      at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
      at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
      at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:970)
      at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1109)
      at com.mysql.cj.jdbc.ClientPreparedStatement.executeBatchSerially(ClientPreparedStatement.java:849)
      ... 204 more

      Reproduced on:

      Tomcat 9.0.17 + MySQL 5.7.

      Portal Master GIT Commit: c06a347a661ab8de87aa03cc27a520553196057c

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brooke.dalton Brooke Dalton
              Reporter:
              brooke.dalton Brooke Dalton
              Participants of an Issue:
              Recent user:
              Brooke Dalton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 24 weeks, 6 days ago

                  Packages

                  Version Package