JDK-8073385 : Bad error message on parsing illegal character in XML attribute
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-02-18
  • Updated: 2015-09-29
  • Resolved: 2015-04-01
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 6 JDK 7 JDK 8 JDK 9 Other
6u101Fixed 7u85Fixed 8u51Fixed 9 b59Fixed openjdk7uFixed
Description
The xml parser correctly detects if there is as an illegal character, 
and reports it as such, but the error message is mangled, and does not 
convey the correct information to the user.
Example of incorrect output:
An invalid XML character (Unicode: 0x{2}) was found in the value of attribute "{1}" and element is "0".
The correct output should be like: 
An invalid XML character (Unicode: 0x0) was found in the value of attribute "attTest" and element is "topElement".
Comments
SQE OK to take the low risk to CPU15_03
29-04-2015