Hi Markus,

I couldn't even begin to guess what the difference is between the code in
Sun's Java 5 and 6. We have no influence over what goes in there. The
Xerces and Xalan codebases have been forked and all sorts of modifications
have been made to it which we would not know about. Possibly the error
you're getting is a result of one of those changes.

I would suggest trying out the current Apache versions.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

"EXTERNAL Kopf Markus (Itemis; DGS-EC/ESM5)"
<[EMAIL PROTECTED]> wrote on 11/13/2008 09:30:53 AM:

> 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