Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. File.createNewFile() has thrown an IOException
    Java Runtime
    69
    130
    81
  2. JRE unable to create file
    Java Runtime
    107
    186
    122

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:693)

Solution

chinthana10 months ago

There could be quite a few reasons for this, check:

  • If the directory, in which the file is located, exists.
  • Whether you have write permissions for the file.
  • Whether you have directory write permissions.
  • Whether you have too many file handles open.

External results for this pattern (10)

  1. Claudio DeSouzavia Google Groups16 hours ago
  2. UnderMybrellavia GitHub2 days ago
    No such file or directory
    Show stack trace
  3. java.io.IOException: No such file or directory
    Show stack trace
  4. Zulkovia GitHub5 days ago
    No such file or directory
    Show stack trace
  5. jamesremuscatvia GitHub1 week ago
    No such file or directory
    Show stack trace
  6. Andrew Greenvia Google Groups1 week ago
    No such file or directory
    Show stack trace
  7. sschuberthvia GitHub2 weeks ago
    Failed to create a temporary directory in /tmp/jenkinsTests.tmp
    Show stack trace
  8. netmackanvia GitHub2 weeks ago
    No such file or directory
    Show stack trace