Hi xerces team,

we have the following problem. During processing a XML-File we got the 
following Exception:

org.xml.sax.SAXException: NAMESPACE_ERR: An attempt is made to create or change 
an object in a way which is incorrect with regard to namespaces.

Sadly I cannot set a stacktrace because in the thrown exception the stacktrace 
property is null.

After some analysis I detect that in CoreDocumentImpl the method 
"checkDOMNSErr()" get never a namespace attribut. Every time this argument is 
an empty String "" and so the following check
(prefix.equals("xml")
            && !namespace.equals(NamespaceContext.XML_URI))
is true and a DOMException is thrown.

In our XML document we use the namespace xml:space so that I expect that in the 
AttrNSImpl also for this prefix (qName) the namespace can be set.
Here is the element and the attributes which make trouble:
<CHAPTER ID="ID39710523072614" SI="OVERVIEW"><LONG-NAME>Physikalische Übersicht 
</LONG-NAME> 
                                         <SHORT-NAME>overview</SHORT-NAME> 
                                         <VERBATIM ALLOW-BREAK="1" 
xml:space="preserve">berechnete kompensierte Zündfrequenzkomponente = 
f(Zylinderzahl,
                                                   Teilsegmentzeiten,
                                                   Ladedruck p21,
                                                   Saugrohrdruck p22,
                                                   aktueller Motorzustand,



Some common information from the platform:

- Win XP
- JDK 1.6_05 (but I checked also later JDK's) We got the problem after 
migration from JDK 1.5.0_07 to 1.6.x. The classes like CoreDocumentImpl are the 
one of the JDK.




Mit freundlichen Grüßen / Best regards 

Markus Kopf 

Robert Bosch GmbH
Diesel Gasoline Systems 
Postfach 30 02 40
70442 Stuttgart
GERMANY
www.bosch.com

Tel. +49 711 81138551
Mobil +49 151 10860465
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 14000
Aufsichtsratsvorsitzender: Hermann Scholl; Geschäftsführung: Franz Fehrenbach, 
Siegfried Dais;
Bernd Bohr, Rudolf Colm, Gerhard Kümmel, Wolfgang Malchow, Peter Marks; 
Volkmar Denner, Uwe Raschke, Peter Tyroller


Reply via email to