Viewing Issue Simple Details
[ Jump to Notes ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
0001704 |
[Resin] |
major |
always |
04-24-07 05:31 |
05-15-07 15:35 |
|
Reporter |
hgschmie |
View Status |
public |
|
Assigned To |
ferg |
Priority |
normal |
Resolution |
fixed |
|
Status |
closed |
|
Product Version |
3.1.0 |
|
Summary |
0001704: Resin XML parser does not like empty name spaces |
Description |
According to http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Element.html#setAttributeNS(java.lang.String,%20java.lang.String,%20java.lang.String), [^] an element wanting to set an attribute without a namespace is required to set this namespace to null. However, in doing so, both Resin 3.1.0 and 3.0.23 might throw NullPointerExceptions, because they then subsequently set the localName to null (Resin 3.0.23 in QName.java, line 128, Resin 3.1.0 in QName.java, line 59). A subsequent call to getAttributeNS will then throw an NPE in QAttributedNode, line 146 (Resin 3.1.0). |
Additional Information |
This particular sequence is e.g. used by Apache Batik 1.7beta1 when generating Style objects (org.apache.batik.svggen.DefaultStyleHandler#setStyle(Element, Map, SVGGeneratorContext)) and leads to an reproducible NPE when running with Resin and works well when explicitly forcing the JDK default implementation.
This is a bug in Resin and should be fixed. |
|
Attached Files |
|
|