You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Wap Brunei <br...@hotmail.com> on 2002/01/02 08:37:08 UTC
java.lang.OutOfMemoryError
i have an Person.xml file like this size about 404 byte
<?xml version="1.0" encoding="UTF-8"?>
<person>
<fname>Ken</fname>
<lname>Smith</lname>
<phone type="work">563-456-7890</phone>
<phone type="home">534-567-8901</phone>
<email type="home">jsmith@somemail.com</email>
<email type="work">john@lovesushi.com</email>
<address type="home">34 S. Colon St.</address>
<address type="work">9967 W. Shrimp Ave.</address>
</person>
i wrote a java class and insert this to xindice
for (int i = 1 ; i <= 50000 ; i++)
test1.AddDocument("Test"+i);
then i make a query
String xpath = "//fname[text()='ken']";
XPathQueryService service =
(XPathQueryService) col.getService("XPathQueryService", "1.0");
ResourceSet resultSet = service.query(xpath);
ResourceIterator results = resultSet.getIterator();
while (results.hasMoreResources()) {
Resource res = results.nextResource();
}
}
why an error message come out
java.lang.OutOfMemoryError
<<no stack trace available>>
Exception in thread "main"
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com