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

Generating preview from corrupt pdf throws unhandled IOException

    Details

      Description

      01:50:26,484 ERROR [SerialDestination:104] Unable to process message {destinationName=liferay/document_library_pdf_processor, response=null, responseDestinationName=null, responseId=null, payload=com.liferay.portal.repository.liferayrepository.model.LiferayFileVersion@501142d9, values={principalPassword=test, principalName=10202, companyId=10160}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.io.IOException: expected='endstream' actual='' org.apache.pdfbox.io.PushBackInputStream@15ea6704
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:31)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:101)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.io.IOException: expected='endstream' actual='' org.apache.pdfbox.io.PushBackInputStream@15ea6704
      	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:439)
      	at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:552)
      	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:184)
      	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1069)
      	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1036)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImagesPB(PDFProcessor.java:503)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImagesPB(PDFProcessor.java:490)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImages(PDFProcessor.java:312)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImages(PDFProcessor.java:274)
      	at com.liferay.portlet.documentlibrary.util.PDFProcessor.generateImages(PDFProcessor.java:110)
      	at com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener.doReceive(PDFProcessorMessageListener.java:33)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
      	... 5 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.jin Mark Jin (Inactive)
              Reporter:
              mika.koivisto Mika Koivisto
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 21 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2