You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/04/04 12:59:00 UTC

[jira] [Created] (PDFBOX-5981) error "read() returns -1, assumed position: 8192, actual position: 8192"

Tilman Hausherr created PDFBOX-5981:
---------------------------------------

             Summary: 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
             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

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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org