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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Mike London, 1 year ago
java.nio.charset.MalformedInputException: Input length = 2
via Stack Overflow by gdiazc
, 1 year ago
java.nio.charset.MalformedInputException: Input length = 1
via Stack Overflow by user3403211
, 1 year ago
java.nio.charset.MalformedInputException: Input length = 1
via Stack Overflow by evalwt
, 8 months ago
java.nio.charset.MalformedInputException: Input length = 1
via Stack Overflow by Angelo.Hannes
, 2 years ago
java.nio.charset.MalformedInputException: Input length = 1
via Stack Overflow by Rob
, 2 years ago
java.nio.charset.MalformedInputException: Input length = 1
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)
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 undefined.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)

Users with the same issue

1121 times, 6 months ago
12 times, 8 months ago
21 times, 9 months ago
2 times, 1 year ago
9 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.