java.io.UncheckedIOException

java.nio.charset.MalformedInputException: Input length = 2

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web11

  • java.nio.charset.MalformedInputException: Input length = 2
  • java.nio.charset.MalformedInputException: Input length = 1
  • java.nio.charset.MalformedInputException: Input length = 1
  • Stack trace

    • java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 2 at java.io.BufferedReader$1.hasNext(BufferedReader.java:574) at java.util.Spliterators$IteratorSpliterator.trySplit(Spliterators.java:1776) at java.util.stream.AbstractTask.compute(AbstractTask.java:297) at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401) at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734) at java.util.stream.Nodes.collect(Nodes.java:328) at java.util.stream.ReferencePipeline.evaluateToNode(ReferencePipeline.java:109) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:540) at java.util.stream.SortedOps$OfRef.opEvaluateParallel(SortedOps.java:157) at java.util.stream.AbstractPipeline.opEvaluateParallelLazy(AbstractPipeline.java:704) at java.util.stream.AbstractPipeline.sourceSpliterator(AbstractPipeline.java:431) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at ReadFileLineByLine.main(ReadFileLineByLine.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: java.nio.charset.MalformedInputException: Input length = 2 at java.nio.charset.CoderResult.throwException(CoderResult.java:281) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at java.io.BufferedReader$1.hasNext(BufferedReader.java:571) ... 20 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

    1121 times, 3 weeks ago
    Unknown user
    Once, 3 weeks ago
    12 times, 2 months ago
    21 times, 4 months ago
    Unknown user
    Once, 6 months ago
    26 more bugmates