From: Wolfgang M. <me...@if...> - 2003-08-13 13:25:05
|
Thanks a lot for the hint. setMaxDepth should check the array size as=20 incMaxDepth does. I changed the code in the re-uploaded release. Wolfgang On Tuesday 12 August 2003 20:25, Ficker, Michael wrote: > I have just begun to use eXist and I discovered that if I try to load a > document with more than 25 levels of nesting the program throws an > ArrayIndexOutOfBounds exception at > org.exist.dom.DocumentImpl.getTreeLevelOrder(DocumentImpl.java:480). With > 24 levels of nesting the document loads fine. > > In the file DocumentImpl.java lines 97 and 99 > > protected int treeLevelOrder[] =3D new int[25]; > protected long treeLevelStartPoints[] =3D new long[25]; > > If I bump up the array size to say 35, then a document with 25 nesting > levels loads fine. The method incMaxDepth() looks like it has code to > increase the size of treeLevelOrder but it must not be getting called if I > am getting ArrayIndexOutOfBounds exceptions. > > My test files look like this > <theTest> > <test> > <test> > <test> > ... > </test> > </test> > </test> > </theTest> > > So a file with 25 levels of depth is less than 500 bytes in size. > Am I doing somthing wrong or have I run across a real bug? I have found > the same behavior in snapshot-030808, 0.9.2, and 0.8.1 > > Michael Ficker > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/= 01 > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open =2D-=20 Wolfgang Meier Darmstadt University of Technology TELOS Working Group, Dept. of Soc. Residenzschlo=C3=9F D-64283 Darmstadt, Germany +49 (0)6151-164458 mailto:me...@if... http://www.sozionet.org =20 |