java.io.FileNotFoundException: C:\data\test (Access is denied)

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 assertselenium.com by Unknown author, 1 year ago
via Coderanch by Greg Zobel, 1 year ago
file:\C:\Users\Greg\NetBeansProjects-MWSMFG\MWSMF G-timeclock-gui\dist\MWSMFG-timeclock-gui.jar!\mwsmfg\sql\templates\getEmployeeD ata.sql (The filename, directory name, or volume label syntax is incorrect)
via Oracle Community by Dom1956, 1 year ago
C:\Program Files\Java\jre1.8.0_66\bin\keystore\SO PSECURITY1-rootCA.der (The system cannot find the file specified)
via GitHub by hodgett
, 2 months ago
/lustre/scratch/team/CANU_MH1.5-20170613/correction/1-overlapper/queries/000065/000171.dat (Permission denied)
via Stack Overflow by southdoor
, 1 year ago
/models/data/data.txt (No such file or directory)
via GitHub by physikerwelt
, 1 year ago
/tmp/baseX/data (Is a directory)
java.io.FileNotFoundException: C:\data\test (Access is denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at javax.activation.FileDataSource.getInputStream(FileDataSource.java:97)
at javax.activation.DataHandler.writeTo(DataHandler.java:305)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:668)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889)
at javax.activation.DataHandler.writeTo(DataHandler.java:317)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1607)
at com.connect.qc.SendMail.sendMail(SendMail.java:107)
at com.connect.qc.SendMail.main(SendMail.java:21)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Once, 2 days ago
4 times, 3 days ago
Samebug visitor profile picture
Unknown user
Once, 5 days ago
440 times, 1 week ago

Write tip

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