Bug ID: JDK-4267294 InputStream must be created in getInputStream...
return pdf ; } public OutputStream getOutputStream() throws IOException {.public String getName() {. return "PDFDataSource" ; } } Here's the stacktrace from the exception: java.io.IOException: read error.