[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Huge hidden BUG with XMLCharacterProperties.initCharFlags() and f
From:       Nicolas Philippe <Nicolas.Philippe () sun ! com>
Date:       2000-09-29 17:52:55
[Download RAW message or body]

Jeffrey,

I don't know if this is identical to what Domagoj was reporting about
DTD problems in Xerces 1.2, but here is a description of a problem that
I encountered with Xerces 1.2 and NOT with 1.1.3 :


Version number of Xerces-J  --> 1.2
Version number of JDK --> Sun JDK 1.2
Sample XML file that causes the bug -->

*********************************************************************
<!DOCTYPE website PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://machinename:port/docbook/docbookx.dtd">
<article>
	<artheader>
		<title>My Title</title>
		<authorgroup>
			<author>
				<firstname>Nicolas</firstname>
				<surname>Philippe</surname>
			</author>
		</authorgroup>
		<authorinitials>np</authorinitials>
		<revhistory>
			<revision>
				<revnumber>1.0</revnumber>
				<date>29 Sep 2000</date>
			</revision>
		</revhistory>
		<abstract>
			<para>This is my abstract... blablablabla</para>
		</abstract>		
	</artheader>
	<sect1>
		<sect1info>
			<title>Introduction</title>
		</sect1info>
		<title>Introduction</title>
		<para>This is my introduction.... blabalbalabla</para>
	</sect1>
 </article>
*********************************************************************



Sample DTD file

*********************************************************************
cf docbook DTD at
http://oasis.oasis-open.org/docbook/xml/4.1.2/index.html
*********************************************************************


Error message with Xerces 1.2 (and Xalan 1.2D02)

========= Parsing file:/path/to/xmldoc/xercesprb.xml ==========
http://machinename:port/docbook/docbookx.dtd; Line 66; Column 9
XSL Error: Could not parse file:/path/to/xmldoc/xercesprb.xml document!
XSLT: Recursive reference "%dbnotn;". (Reference path:
(top-level)-%dbhier;-%dbnotn;-%dbnotn;)
Xalan: was not successful.

Note: I modified the machine names and paths in the message and sample
XML file.

Hope this helps.

Nicolas.


Jeffrey Rodriguez wrote:
> 
> Hi Domagoj,
> 
> Thanks for reporting this, do you have a patch that fixes this bug? or
> a testcase that shows this problem. This will help us to reproduce and
> fix the bug that you reported.
> 
> You also mention a DTD bug. Can you please tell us what is this bug
> so we can verified and fix it.
> 
> Thanks,
> 
>                Jeffrey Rodriguez
>                IBM Silicon Valley
>                XML Development
> 
> >From: Domagoj Cosic <Domagoj.Cosic@hypercis.de>
> >Reply-To: xerces-j-dev@xml.apache.org
> >To: "Xerces-J-Dev (E-Mail)" <xerces-j-dev@xml.apache.org>
> >Subject: Huge hidden BUG with XMLCharacterProperties.initCharFlags() and f
> >gCharFlags
> >Date: Fri, 29 Sep 2000 12:18:52 +0200
> >
> >I don't know if that bug was fixed in 1.2 but I have serious doubts because
> >it is hidden and will occur seldom. It occured with 1.1.3 but please check
> >it with 1.2 (which we cannot use because of another bug with DTDs, which is
> >well known).
> >
> >In case of single byte encodings like ISO-8859-1
> >XMLCharacterProperties.fgCharFlags never gets initialized, although those
> >encodings are perfectly capable of producing characters > 'z', because
> >XMLCharacterProperties.initCharFlags() is never called. In the case there
> >is
> >some check using fgCharFlags, everything gets blown away with a
> >NullPointerException.
> >
> >(You would never expect it to occur in such a case. What I had expected
> >there was a syntax error because of a misspelled NMTOKEN.)
> >
> >Regards,
> >
> >Dr. Domagoj Cosic
> >hyperCIS AG, Am Köllnischen Park 1, D-10179 Berlin
> >Tel.:+49-30-22337012   Fax.: +49-30-22337001
> >e-Mail: Domagoj.Cosic@HyperCIS.de <mailto:Domagoj.Cosic@HyperCIS.de>
> >
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
["Nicolas.Philippe.vcf" (text/x-vcard)]

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic