[ https://issues.apache.org/jira/browse/PDFBOX-5981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-5981. ------------------------------------- Resolution: Fixed > error "read() returns -1, assumed position: 8192, actual position: 8192" > ------------------------------------------------------------------------ > > Key: PDFBOX-5981 > URL: https://issues.apache.org/jira/browse/PDFBOX-5981 > Project: PDFBox > Issue Type: Bug > Components: IO > Affects Versions: 3.0.4 PDFBox > Reporter: Tilman Hausherr > Assignee: Tilman Hausherr > Priority: Major > Fix For: 3.0.5 PDFBox, 4.0.0 > > > I was analyzing page content streams as a whole with > {{page.getContents().readAllBytes()}} and got many log messages like this: > ERROR io.RandomAccessInputStream.read:101 - read() returns -1, assumed > position: 8192, actual position: 8192 > And it stops reading, i.e. we have a data loss. > The cause is that an EOF is returned for 0 length. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org