当前位置: 技术问答>java相关
请问有谁用过itext,下面这个错误是什么引起(将html转化为pdf时)?
来源: 互联网 发布时间:2017-04-14
本文导语: 请问有谁用过itext,下面这个错误是什么引起(将html转化为pdf时)? ExceptionConverter: org.xml.sax.SAXParseException: org.apache.crimson.parser/P-004 org.apache.crimson.parser/F-008 at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035) at org.ap...
请问有谁用过itext,下面这个错误是什么引起(将html转化为pdf时)?
ExceptionConverter: org.xml.sax.SAXParseException: org.apache.crimson.parser/P-004 org.apache.crimson.parser/F-008
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
at org.apache.crimson.parser.Parser2.whitespace(Parser2.java:568)
at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2604)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1116)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:232)
at com.lowagie.text.html.HtmlParser.go(Unknown Source)
at com.lowagie.text.html.HtmlParser.parse(Unknown Source)
at test2.main(test2.java:45)
org.apache.crimson.parser/P-004 org.apache.crimson.parser/F-008
ExceptionConverter: org.xml.sax.SAXParseException: org.apache.crimson.parser/P-004 org.apache.crimson.parser/F-008
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
at org.apache.crimson.parser.Parser2.whitespace(Parser2.java:568)
at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2604)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1116)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:232)
at com.lowagie.text.html.HtmlParser.go(Unknown Source)
at com.lowagie.text.html.HtmlParser.parse(Unknown Source)
at test2.main(test2.java:45)
org.apache.crimson.parser/P-004 org.apache.crimson.parser/F-008
|
xml解析错误,估计是格式不正确