java.io.IOException

����������

Samebug tips1

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.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web9

  • via Oracle Community by 807553, 11 months ago
    ����������
  • via Oracle Community by 807553, 11 months ago
    ����������
  • via Oracle Community by 403704, 1 year ago
    ���ͳ��ȴ������ֵ
  • Stack trace

    • java.io.IOException: ���������� at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:192) at java.io.BufferedInputStream.read1(BufferedInputStream.java:220) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at java.io.FilterInputStream.read(FilterInputStream.java:90) at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:282) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179) 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 com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:525) at com.sun.tools.example.debug.tty.TTY.main(TTY.java:830)

    Write tip

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

    Users with the same issue

    Once, 2 weeks ago
    Once, 1 month ago
    Once, 2 months ago
    22 times, 5 months ago
    Once, 6 months ago
    30 more bugmates