You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/03/20 16:28:30 UTC

[Bug 1047] New - Schema validation crashes with groups having more than 8 elements

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1047

*** shadow/1047	Tue Mar 20 07:28:30 2001
--- shadow/1047.tmp.11286	Tue Mar 20 07:28:30 2001
***************
*** 0 ****
--- 1,83 ----
+ +============================================================================+
+ | Schema validation crashes with <all> groups having more than 8 elements    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1047                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.3.0                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Medium                    Component: Schema-Structures       |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: fgonzalez@isoco.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Executing
+ 
+ [c:\java\xerces-1_3_1]java -cp xerces.jar;xercesSamples.jar sax.SAX2Writer -v blowAll.xml
+ 
+ I get
+ 
+ blowAll.xml:
+ <?xml version="1.0" encoding="UTF-8"?>
+ <blowAll xsi:noNamespaceSchemaLocation="blowAll.xsd">Exception in thread "main"
+ java.lang.OutOfMemoryError
+         at org.apache.xerces.validators.common.DFAContentModel.buildDFA(DFAConte
+ ntModel.java, Compiled Code)
+         at org.apache.xerces.validators.common.DFAContentModel.buildDFA(DFAConte
+ ntModel.java, Compiled Code)
+         at org.apache.xerces.validators.common.DFAContentModel.<init>(DFAContent
+ Model.java:300)
+         at org.apache.xerces.validators.common.Grammar.createChildModel(Grammar.
+ java:677)
+         at org.apache.xerces.validators.common.Grammar.getElementContentModel(Gr
+ ammar.java:302)
+         at org.apache.xerces.validators.common.XMLValidator.getElementContentMod
+ el(XMLValidator.java:2272)
+         at org.apache.xerces.validators.common.XMLValidator.pushContentLeafStack
+ (XMLValidator.java:1251)
+         at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
+ Validator.java, Compiled Code)
+         at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
+ tScanner.java, Compiled Code)
+         at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
+ atch(XMLDocumentScanner.java, Compiled Code)
+         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
+ canner.java, Compiled Code)
+         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
+         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:993)
+         at sax.SAX2Writer.print(SAX2Writer.java:149)
+         at sax.SAX2Writer.main(SAX2Writer.java, Compiled Code)
+ 
+ --------------- blowAll.xsd -------------------------
+ 
+ <?xml version="1.0" encoding="ISO-8859-1"?>
+ <schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ 
+ <element name="blowAll">
+ 	<complexType content="elementOnly">
+ 		<all>
+ 			<element name="one" type="string" minOccurs="0"/>
+ 			<element name="two" type="string" minOccurs="0"/>
+ 			<element name="three" type="string" minOccurs="0"/>
+ 			<element name="four" type="string" minOccurs="0"/>
+ 			<element name="five" type="string" minOccurs="0"/>
+ 			<element name="six" type="string" minOccurs="0"/>
+ 			<element name="seven" type="string" minOccurs="0"/>
+ 			<element name="eight" type="string" minOccurs="0"/>
+ 		</all>
+ 	</complexType>
+ </element>
+ 
+ </schema>
+ 
+ --------------- blowAll.xml -------------------------
+ 
+ <?xml version="1.0" encoding="ISO-8859-1"?>
+ 
+ <blowAll xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"		
+         xsi:noNamespaceSchemaLocation='blowAll.xsd'>
+ <one>aspdokaspd</one>
+ </blowAll>

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