java.io.IOException

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.

  • java.io.IOException: Premature EOF
    via by Unknown author,
  • java.io.IOException: Premature EOF
    via by Unknown author,
  • java.io.IOException: Premature EOF
    via by Unknown author,
  • java.io.IOException: Premature EOF
    via by Unknown author,
  • java.io.IOException: Premature EOF
    via by Eva Lin,
  • java.io.IOException: Premature EOF
    via by 807580,
    • java.io.IOException: Premature EOF at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:538) at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:582) at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:669) at java.io.FilterInputStream.read(FilterInputStream.java:116) at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2512) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) at java.io.InputStreamReader.read(InputStreamReader.java:167) at java.io.BufferedReader.fill(BufferedReader.java:136) at java.io.BufferedReader.readLine(BufferedReader.java:299) at java.io.BufferedReader.readLine(BufferedReader.java:362) at x.application.urlReader(application.java:429) at x.application.downloadPages(application.java:410) at x.application.main(application.java:46)

    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,
    18 more bugmates