org.apache.jena.atlas.RuntimeIOException

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

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web2

  • via GitHub by elygre
    ,
  • via GitHub by VladimirAlexiev
    ,
  • Stack trace

    • org.apache.jena.atlas.RuntimeIOException: java.nio.charset.MalformedInputException: Input length = 1 at org.apache.jena.atlas.io.IO.exception(IO.java:216) at org.apache.jena.atlas.io.CharStreamBuffered$SourceReader.fill(CharStreamBuffered.java:77) at org.apache.jena.atlas.io.CharStreamBuffered.fillArray(CharStreamBuffered.java:154) at org.apache.jena.atlas.io.CharStreamBuffered.advance(CharStreamBuffered.java:137) at org.apache.jena.atlas.io.PeekReader.advanceAndSet(PeekReader.java:235) at org.apache.jena.atlas.io.PeekReader.init(PeekReader.java:229) at org.apache.jena.atlas.io.PeekReader.peekChar(PeekReader.java:151) at org.apache.jena.atlas.io.PeekReader.makeUTF8(PeekReader.java:92) at org.apache.jena.riot.tokens.TokenizerFactory.makeTokenizerUTF8(TokenizerFactory.java:48) at org.apache.jena.riot.lang.RiotParsers.createParser(RiotParsers.java:61) at org.apache.jena.riot.RDFParserRegistry$ReaderRIOTLang.read(RDFParserRegistry.java:171) at org.apache.jena.riot.RDFDataMgr.process(RDFDataMgr.java:861) at org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:667) at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:212) at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:145) at org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:134) at org.apache.jena.riot.adapters.AdapterFileManager.readModelWorker(AdapterFileManager.java:282) at org.apache.jena.util.FileManager.readModel(FileManager.java:341) at org.apache.jena.util.FileManager.readModel(FileManager.java:325) at XmlToRdfTest.testAdvancedStream(XmlToRdfTest.java:1333) at XmlToRdfTest.specialShallowHandling(XmlToRdfTest.java:685)

    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

    We couldn't find other users who have seen this exception.