com.liferay.portal.kernel.exception.SystemException: java.lang.NullPointerException

Liferay Issues | Mária Kispál | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    To reproduce: 1. Navigate to Site Pages 2. Click on Export link 3. Click on Export button Actual: Export fails with An unexpected error occurred with the publication process. Please check your portal and publishing configuration. java.lang.NullPointerException {code} 09:48:38,809 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:137] Unable to execute background task com.liferay.portal.kernel.exception.SystemException: java.lang.NullPointerException at com.liferay.portal.service.impl.LayoutLocalServiceImpl.exportLayoutsAsFile(LayoutLocalSer viceImpl.java:899) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvoca tion.java:149) at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocal ServiceVirtualLayoutsAdvice.java:181) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvoca tion.java:123) at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalService StagingAdvice.java:139) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvoca tion.java:123) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransacti onExecutor.java:95) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionIntercepto r.java:55) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvoca tion.java:123) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173) at com.sun.proxy.$Proxy70.exportLayoutsAsFile(Unknown Source) at com.liferay.portal.service.LayoutLocalServiceUtil.exportLayoutsAsFile(LayoutLocalServiceU til.java:527) at com.liferay.portal.lar.backgroundtask.LayoutExportBackgroundTaskExecutor.execute(LayoutEx portBackgroundTaskExecutor.java:81) at com.liferay.portal.backgroundtask.messaging.BackgroundTaskMessageListener.doReceive(Backg roundTaskMessageListener.java:110) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java: 26) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener .java:72) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71 ) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExe cutor.java:747) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor .java:658) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at com.liferay.portal.lar.PortletExporter.exportPortlet(PortletExporter.java:644) at com.liferay.portal.lar.LayoutExporter.doExportLayoutsAsFile(LayoutExporter.java:557) at com.liferay.portal.lar.LayoutExporter.exportLayoutsAsFile(LayoutExporter.java:202) at com.liferay.portal.service.impl.LayoutLocalServiceImpl.exportLayoutsAsFile(LayoutLocalSer viceImpl.java:888) ... 23 more {code}

    Liferay Issues | 2 years ago | Mária Kispál
    com.liferay.portal.kernel.exception.SystemException: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.liferay.portal.lar.PortletExporter.exportPortlet()
    2. Liferay Portal Service
      LayoutExporter.exportLayoutsAsFile
      1. com.liferay.portal.lar.PortletExporter.exportPortlet(PortletExporter.java:644)
      2. com.liferay.portal.lar.LayoutExporter.doExportLayoutsAsFile(LayoutExporter.java:557)
      3. com.liferay.portal.lar.LayoutExporter.exportLayoutsAsFile(LayoutExporter.java:202)
      3 frames