hi sandy; On Mon, 8 Apr 2002 [EMAIL PROTECTED] wrote:
> (Didn't we talk about this before?) You need to change the values of > maxOccurs to small numbers (<= 200) or unbounded. arg, yes. we did. i've been trading versions back and forth with the schema author so much lately that i forgot to amend his most recent version accordingly. i am very grateful for your reminder! > Sandy Gao > Software Developer, IBM Canada > (1-905) 413-3255 > [EMAIL PROTECTED] > > > > > > John Utz > > <utz@singingfi To: [EMAIL PROTECTED] > > sh.com> cc: > > Subject: what is >CMBuilder.buildSyntaxTree()'s recursion exit > 04/08/2002 criteria and does it depend on setting the >schema-full-checking > 02:48 PM property?criteria ? > > Please respond > > to > > xerces-j-dev > > > > > > > > > > Hello; > > I have a collection of test examples for the soon to be released mpeg7 > schema. > > the *.xsd files for the schema are pretty big, but the test documents are > pretty small. > > the xsd files are located at http://m7itb.nist.gov/M7Validation.html if > you want to view them, i wont burden the list by including them in the > email. > > but here is a very simple example that causes an out of memory error: > > <Mpeg7 > xmlns="urn:mpeg:mpeg7:schema:2001" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xmlns:mpeg7 > ="urn:mpeg:mpeg7:schema:2001" xsi:schemaLocation > ="urn:mpeg:mpeg7:schema:2001 > .\Mpeg7-2001.xsd"> > <Description xsi:type="ContentEntityType"> > <MultimediaContent xsi:type="VideoType"> > <Video> > <SpatioTemporalDecomposition> > <MovingRegion id="ManMR"> > <TextAnnotation> > <FreeTextAnnotation> Man </FreeTextAnnotation> > </TextAnnotation> > <SpatioTemporalLocator> > <FigureTrajectory type="rectangle"> > <MediaTime> > <MediaTimePoint>T00:00:15</MediaTimePoint> > <MediaDuration>PT1M15S</MediaDuration> > </MediaTime> > <Vertex> > <WholeInterval> > <MediaDuration>PT0S</MediaDuration> > </WholeInterval> > <InterpolationFunctions> > <KeyValue type="startPoint">0.1</KeyValue> > <KeyValue type="startPoint">0.2</KeyValue> > </InterpolationFunctions> > </Vertex> > <Vertex> > <WholeInterval> > <MediaDuration>PT1S</MediaDuration> > </WholeInterval> > <InterpolationFunctions> > <KeyValue type="startPoint">0.3</KeyValue> > <KeyValue type="startPoint">0.4</KeyValue> > </InterpolationFunctions> > </Vertex> > <Vertex> > <WholeInterval> > <MediaDuration>PT2S</MediaDuration> > </WholeInterval> > <InterpolationFunctions> > <KeyValue type="startPoint">0.5</KeyValue> > <KeyValue type="startPoint">0.6</KeyValue> > </InterpolationFunctions> > </Vertex> > <!-- more elements here --> > </FigureTrajectory> > </SpatioTemporalLocator> > </MovingRegion> > </SpatioTemporalDecomposition> > </Video> > </MultimediaContent> > </Description> > </Mpeg7> > > if i do a -verbose, the last class loaded is > > [Loaded org.apache.xerces.impl.xs.models.XSSimpleCM] > > > bash-2.05$ java -mx400Mb dom.ASBuilder -a Mpeg7-2001.xsd -i > descriptionExample055.xml > Exception in thread "main" java.lang.OutOfMemoryError > <<no stack trace available>> > > if i shrink the stack i get a stack overflow at this line, so i am > assuming that the out of memory comes from the same place: > > // > // Recurse on both children, and return a binary op node > // with the two created sub nodes as its children. The node > // type is the same type as the source. > // > > nodeRet = new XSCMBinOp( startNode.fType,buildSyntaxTree(leftNode), > buildSyntaxTree(rightNode)); > > > it seems to me that the recursion is failing to terminate correctly. does > this ring any bells with anybody? > > note that i have 168 examples, and as long as i dont have > schema-full-checking enabled, only 3 fail with out of memory errors. > > but if i turn on full checking, then all 168 fail with out of mem errors. > > tnx! > > johnu > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
