java.io.IOException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

When you iterate over the lines of a scala.io.Source with source.getLines, make sure you do not close the source until you processed the iterator.

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

  • Shell Script Error:bad file number.
    via by Unknown author,
  • bufferedReader closing a File
    via Stack Overflow by Ali Kemal
    ,
    • java.io.IOException: Stream Closed at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:236) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:282) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:324) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:176) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:153) at java.io.BufferedReader.readLine(BufferedReader.java:316) at java.io.BufferedReader.readLine(BufferedReader.java:379) at org.pentaho.di.core.util.StreamLogger.run(StreamLogger.java:47) at java.lang.Thread.run(Thread.java:679)

    Users with the same issue

    rp
    1 times, last one,
    zbalint
    1 times, last one,
    gamebusterz
    22 times, last one,
    harshg
    1 times, last one,
    Unknown visitor1 times, last one,
    29 more bugmates