java.lang.IllegalStateException

java.io.IOException: Input/output error

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 web1680

  • via Google Groups by charan thota, 1 month ago
    java.io.IOException: Input/output error
  • via GitHub by pluradj
    , 11 months ago
    java.io.IOException: Could not get input splits
  • via GitHub by girishtejwani
    , 2 months ago
    Error processing input
  • Stack trace

    • java.lang.IllegalStateException: java.io.IOException: Input/output error at org.apache.commons.io.LineIterator.hasNext(LineIterator.java:106)[commons-io-2.4.jar:2.4] at io.druid.data.input.impl.FileIteratingFirehose.hasMore(FileIteratingFirehose.java:52)[druid-api-0.9.1.1.jar:0.9.1.1] at io.druid.indexing.common.task.IndexTask.getDataIntervals(IndexTask.java:243)[druid-indexing-service-0.9.1.1.jar:0.9.1.1] at io.druid.indexing.common.task.IndexTask.run(IndexTask.java:200)[druid-indexing-service-0.9.1.1.jar:0.9.1.1] at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:436)[druid-indexing-service-0.9.1.1.jar:0.9.1.1] at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:408)[druid-indexing-service-0.9.1.1.jar:0.9.1.1] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_91] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_91] Caused by: java.io.IOException: Input/output error at java.io.FileInputStream.readBytes(Native Method)[?:1.8.0_91] at java.io.FileInputStream.read(FileInputStream.java:255)[?:1.8.0_91] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)[?:1.8.0_91] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)[?:1.8.0_91] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)[?:1.8.0_91] at java.io.InputStreamReader.read(InputStreamReader.java:184)[?:1.8.0_91] at java.io.BufferedReader.fill(BufferedReader.java:161)[?:1.8.0_91] at java.io.BufferedReader.readLine(BufferedReader.java:324)[?:1.8.0_91] at java.io.BufferedReader.readLine(BufferedReader.java:389)[?:1.8.0_91] at org.apache.commons.io.LineIterator.hasNext(LineIterator.java:95)[commons-io-2.4.jar:2.4] ... 9 more

    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