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

Adding a file causes "PermissionChecker not initialized" in sync-web plugin

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 6.2.0 CE B3
    • 6.2.0 CE B3
    • Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 34104f2b81755228d9ac59eb02db3ac290d9f5af.
      Plugins 6.2.x EE GIT ID: 6e12413ed644bd3679549f3ac1637fe860e47ab2.

    Description

      1. Start server with clean database.
      2. Deploy sync-web, marketplace-portlet plugin.
      3. Add Documents and Media portlet to new page.
      4. Upload a document.
      5. Undeploy sync-web.
      6. Upload another one.
      7. Redeploy sync-web.

      Expected result:
      Should be redeploy sync-web without any exception.

      Actual result:

      02:46:01,508 ERROR [liferay/document_library_sync_event_processor-1][SerialDestination:92] Unable to process message {de
      stinationName=liferay/document_library_sync_event_processor, response=null, responseDestinationName=null, responseId=nul
      l, payload=null, values={companyId=0, type=file, event=add, typePK=10501, modifiedTime=1377571540443}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.security.auth.PrincipalException: Permi
      ssionChecker not initialized
              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:65)
              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:724)
      Caused by: com.liferay.portal.security.auth.PrincipalException: PermissionChecker not initialized
              at com.liferay.portal.service.BaseServiceImpl.getPermissionChecker(BaseServiceImpl.java:81)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileVersionServiceImpl.getLatestFileVersion(DLFileVersionS
      erviceImpl.java:48)
              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:117)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:186)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
              at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
              at com.sun.proxy.$Proxy441.getLatestFileVersion(Unknown Source)
              at com.liferay.portlet.documentlibrary.service.DLFileVersionServiceUtil.getLatestFileVersion(DLFileVersionServic
      eUtil.java:70)
              at com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl.getLatestFileVersion(DLFileEntryImpl.java:214)
      
              at com.liferay.portal.repository.liferayrepository.model.LiferayFileEntry.getLatestFileVersion(LiferayFileEntry.
      java:238)
              at com.liferay.sync.messaging.SyncMessageListener.addSyncDLObject(SyncMessageListener.java:71)
              at com.liferay.sync.messaging.SyncMessageListener.doReceive(SyncMessageListener.java:110)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 5 more
      

      Attachments

        Issue Links

          Activity

            People

              mark.jin Mark Jin (Inactive)
              mark.jin Mark Jin (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 41 weeks ago

                Packages

                  Version Package
                  6.2.0 CE B3