java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • PDFBox document to InputStream
    via Stack Overflow by David Lasry
    ,
  • - add document library in page - "documents home"/"access from desktop" - access the webdav url (via "finder" in mac os x) and enter credentials - put a document in shared folder ( following exceptions are tracked into log) - once document was added too many DLFileVersion entries are created (see attach1) - has impact also on activies portlet (see attach2) 14:55:32,285 ERROR [PDFProcessor:129] java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:160) at com.liferay.portal.image.ImageProcessorImpl.read(ImageProcessorImpl.java:195) at com.liferay.portal.kernel.image.ImageProcessorUtil.read(ImageProcessorUtil.java:67) at com.liferay.portlet.documentlibrary.util.ImageProcessor._generateImages(ImageProcessor.java:114) at com.liferay.portlet.documentlibrary.util.ImageProcessor.generateImages(ImageProcessor.java:51) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:31) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:73) 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) 14:55:33,365 ERROR [PDFProcessor:129] java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:160) at com.liferay.portal.image.ImageProcessorImpl.read(ImageProcessorImpl.java:195) at com.liferay.portal.kernel.image.ImageProcessorUtil.read(ImageProcessorUtil.java:67) at com.liferay.portlet.documentlibrary.util.ImageProcessor._generateImages(ImageProcessor.java:114) at com.liferay.portlet.documentlibrary.util.ImageProcessor.generateImages(ImageProcessor.java:51) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:31) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:73) 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) 14:55:35,197 ERROR [PDFProcessor:129] java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:160) at com.liferay.portal.image.ImageProcessorImpl.read(ImageProcessorImpl.java:195) at com.liferay.portal.kernel.image.ImageProcessorUtil.read(ImageProcessorUtil.java:67) at com.liferay.portlet.documentlibrary.util.ImageProcessor._generateImages(ImageProcessor.java:114) at com.liferay.portlet.documentlibrary.util.ImageProcessor.generateImages(ImageProcessor.java:51) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:31) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:73) 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) 14:55:36,284 ERROR [PDFProcessor:129] java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:160) at com.liferay.portal.image.ImageProcessorImpl.read(ImageProcessorImpl.java:195) at com.liferay.portal.kernel.image.ImageProcessorUtil.read(ImageProcessorUtil.java:67) at com.liferay.portlet.documentlibrary.util.ImageProcessor._generateImages(ImageProcessor.java:114) at com.liferay.portlet.documentlibrary.util.ImageProcessor.generateImages(ImageProcessor.java:51) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:31) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:73) 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) 14:55:37,399 ERROR [JDBCExceptionReporter:234] Duplicate entry '10080-12988' for key 'IX_97DFA146' 14:55:40,116 ERROR [PDFProcessor:129] java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ArrayIndexOutOfBoundsException: 0 at com.sun.media.jai.codecimpl.PNMCodec.isFormatRecognized(PNMCodec.java:160) at com.liferay.portal.image.ImageProcessorImpl.read(ImageProcessorImpl.java:195) at com.liferay.portal.kernel.image.ImageProcessorUtil.read(ImageProcessorUtil.java:67) at com.liferay.portlet.documentlibrary.util.ImageProcessor._generateImages(ImageProcessor.java:114) at com.liferay.portlet.documentlibrary.util.ImageProcessor.generateImages(ImageProcessor.java:51) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.doReceive(ImageProcessorMessageListener.java:31) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:73) 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) 14:55:44,257 ERROR [PDFProcessor:160] java.io.IOException: Error: End-of-File, expected line java.io.IOException: Error: End-of-File, expected line at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1250) at org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:283) at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:155) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:862) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:829) at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImages(PDFProcessor.java:251) at com.liferay.portlet.documentlibrary.util.PDFProcessor._generateImages(PDFProcessor.java:143) at com.liferay.portlet.documentlibrary.util.PDFProcessor.generateImages(PDFProcessor.java:74) at com.liferay.portlet.documentlibrary.messaging.PDFProcessorMessageListener.doReceive(PDFProcessorMessageListener.java:31) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:73) 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)
    via by Fabio Zambelli,
  • GitHub comment 742#209811934
    via GitHub by hellbourne
    ,
  • GitHub comment 742#210125066
    via GitHub by hellbourne
    ,
  • GitHub comment 15#219217114
    via GitHub by carlwilson
    ,
    • java.io.IOException: Error: End-of-File, expected line at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1111) at org.apache.pdfbox.pdfparser.COSParser.parseHeader(COSParser.java:1885) at org.apache.pdfbox.pdfparser.COSParser.parsePDFHeader(COSParser.java:1868) at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:245) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1098) at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:995) at app.DGDCreator.main(DGDCreator.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:143)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    9 more bugmates