org.jdom.input.JDOMParseException

Error on line 0: The encoding "GBK" is not supported.

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 web137

  • Error on line 0: The encoding "GBK" is not supported.
  • Error on line 1: The name "0x00008102" is not legal for JDOM/XML elements: XML names cannot begin with the character "0".
  • via Stack Overflow by thejh
    , 1 year ago
    Error on line 2: The prefix "manhattan" for element "manhattan:state" is not bound.
  • Stack trace

    • org.jdom.input.JDOMParseException: Error on line 0: The encoding "GBK" is not supported. at org.jdom.input.SAXBuilder.build(SAXBuilder.java:533) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:865) at com.zhongway.pub.handler.Xml2JsonUtil.xml2JSON(Xml2JsonUtil.java:30) at com.zhongway.pub.handler.Xml2JsonUtil.main(Xml2JsonUtil.java:214) Caused by: org.xml.sax.SAXParseException: The encoding "GBK" is not supported. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:541) at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:518) ... 3 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

    You’re the first here who have seen this exception.