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

Reports Admin portlet fails to import from lar

Details

    Description

      Steps to Reproduce:

      1. Go to Liferay > Configuration > Reports Admin
      2. Go to Definitions tab
      3. Add new definition
      4. Choose attached definition
      5. Add Report in CSV format
      6. Export portlet and save LAR
      7. Shutdown portal
      8. Start fresh portal server
      9. Go to Liferay > Configuration > Reports Admin
      10. Import LAR file

      Expected Result:
      Portlet data can be imported.

      Actual Result:
      Import fails:

      An unexpected error occurred with the publication process. Please check your portal and publishing configuration.
      com.thoughtworks.xstream.mapper.CannotResolveClassException: com.liferay.portal.reports.engine.console.model.impl.DefinitionImpl
      

      Liferay logs:

      00:08:56,020 WARN  [liferay/background_task-5][PortletImportBackgroundTaskExecutor:94] Unable to import portlet: com.thoughtworks.xstream.mapper.CannotResolveClassException: com.liferay.portal.reports.engine.console.model.impl.DefinitionImpl
      00:08:56,032 ERROR [liferay/background_task-5][BackgroundTaskMessageListener:165] Unable to execute background task
      com.liferay.exportimport.kernel.lar.PortletDataException: com.thoughtworks.xstream.mapper.CannotResolveClassException: com.liferay.portal.reports.engine.console.model.impl.DefinitionImpl
      	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:389)
      	at com.liferay.exportimport.controller.PortletImportController.importPortletData(PortletImportController.java:290)
      	at com.liferay.exportimport.controller.PortletImportController.importPortletData(PortletImportController.java:826)
      	at com.liferay.exportimport.controller.PortletImportController.doImportPortletInfo(PortletImportController.java:612)
      	at com.liferay.exportimport.controller.PortletImportController.importFile(PortletImportController.java:227)
      	at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.importPortletInfo(ExportImportLocalServiceImpl.java:373)
      	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.RetryAdvice.invoke(RetryAdvice.java:46)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
      	at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
      	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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	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.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
      	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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	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.$Proxy106.importPortletInfo(Unknown Source)
      	at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.importPortletInfo(ExportImportLocalServiceUtil.java:230)
      	at com.liferay.exportimport.background.task.PortletImportBackgroundTaskExecutor$PortletImportCallable.call(PortletImportBackgroundTaskExecutor.java:124)
      	at com.liferay.exportimport.background.task.PortletImportBackgroundTaskExecutor$PortletImportCallable.call(PortletImportBackgroundTaskExecutor.java:110)
      	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.PortletImportBackgroundTaskExecutor.execute(PortletImportBackgroundTaskExecutor.java:85)
      	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:124)
      	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.mapper.CannotResolveClassException: com.liferay.portal.reports.engine.console.model.impl.DefinitionImpl
      	at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
      	at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
      	at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
      	at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
      	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.MapperWrapper.realClass(MapperWrapper.java:30)
      	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.MapperWrapper.realClass(MapperWrapper.java:30)
      	at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.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.MapperWrapper.realClass(MapperWrapper.java:30)
      	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.MapperWrapper.realClass(MapperWrapper.java:30)
      	at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
      	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.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
      	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:651)
      	at com.liferay.exportimport.lar.PortletDataContextImpl.getZipEntryAsObject(PortletDataContextImpl.java:1267)
      	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil._getStagedModel(StagedModelDataHandlerUtil.java:442)
      	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:353)
      	at com.liferay.portal.reports.engine.console.web.admin.lar.AdminPortletDataHandler.doImportData(AdminPortletDataHandler.java:164)
      	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:382)
      	... 55 more
      

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7.17. Portal ee-7.0.x GIT ID: ff0513e77f5179d1b09371b59647c24950738692.

      Attachments

        Activity

          People

            victor.ware Victor Ware
            victor.ware Victor Ware
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 37 weeks, 5 days ago

              Packages

                Version Package
                7.0.X EE
                Master