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

NPE when upload a file through WebDAV under workflow with sync deployed

    Details

      Description

      Steps to reproduce:

      1. Deploy sync-web and kaleo-web.
      2. Edit Documents and Media > Home to use Single Approver.
      3. Copy a file through WebDAV.

      Actual results:
      The errors appear:

      03:50:24,668 ERROR [liferay/document_library_sync_event_processor-1][SerialDestination:70] Unable to process message {destinationName=liferay/document_library_sync_event_processor, response=null, responseDestinationName=null, responseId=null, payload=null, values={defaultLocale=en_US, groupId=0, permissionChecker=com.liferay.portal.kernel.util.TransientValue@6ce96c52, principalName=20199, event=update, modifiedTime=1482292224656, companyId=20155, type=file, typePK=20538}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:67)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at com.liferay.sync.service.impl.SyncDLObjectLocalServiceImpl.addSyncDLObject(SyncDLObjectLocalServiceImpl.java:115)
      	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(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.sun.proxy.$Proxy422.addSyncDLObject(Unknown Source)
      	at com.liferay.sync.service.SyncDLObjectLocalServiceUtil.addSyncDLObject(SyncDLObjectLocalServiceUtil.java:320)
      	at com.liferay.sync.util.SyncUtil.addSyncDLObject(SyncUtil.java:121)
      	at com.liferay.sync.messaging.DLSyncEventMessageListener.processDLSyncEvent(DLSyncEventMessageListener.java:128)
      	at com.liferay.sync.messaging.DLSyncEventMessageListener.doReceive(DLSyncEventMessageListener.java:78)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more
      03:50:24,762 ERROR [liferay/document_library_sync_event_processor-1][SerialDestination:70] Unable to process message {destinationName=liferay/document_library_sync_event_processor, response=null, responseDestinationName=null, responseId=null, payload=null, values={defaultLocale=en_US, groupId=0, permissionChecker=com.liferay.portal.kernel.util.TransientValue@12bb35a8, principalName=20199, event=update, modifiedTime=1482292224747, companyId=20155, type=file, typePK=20538}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:67)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at com.liferay.sync.service.impl.SyncDLObjectLocalServiceImpl.addSyncDLObject(SyncDLObjectLocalServiceImpl.java:115)
      	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(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.sun.proxy.$Proxy422.addSyncDLObject(Unknown Source)
      	at com.liferay.sync.service.SyncDLObjectLocalServiceUtil.addSyncDLObject(SyncDLObjectLocalServiceUtil.java:320)
      	at com.liferay.sync.util.SyncUtil.addSyncDLObject(SyncUtil.java:121)
      	at com.liferay.sync.messaging.DLSyncEventMessageListener.processDLSyncEvent(DLSyncEventMessageListener.java:128)
      	at com.liferay.sync.messaging.DLSyncEventMessageListener.doReceive(DLSyncEventMessageListener.java:78)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more
      

      Expected results:
      No errors.

        Attachments

          Activity

            People

            • Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 39 weeks ago

                Packages

                Version Package
                6.2.X EE
                7.0.0 DXP FP11
                7.0.0 DXP SP2
                7.0.3 CE GA4
                Master