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

Document preview exception in Glassfish

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.1.30 EE GA3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Glassfish 3.1.2 + Oracle 11. Internet Explorer 9. Portal ee-6.1.30 GIT ID: 31110fb45cc324ce5d556105c8df32e5d22e4987.
    • Fix Priority:
      3
    • Application Servers:
      GlassFish 3.1

      Description

      An exception is thrown in Glassfish when an mp3 file is uploaded, or clicked on. (multiple mp3 files were tried)

      Steps to reproduce:

      1. Have Image Magick and Glassfish installed
      2. Enter the following line into the command prompt, under your \...\openoffice\program\ directory:
        soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;"
      3. Add Documents and Media portlet
      4. Enable Image Magick, Open Office, and Xuggler
      5. Add mp3 file

      Expected result:
      The mp3 file will be added, and a preview will show up/

      Actual result:
      An exception is thrown, but the mp3 file is still added to the portlet with no problems, though no preview is generated.

      [#|2013-07-29T16:23:23.846+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=liferay/document_library_audio_processor-1;|16:23:23,844 ERROR [liferay/document_library_audio_processor-1][AudioProcessorImpl:360] com.liferay.portal.kernel.pro
      cess.ProcessException: java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
      com.liferay.portal.kernel.process.ProcessException: java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
              at com.liferay.portal.kernel.process.ProcessExecutor.execute(ProcessExecutor.java:118)
              at com.liferay.portal.kernel.process.ProcessExecutor.execute(ProcessExecutor.java:53)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl._generateAudioXuggler(AudioProcessorImpl.java:346)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl._generateAudioXuggler(AudioProcessorImpl.java:380)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl._generateAudio(AudioProcessorImpl.java:295)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl.generateAudio(AudioProcessorImpl.java:100)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorUtil.generateAudio(AudioProcessorUtil.java:33)
              at com.liferay.portlet.documentlibrary.messaging.AudioProcessorMessageListener.doReceive(AudioProcessorMessageListener.java:37)
              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.SerialDestination$1.run(SerialDestination.java:65)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:678)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:589)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
              at com.liferay.portal.kernel.process.ProcessExecutor.execute(ProcessExecutor.java:73)
              ... 13 more
      Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
              at java.lang.ProcessImpl.create(Native Method)
              at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
              at java.lang.ProcessImpl.start(ProcessImpl.java:30)
              at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
              ... 14 more
      |#]
      
      [#|2013-07-29T16:23:23.849+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=liferay/document_library_audio_processor-1;|16:23:23,848 ERROR [liferay/document_library_audio_processor-1][AudioProcessorImpl:385] com.liferay.portlet.documentl
      ibrary.NoSuchFileException: document_preview/10180/189/10941/10942.mp3
      com.liferay.portlet.documentlibrary.NoSuchFileException: document_preview/10180/189/10941/10942.mp3
              at com.liferay.portlet.documentlibrary.store.BaseStore.addFile(BaseStore.java:112)
              at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.addFile(StoreProxyImpl.java:55)
              at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.addFile(SafeFileNameStoreWrapper.java:73)
              at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:104)
              at sun.reflect.GeneratedMethodAccessor1711.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.security.pacl.PortalSecurityManagerImpl$DoBeanLocatorImplPACL$1.invoke(PortalSecurityManagerImpl.java:475)
              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.$Proxy712.addFile(Unknown Source)
              at com.liferay.portlet.documentlibrary.store.DLStoreUtil.addFile(DLStoreUtil.java:125)
              at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.addFileToStore(DLPreviewableProcessor.java:223)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl._generateAudioXuggler(AudioProcessorImpl.java:363)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl._generateAudioXuggler(AudioProcessorImpl.java:380)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl._generateAudio(AudioProcessorImpl.java:295)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorImpl.generateAudio(AudioProcessorImpl.java:100)
              at com.liferay.portlet.documentlibrary.util.AudioProcessorUtil.generateAudio(AudioProcessorUtil.java:33)
              at com.liferay.portlet.documentlibrary.messaging.AudioProcessorMessageListener.doReceive(AudioProcessorMessageListener.java:37)
              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.SerialDestination$1.run(SerialDestination.java:65)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:678)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:589)
              at java.lang.Thread.run(Thread.java:662)
      |#]
      

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              torrey.schuhler Torrey Schuhler (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                6 years, 20 weeks, 2 days ago

                Packages

                Version Package