Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.2 Product Version 3.1.0
  Product Build
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).
Steps To Reproduce
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

- Relationships

- Notes
(0001924)
ferg
05-15-07 15:35

xml/017i
 

- Issue History
Date Modified Username Field Change
04-24-07 05:31 hgschmie New Issue
04-24-07 05:32 hgschmie Issue Monitored: hgschmie
05-15-07 15:35 ferg Note Added: 0001924
05-15-07 15:35 ferg Assigned To  => ferg
05-15-07 15:35 ferg Status new => closed
05-15-07 15:35 ferg Resolution open => fixed
05-15-07 15:35 ferg Fixed in Version  => 3.1.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker