Pattern selector

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

  1. BufferedInputStream.read() has thrown an IOException
    Java Runtime
    6
    8
    3
  2. FileInputStream.read() has thrown an IOException
    Java Runtime
    56
    50
    23

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.io.IOException: The handle is invalid
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(FileInputStream.java:191)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
1 frame hidden

Solution

chinthana11 months ago

This occurs when the file is being locked by another application. Check if another process is accessing the same file. On Windows follow this post to figure it out : https://goo.gl/yPp1To

If it's being used, terminate that process to gain access.

Check the source of this solution for more info

External results for this pattern (10)

  1. fabioebnervia GitHub1 month ago
    Stream Closed
    Show stack trace
  2. wadewegnervia GitHub2 months ago
    Bad file descriptor
    Show stack trace
  3. trungvia GitHub3 months ago
    c:/temp/terraform.tfstate
    Show stack trace
  4. Mimickalvia GitHub4 months ago
  5. Asdonivia GitHub4 months ago
    Handle non valido
    Show stack trace
  6. OfficiallyBrownvia GitHub4 months ago
    The handle is invalid
    Show stack trace
  7. Erro nos dados (verificação cíclica de redundância)
    Show stack trace
  8. Unknown authorvia netbeans.org5 months ago
    The process cannot access the file because another process has locked a portion of the file
    Show stack trace
  9. xsumbe00via GitHub5 months ago
    Stream Closed
    Show stack trace