Exception in import/export custom serviceException in import/export custom servicehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1142038782024-03-29T07:12:37Z2024-03-29T07:12:37ZRE: Exception in import/export custom serviceJoaquin Cabalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1193723802020-06-11T15:54:46Z2020-06-11T15:54:46ZThanks Amit!! It works! Joaquin Cabal2020-06-11T15:54:46ZRE: Exception in import/export custom serviceAmit Sharmahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142081642019-07-04T19:29:08Z2019-07-04T19:29:08ZHi,<br />I found the solution.<br /> adding below line to doImportData solved my issue :<br /><blockquote>portletDataContext.setClassLoader(PageContentImpl.class.getClassLoader());<br /></blockquote>Thanks-AmitAmit Sharma2019-07-04T19:29:08ZException in import/export custom serviceAmit Sharmahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142038772019-07-04T11:02:44Z2019-07-04T11:02:44Z<html><head></head><body>Hi,I have implemented the Custom Import/Export for my service.I am able to export the record in my custom template.When I am trying to import the records i am getting below exception :<pre><code>Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: com.mopa.sco.pageview.model.impl.PageContentImpl</code></pre><pre><code>at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)</code></pre><pre><code>at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)</code></pre><pre><code>at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)</code></pre><pre><code>at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)</code></pre><pre><code>at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)</code></pre><pre><code>at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486)</code></pre><pre><code>at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466)</code></pre><pre><code>at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337)</code></pre><pre><code>at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1328)</code></pre><pre><code>at com.liferay.exportimport.internal.lar.PortletDataContextImpl.fromXML(PortletDataContextImpl.java:721)</code></pre><pre><code>at com.liferay.exportimport.internal.lar.PortletDataContextImpl.getZipEntryAsObject(PortletDataContextImpl.java:1470)</code></pre><pre><code>at com.liferay.exportimport.kernel.lar.StagedM