bugs.java.com
Bug ID: JDK-4267294 InputStream must be created in getInputStream...
InputStream pdf = new FileInputStream("myfile.pdf") ; DataSource mailds = new PdfDataSource(pdf) at java.lang.Throwable.<init>(Compiled Code). at javax.mail.Transport.send0(Compiled Code).