-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
6
-
x86
-
windows_2003
FULL PRODUCT VERSION :
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 5.2.3790]
A DESCRIPTION OF THE PROBLEM :
javax.xml.transform.Transformer#transform throws Exceptions that do not provide the full information to the user. If an error occurs while parsing the input files, the file location of the defect is not being reported in the exception message.
This makes it very difficult to find errors in server applications that use other logging facilities than System.err.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Eg. use a style sheet with an element that contains a duplicate attribute. At System.err you'll receive an error message that contains the filename of the defective style sheet. The exception contains the message without the file name.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Report the location of the file that contains the error in the exception message.
ACTUAL -
The TransformerException does not report the location of the file that contains the error.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 5.2.3790]
A DESCRIPTION OF THE PROBLEM :
javax.xml.transform.Transformer#transform throws Exceptions that do not provide the full information to the user. If an error occurs while parsing the input files, the file location of the defect is not being reported in the exception message.
This makes it very difficult to find errors in server applications that use other logging facilities than System.err.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Eg. use a style sheet with an element that contains a duplicate attribute. At System.err you'll receive an error message that contains the filename of the defective style sheet. The exception contains the message without the file name.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Report the location of the file that contains the error in the exception message.
ACTUAL -
The TransformerException does not report the location of the file that contains the error.
REPRODUCIBILITY :
This bug can be reproduced always.