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

Xuggler generates exceptions when generating previews, but the previews are generated

    Details

      Description

      When uploading videos to the document library with xuggler activated, the following exceptions are shown in the log

       

      10:41:04,854 ERROR [liferay/document_library_video_processor-1][VideoProcessorImpl:391] java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.ProcessException: java.lang.ExceptionInInitializerError
      java.util.concurrent.ExecutionException: com.liferay.portal.kernel.process.ProcessException: java.lang.ExceptionInInitializerError
      at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateThumbnailXuggler(VideoProcessorImpl.java:368)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl._generateVideo(VideoProcessorImpl.java:482)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.generateVideo(VideoProcessorImpl.java:118)
      at com.liferay.document.library.kernel.util.VideoProcessorUtil.generateVideo(VideoProcessorUtil.java:36)
      at com.liferay.portlet.documentlibrary.messaging.VideoProcessorMessageListener.generate(VideoProcessorMessageListener.java:32)
      at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: com.liferay.portal.kernel.process.ProcessException: java.lang.ExceptionInInitializerError
      at com.liferay.portal.kernel.process.local.LocalProcessLauncher.main(LocalProcessLauncher.java:146)
      Caused by: java.lang.ExceptionInInitializerError
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoThumbnailProcessCallable.call(VideoProcessorImpl.java:765)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl$LiferayVideoThumbnailProcessCallable.call(VideoProcessorImpl.java:717)
      at com.liferay.portal.kernel.process.local.LocalProcessLauncher.main(LocalProcessLauncher.java:128)
      Caused by: java.lang.NullPointerException: A registry instance was never set
      at com.liferay.registry.RegistryUtil.getRegistry(RegistryUtil.java:27)
      at com.liferay.portal.kernel.util.ServiceProxyFactory._openServiceTracker(ServiceProxyFactory.java:189)
      at com.liferay.portal.kernel.util.ServiceProxyFactory._newServiceTrackedInstance(ServiceProxyFactory.java:168)
      at com.liferay.portal.kernel.util.ServiceProxyFactory.newServiceTrackedInstance(ServiceProxyFactory.java:82)
      at com.liferay.portal.kernel.util.ServiceProxyFactory.newServiceTrackedInstance(ServiceProxyFactory.java:47)
      at com.liferay.portlet.documentlibrary.util.VideoProcessorImpl.<clinit>(VideoProcessorImpl.java:637)
      ... 3 more
      

      The previews, however, are generated.

       

      Tested on commit 2089294ff076c896108e5cffcf0efe66b165afad, both on windows and linux.

      It works in 7.0.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 51 weeks, 5 days ago

                Packages

                Version Package
                7.0.0 DXP FP34
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master