You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by xe...@xml.apache.org on 2004/09/25 16:57:32 UTC
[jira] Created: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Sat, 25 Sep 2004 7:56 AM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: George Aggrey
Created: Sun, 26 Sep 2004 11:31 AM
Body:
I am using 2.5.0. Is this the latest source?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1276?page=comments#action_53420
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Sun, 26 Sep 2004 11:31 AM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: George Aggrey
Created: Sun, 26 Sep 2004 11:29 AM
Body:
On my pc it prints out the validation error then crashes. I have narrowed it down to the delete parser statement.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1276?page=comments#action_53419
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Sun, 26 Sep 2004 11:29 AM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: cargilld
Created: Sun, 26 Sep 2004 5:00 PM
Body:
While 2.5 is the last release, it is not the current source. The latest source is available at http://cvs.apache.org/snapshots/xml-xerces/.
BTW, did you make any changes to DOMPrint?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1276?page=comments#action_53421
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Sun, 26 Sep 2004 5:00 PM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Closed: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Posted by xe...@xml.apache.org.
Message:
The following issue has been closed.
Resolver: cargilld
Date: Mon, 27 Sep 2004 4:47 AM
Closing as per last comment.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Mon, 27 Sep 2004 4:47 AM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: George Aggrey
Created: Sun, 26 Sep 2004 5:33 PM
Body:
It works with the latest sources. Thanks for your help.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1276?page=comments#action_53423
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Sun, 26 Sep 2004 5:33 PM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
[jira] Commented: (XERCESC-1276) DOMPrint crashes when schema validating invalid xml document
Posted by xe...@xml.apache.org.
The following comment has been added to this issue:
Author: cargilld
Created: Sat, 25 Sep 2004 5:21 PM
Body:
I ran DOMPrint with -n -s -f -v=always using the latest source and
got an error about cat:
Error at file "d:\bugs\1276.xml", line 2, column 6
Message: Unknown element 'cat'
Fatal Error at file "d:\bugs\1276.xml", line 12, column 10
Message: An exception occurred! Type:EmptyStackException, Message:The stack is empty, cannot access members
Removing <cat> and </cat> and it ran cleanly.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XERCESC-1276?page=comments#action_53412
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-1276
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-1276
Summary: DOMPrint crashes when schema validating invalid xml document
Type: Bug
Status: Unassigned
Priority: Major
Project: Xerces-C++
Components:
Validating Parser (Schema) (Xerces 1.5 or up only)
Versions:
2.5.0
Assignee:
Reporter: George Aggrey
Created: Sat, 25 Sep 2004 7:56 AM
Updated: Sat, 25 Sep 2004 5:21 PM
Environment: Microsoft VC6
Description:
DOMPrint sample program crashes during schema validation.This is the message I get: DAMAGE: before Normal block(#1081)at 0x00454888
This is the document:
<?xml version="1.0"?>
<cat>
<x:book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:book sl.xsd"
xmlns:x="urn:book" id="bk101">
<x:author>Gambardella, Matthew</x:author>
<x:title>XML Developer's Guide</x:title>
<x:genre>Computer</x:genre>
<x:price>44.95</x:price>
<x:publish_date>2000-10-01</x:publish_date>
<x:description>An in-depth look at creating applications with
XML.</x:description>
</x:book>
</cat>
This is the schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:x="urn:book"
targetNamespace="urn:book"
elementFormDefault="qualified">
<!-- *** Add the following if attributes
are to be namespace prefixed ***
attributeFormDefault="qualified">
-->
<xsd:element name="book">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="genre" type="xsd:string"/>
<xsd:element name="price" type="xsd:float"/>
<xsd:element name="publish_date" type="xsd:date"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org