0

我将我的项目导出为可运行的 jar 并在 java 8 环境中执行。但我越来越

org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/sec
ure-processing
        at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source
)
        at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown
Source)

我尝试使用 xercesImpl.2.11.0 并得到:

javax.xml.bind.UnmarshalException - with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 63; columnNumber: 9; The string "--"
 is not permitted within comments.]
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalExcept
ion(AbstractUnmarshallerImpl.java)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.cr
eateUnmarshalException(UnmarshallerImpl.java:)

请提供解决方案?

4

1 回答 1

0

如果您的 XML 或 HTML 有问题,则会出现以下错误:

The string "--" is not permitted within comments.

HTML 注释以开头"<!--",结尾"-->"且不包含"--"">"在注释中的任何位置。

通过此 URL(HTML 评论)了解更多详细信息。

于 2017-03-10T10:01:18.390 回答