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.

  • - 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:1519)[JabRef-3.8.2.jar:?] at org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:372)[JabRef-3.8.2.jar:?] at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:186)[JabRef-3.8.2.jar:?] at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1235)[JabRef-3.8.2.jar:?] at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1202)[JabRef-3.8.2.jar:?] at net.sf.jabref.logic.xmp.XMPUtil.loadWithAutomaticDecryption(XMPUtil.java:127)[JabRef-3.8.2.jar:?] at net.sf.jabref.logic.xmp.XMPUtil.readXMP(XMPUtil.java:160)[JabRef-3.8.2.jar:?] at net.sf.jabref.logic.xmp.XMPUtil.hasMetadata(XMPUtil.java:1110)[JabRef-3.8.2.jar:?] at net.sf.jabref.logic.xmp.XMPUtil.hasMetadata(XMPUtil.java:1090)[JabRef-3.8.2.jar:?] at net.sf.jabref.logic.importer.fileformat.PdfXmpImporter.isRecognizedFormat(PdfXmpImporter.java:71)[JabRef-3.8.2.jar:?] at net.sf.jabref.logic.importer.ImportFormatReader.importUnknownFormat(ImportFormatReader.java:191)[JabRef-3.8.2.jar:?] at net.sf.jabref.gui.importer.ImportMenuItem$MyWorker.run(ImportMenuItem.java:115)[JabRef-3.8.2.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_111] at spin.Invocation.evaluate(Invocation.java:175)[JabRef-3.8.2.jar:?] at spin.off.SpinOffEvaluator.evaluate(SpinOffEvaluator.java:120)[JabRef-3.8.2.jar:?] at spin.ProxyFactory.evaluteInvocation(ProxyFactory.java:85)[JabRef-3.8.2.jar:?] at spin.JDKProxyFactory$SpinInvocationHandler.invoke(JDKProxyFactory.java:102)[JabRef-3.8.2.jar:?] at com.sun.proxy.$Proxy32.run(Unknown Source)[?:?] at net.sf.jabref.gui.importer.ImportMenuItem.automatedImport(ImportMenuItem.java:74)[JabRef-3.8.2.jar:?] at net.sf.jabref.gui.groups.EntryTableTransferHandler.loadOrImportFiles(EntryTableTransferHandler.java:372)[JabRef-3.8.2.jar:?] at net.sf.jabref.gui.groups.EntryTableTransferHandler.lambda$handleDraggedFiles$0(EntryTableTransferHandler.java:315)[JabRef-3.8.2.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_111] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]

    Users with the same issue

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