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

Fail to publish to live with page versioning enabled

    Details

      Description

      Steps to reproduce:

      1. Enable local staging
      2. In the page versioning, check Enabled on Public Pages
      3. Add a public page
      4. Switch on Ready for Publication
      5. Click Publish to Live

      Expected result:
      Publish Successfully.

      Actual result:
      Publish fails with errors in console:

      2018-05-16 02:52:20.901 WARN  [liferay/background_task-1][LayoutStagingBackgroundTaskExecutor:177] Unable to publish layout: com.thoughtworks.xstream.converters.ConversionException: com.liferay.portal.kernel.model.ModelWrapper : com.liferay.portal.kernel.model.ModelWrapper_---- Debugging information ----_message             : com.liferay.portal.kernel.model.ModelWrapper_cause-exception     : com.thoughtworks.xstream.security.ForbiddenClassException_cause-message       : com.liferay.portal.kernel.model.ModelWrapper_class               : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy_required-type       : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy_converter-type      : com.thoughtworks.xstream.converters.extended.DynamicProxyConverter_path                : /dynamic-proxy/handler/_layout/_layoutSet/interface[2]_line number         : 60_class[1]            : com.liferay.portal.model.impl.LayoutImpl_converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter_class[2]            : com.liferay.portal.kernel.model.LayoutStagingHandler_version             : 1.4.7_------------------------------- [Sanitized]
      2018-05-16 02:52:20.906 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:166] Unable to execute background task
      com.liferay.portal.kernel.exception.SystemException: com.thoughtworks.xstream.converters.ConversionException: com.liferay.portal.kernel.model.ModelWrapper : com.liferay.portal.kernel.model.ModelWrapper_---- Debugging information ----_message             : com.liferay.portal.kernel.model.ModelWrapper_cause-exception     : com.thoughtworks.xstream.security.ForbiddenClassException_cause-message       : com.liferay.portal.kernel.model.ModelWrapper_class               : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy_required-type       : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy_converter-type      : com.thoughtworks.xstream.converters.extended.DynamicProxyConverter_path                : /dynamic-proxy/handler/_layout/_layoutSet/interface[2]_line number         : 60_class[1]            : com.liferay.portal.model.impl.LayoutImpl_converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter_class[2]            : com.liferay.portal.kernel.model.LayoutStagingHandler_version             : 1.4.7_------------------------------- [Sanitized]
              at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.importLayouts(ExportImportLocalServiceImpl.java:221)
              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.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
              at com.sun.proxy.$Proxy115.importLayouts(Unknown Source)
              at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.importLayouts(ExportImportLocalServiceUtil.java:112)
              at com.liferay.exportimport.background.task.LayoutStagingBackgroundTaskExecutor$LayoutStagingImportCallable.call(LayoutStagingBackgroundTaskExecutor.java:279)
              at com.liferay.exportimport.background.task.LayoutStagingBackgroundTaskExecutor$LayoutStagingImportCallable.call(LayoutStagingBackgroundTaskExecutor.java:252)
              at com.liferay.portal.spring.transaction.TransactionInvokerImpl$CallableMethodInvocation.proceed(TransactionInvokerImpl.java:101)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
              at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:47)
              at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28)
              at com.liferay.exportimport.background.task.LayoutStagingBackgroundTaskExecutor.execute(LayoutStagingBackgroundTaskExecutor.java:141)
              at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:54)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
              at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:125)
              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:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: com.liferay.portal.kernel.model.ModelWrapper : com.liferay.portal.kernel.model.ModelWrapper_---- Debugging information ----_message             : com.liferay.portal.kernel.model.ModelWrapper_cause-exception     : com.thoughtworks.xstream.security.ForbiddenClassException_cause-message       : com.liferay.portal.kernel.model.ModelWrapper_class               : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy_required-type       : com.thoughtworks.xstream.mapper.DynamicProxyMapper$DynamicProxy_converter-type      : com.thoughtworks.xstream.converters.extended.DynamicProxyConverter_path                : /dynamic-proxy/handler/_layout/_layoutSet/interface[2]_line number         : 60_class[1]            : com.liferay.portal.model.impl.LayoutImpl_converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter_class[2]            : com.liferay.portal.kernel.model.LayoutStagingHandler_version             : 1.4.7_------------------------------- [Sanitized]
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:474)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:406)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
              at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:127)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
              at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1185)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1169)
              at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1040)
              at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1031)
              at com.liferay.exportimport.lar.PortletDataContextImpl.fromXML(PortletDataContextImpl.java:669)
              at com.liferay.exportimport.lar.PortletDataContextImpl.getZipEntryAsObject(PortletDataContextImpl.java:1297)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil._getStagedModel(StagedModelDataHandlerUtil.java:446)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:357)
              at com.liferay.exportimport.controller.LayoutImportController.importLayout(LayoutImportController.java:1043)
              at com.liferay.exportimport.controller.LayoutImportController.doImportFile(LayoutImportController.java:719)
              at com.liferay.exportimport.controller.LayoutImportController.importFile(LayoutImportController.java:218)
              at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.importLayouts(ExportImportLocalServiceImpl.java:206)
              ... 30 more
      Caused by: com.thoughtworks.xstream.security.ForbiddenClassException: com.liferay.portal.kernel.model.ModelWrapper
              at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
              at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
              at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.unmarshal(DynamicProxyConverter.java:108)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
              ... 64 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                lu.liu Lu Liu
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 17 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP47
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 Beta 1
                  7.1.X
                  Master