java.io.IOException: Bad file descriptor

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via pdfbox-users by Ken Bowen, 1 year ago
via incubator-pdfbox-users by Ken Bowen, 4 months ago
via pdfbox-users by Ken Bowen, 1 year ago
via Google Groups by Martin Vennekamp, 4 months ago
lseek failed: EBADF (Bad file number)
via Netbeans Bugzilla by johnafriedman, 1 year ago
via Netbeans Bugzilla by khurramkhan1974, 1 year ago
java.io.IOException: Bad file descriptor
at org.apache.pdfbox.io.RandomAccessFile.seek(RandomAccessFile.java:59)
at org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at org.apache.pdfbox.pdfwriter.COSWriter.visitFromStream(COSWriter.java:925)
at org.apache.pdfbox.cos.COSStream.accept(COSStream.java:201)
at org.apache.pdfbox.cos.COSObject.accept(COSObject.java:206)
at org.apache.pdfbox.pdfwriter.COSWriter.doWriteObject(COSWriter.java:430)
at org.apache.pdfbox.pdfwriter.COSWriter.doWriteBody(COSWriter.java:361)
at org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:767)
at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:372)
at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1082)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:899)
at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:880)
at org.apache.pdfbox.util.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:144)
at org.apache.pdfbox.PDFMerger.merge(PDFMerger.java:68)
at org.apache.pdfbox.PDFMerger.main(PDFMerger.java:44)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.