Pattern selector

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

  1. FileReader.<init>() has thrown a FileNotFoundException
    Java Runtime
    40
    30
    26
  2. Unable to open file, file not found in the path provided
    Java Runtime
    696
    533
    393

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.FileNotFoundException: farrago.txt (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:68)
    at java.io.FileInputStream.<init>(FileInputStream.java:99)
    at java.io.FileReader.<init>(FileReader.java:39)

Solution

chinthana11 months ago

Use the relative path when providing the location of the file. Place the file in the project folder and access it according to the hierarchy. If you want to access a file outside the project folder, provide the absolute path.

External results for this pattern (10)

  1. Javier Neira Sanchezvia Google Groups4 days ago
    No message found for this stack trace.
    Show stack trace
  2. 843789via Oracle Community4 weeks ago
    java.util.Scanner[delimiters=\p{javaWhitespace}+][position=0][match valid=false][need input=false][source closed=false][skipped=false][group separator=\,][decimal separator=\.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q?\E] (File name too long)
    Show stack trace
  3. ChromoXvia Google Groups1 month ago
    classes/ *.class (No such file or directory)
    Show stack trace
  4. 843840via Oracle Community1 month ago
    D:\New Microsoft Excel Worksheet.xls (The system cannot find the file specified)
    Show stack trace
  5. yanokwavia GitHub1 month ago
    /storage/emulated/0/odk/instances/basic_2017-03-06_10-39-48_715/basic_2017-03-06_10-39-48_715.xml (Too many open files)
    Show stack trace
  6. eddgrantvia GitHub1 month ago
    /zapSource/build/build.xml (No such file or directory)
    Show stack trace
  7. Golfandvia GitHub1 month ago
    /data/user/0/com.calsignlabs.apde/app_build/bin/sketch-classes.dex (No such file or directory)
    Show stack trace
  8. watadarkstarvia GitHub1 month ago
    /storage/emulated/0/Android/data/com.flyreel.underwriterbot/files/instabug/attachments/bug_1539188440248_.jpg (No such file or directory)
    Show stack trace
  9. CodingLionDargonvia GitHub1 month ago
    ..\tmp\ar-train.txt (系统找不到指定的路径。)
    Show stack trace
  10. kashbanvia GitHub1 month ago
    /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq (No such file or directory)
    Show stack trace