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

csdn.net | 3 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 152#169653825

    GitHub | 1 year ago | thun8392
    java.nio.charset.MalformedInputException: Input length = 1
  2. 0

    [FLUME-2052] Spooling directory source should be able to replace or ignore malformed characters - ASF JIRA

    apache.org | 1 year ago
    java.nio.charset.MalformedInputException: Input length = 1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    When parsing a file with messed up encoding flume spits this error: 23 May 2013 22:06:29,446 ERROR [pool-12-thread-1] (org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run:164) - Uncaught exception in Runnable java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(CoderResult.java:277) at org.apache.flume.serialization.ResettableFileInputStream.readChar(ResettableFileInputStream.java:162) at org.apache.flume.serialization.LineDeserializer.readLine(LineDeserializer.java:134) at org.apache.flume.serialization.LineDeserializer.readEvent(LineDeserializer.java:72) at org.apache.flume.serialization.LineDeserializer.readEvents(LineDeserializer.java:91) at org.apache.flume.client.avro.ReliableSpoolingFileEventReader.readEvents(ReliableSpoolingFileEventReader.java:221) at org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run(SpoolDirectorySource.java:154) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) It would be good to skip such characters, ignore them or delete. Corrupt signs come from spamming engines, flume cant handle them at all.

    Apache's JIRA Issue Tracker | 4 years ago | greg glazeweas
    java.nio.charset.MalformedInputException: Input length = 1
  5. 0

    [FLUME-2052] Spooling directory source should be able to replace or ignore malformed characters - ASF JIRA

    apache.org | 2 years ago
    java.nio.charset.MalformedInputException: Input length = 1

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.nio.charset.MalformedInputException

      Input length = 1

      at java.nio.charset.CoderResult.throwException()
    2. Java RT
      CoderResult.throwException
      1. java.nio.charset.CoderResult.throwException(CoderResult.java:277)
      1 frame
    3. Flume
      SpoolDirectorySource$SpoolDirectoryRunnable.run
      1. org.apache.flume.serialization.ResettableFileInputStream.readChar(ResettableFileInputStream.java:195)
      2. org.apache.flume.serialization.LineDeserializer.readLine(LineDeserializer.java:134)
      3. org.apache.flume.serialization.LineDeserializer.readEvent(LineDeserializer.java:72)
      4. org.apache.flume.serialization.LineDeserializer.readEvents(LineDeserializer.java:91)
      5. org.apache.flume.client.avro.ReliableSpoolingFileEventReader.readEvents(ReliableSpoolingFileEventReader.java:241)
      6. org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run(SpoolDirectorySource.java:224)
      6 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames