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">[EMAIL PROTECTED]</email>
  <email type="work">[EMAIL PROTECTED]</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



Reply via email to