org.apache.pdfbox.exceptions.COSVisitorException: 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

Solutions on the web

via incubator-pdfbox-users by Ken Bowen, 4 months ago
via pdfbox-users by Ken Bowen, 1 year ago
via pdfbox-users by Ken Bowen, 1 year ago
org.apache.pdfbox.exceptions.COSVisitorException: Bad file descriptor
at org.apache.pdfbox.pdfwriter.COSWriter.visitFromStream(COSWriter.java:938)
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
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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