Details
-
Bug
-
Resolution: Fixed
-
P3
-
7u40, 8
-
b96
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8017798 | 7u45 | Joe Wang | P3 | Closed | Fixed | b01 |
JDK-8016421 | 7u40 | Joe Wang | P3 | Closed | Fixed | b30 |
Description
While running the jaxp XSLTC tests against a recent jdk 8 I noticed that tests failed - due to the following root exception being thrown:
org.xml.sax.SAXNotRecognizedException: Property
"http://javax.xml.XMLConstants/property/accessExternalDTD"
is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(Unknown Source)
at
com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:479)
The code that throws this exception - in Parser.java - is at line 479 below:
478 final SAXParser parser = factory.newSAXParser();
479 parser.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD,
480 _xsltc.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD));
This means that application which have a third party JAXP 1.4 implementation in their classpath could potentially encounter a similar problem - if the implementation doesn't recognize the property being set.
org.xml.sax.SAXNotRecognizedException: Property
"http://javax.xml.XMLConstants/property/accessExternalDTD"
is not recognized.
at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unknown
Source)
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(Unknown Source)
at
com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parse(Parser.java:479)
The code that throws this exception - in Parser.java - is at line 479 below:
478 final SAXParser parser = factory.newSAXParser();
479 parser.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD,
480 _xsltc.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD));
This means that application which have a third party JAXP 1.4 implementation in their classpath could potentially encounter a similar problem - if the implementation doesn't recognize the property being set.
Attachments
Issue Links
- backported by
-
JDK-8016421 Property http://javax.xml.XMLConstants/property/accessExternalDTD is not recognized.
- Closed
-
JDK-8017798 Property http://javax.xml.XMLConstants/property/accessExternalDTD is not recognized.
- Closed
- duplicates
-
JDK-8015487 TransformerFactory.newTransformer crashing with external Xerces
- Closed