<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>NullPointerException when exporting site data (Liferay 7.2)</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118173142" />
  <subtitle>NullPointerException when exporting site data (Liferay 7.2)</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118173142</id>
  <updated>2026-04-06T20:41:29Z</updated>
  <dc:date>2026-04-06T20:41:29Z</dc:date>
  <entry>
    <title>NullPointerException when exporting site data (Liferay 7.2)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118173141" />
    <author>
      <name>Sam Collett</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118173141</id>
    <updated>2019-12-30T18:48:53Z</updated>
    <published>2019-12-30T18:48:53Z</published>
    <summary type="html">I am currently getting an exception when I try to export a site (with everything checked and without look and feel settings) via the Publishing &amp;gt; Export function in Liferay 7.2. Does anyone know what the cause could be and how I can fix it? I have tried with with the default settings, checking everything and unchecking &amp;#39;look and feel&amp;#39; settings or even just selected a couple of aspects (e.g. the pages and documents), but still get the same error.&lt;br /&gt;&lt;br /&gt;2019-12-30 18:21:06.436 ERROR [liferay/background_task-2][BackgroundTaskMessageListener:177] Unable to execute background task&lt;br /&gt;com.liferay.exportimport.kernel.exception.ExportImportRuntimeException&lt;br /&gt;    at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:72)&lt;br /&gt;    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br /&gt;    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br /&gt;    at java.base/java.lang.reflect.Method.invoke(Method.java:566)&lt;br /&gt;    at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)&lt;br /&gt;    at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)&lt;br /&gt;    at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)&lt;br /&gt;    at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)&lt;br /&gt;    at com.sun.proxy.$Proxy126.exportLayoutsAsFile(Unknown Source)&lt;br /&gt;    at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.exportLayoutsAsFile(ExportImportLocalServiceUtil.java:49)&lt;br /&gt;    at com.liferay.exportimport.internal.background.task.LayoutExportBackgroundTaskExecutor.execute(LayoutExportBackgroundTaskExecutor.java:79)&lt;br /&gt;    at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)&lt;br /&gt;    at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)&lt;br /&gt;    at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:131)&lt;br /&gt;    at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)&lt;br /&gt;    at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)&lt;br /&gt;    at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)&lt;br /&gt;    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)&lt;br /&gt;    at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)&lt;br /&gt;    at java.base/java.lang.Thread.run(Thread.java:834)&lt;br /&gt;Caused by: java.lang.NullPointerException</summary>
    <dc:creator>Sam Collett</dc:creator>
    <dc:date>2019-12-30T18:48:53Z</dc:date>
  </entry>
</feed>
