org.jdom.input.JDOMParseException: Error on line 0: The encoding "GBK" is not supported.

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 Stack Overflow by DaCang
, 1 year ago
via Coderanch by selva raja, 1 year ago
Error on line 1: Content is not allowed in prolog.
via GitHub by yawlfoundation
, 2 years ago
Error on line 1: Content is not allowed in prolog.
via Oracle Community by 843834, 1 year ago
Error on line 1: Content is not allowed in prolog.
via spring.io by Unknown author, 2 years ago
via coderanch.com by Unknown author, 2 years ago
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)
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

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