JDK-8015016 : Improve JAXP 1.5 error message
  • Type: Enhancement
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 7u40,8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-05-21
  • Updated: 2013-12-16
  • Resolved: 2013-06-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b96Fixed
Description
When external access is rejected by the newly introduced properties in JAXP 1.5, an error is reported back that looks like the following:

[Fatal Error] somefile.xml:11:50: External DTD:  Failed to read external DTD 'somefile.dtd', because 'file' access is not allowed.

This error message can be confused with a security manager issue, making it hard for users to identify the real issue.