javax.mail.MessagingException

IOException while sending message; nested exception is: java.io.FileNotFoundException: /drawable:/2130837597: open failed: ENOENT (No such file or directory)


Samebug tips1

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web633

Solution icon of stackoverflow
IOException while sending message; nested exception is: java.io.FileNotFoundException: /drawable:/2130837597: open failed: ENOENT (No such file or directory)

Solution icon of googlegroups
via Google Groups by Unknown author, 2 months ago
IOException while sending message; nested exception is: java.io.FileNotFoundException: /tmp/playtemp3112763383526680968/multipartBody9095873588579429689asTemporaryFile (No such file or directory)

Solution icon of web
via java2s.com by Unknown author, 9 months ago
IOException while sending message; nested exception is: java.io.FileNotFoundException: /Error_20080825.xls (No such file or directory)

Solution icon of stackoverflow
IOException while sending message; W/System.err: nested exception is: W/System.err: java.io.FileNotFoundException: /sdcard/filelocation (No such file or directory)

Solution icon of stackoverflow
IOException while sending message; nested exception is: java.io.FileNotFoundException: test.txt (The system cannot find the file specified)

Solution icon of stackoverflow
IOException while sending message; nested exception is:

Solution icon of stackoverflow
IOException while sending message; nested exception is: java.io.FileNotFoundException: resources\imgecalcp\fondoencabezado_marron.png (El sistema no puede encontrar la ruta especificada)

Solution icon of oraclecommunity
IOException while sending message; nested exception is: java.net.UnknownHostException: aatsv001

Solution icon of stackoverflow
via Stack Overflow by Jazzy
, 1 month ago
IOException while sending message; nested exception is: java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 6.0 (Access is denied)

Solution icon of stackoverflow
IOException while sending message; nested exception is: java.io.FileNotFoundException: \WebContent\Images\HappyBirthday.JPG (The system cannot find the path specified) javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.FileNotFoundException: \WebContent\Images\HappyBirthday.JPG (The system cannot find the path specified)

Stack trace

  • javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.FileNotFoundException: /drawable:/2130837597: open failed: ENOENT (No such file or directory) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676) at javax.mail.Transport.send0(Transport.java:189) at javax.mail.Transport.send(Transport.java:118) at io.farooq.check.GMailSender.sendMail(GMailSender.java:81) at io.farooq.check.MainActivity$1$1.run(MainActivity.java:74) at java.lang.Thread.run(Thread.java:841) Caused by: java.io.FileNotFoundException: /drawable:/2130837597: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:409) at java.io.FileInputStream.<init>(FileInputStream.java:78) at javax.activation.FileDataSource.getInputStream(FileDataSource.java:110) at javax.activation.DataHandler.writeTo(DataHandler.java:318) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:102) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:897) at javax.activation.DataHandler.writeTo(DataHandler.java:330) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636) ... 5 more Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at libcore.io.IoBridge.open(IoBridge.java:393) ... 17 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 month ago
95 times, 2 months ago
Once, 6 months ago
8 times, 8 months ago
Once, 8 months ago
43 more bugmates