Load directory tree failed

"Amir Saad" <[email protected]> Wed, 1 Mar 2006 10:30:25 +0200
Newsgroups gmane.text.xml.xindice.user
Message-ID <AAA84820D5874F46B68C394C41FBBB22258CAB@SEXGW3K-H2010.local.bibalex.dom>
I have a directory containing 40.000 xml document, I tried to import this
directory into the Xindice:

xindiceadmin import -c /db -f tmp -e xml -v
Created : /db/tmp
ERROR : Java Runtime Error
ERROR : null
java.lang.NullPointerException
        at
org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:150)
        at
org.apache.xindice.tools.command.ImportTree.importFile(ImportTree.java:189)
        at org.apache.xindice.tools.command.ImportTree.process(ImportTree.java:167)
        at org.apache.xindice.tools.command.ImportTree.execute(ImportTree.java:118)
        at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:331)
        at org.apache.xindice.tools.XMLTools.process(XMLTools.java:257)
        at org.apache.xindice.tools.XMLAdminTools.main(XMLAdminTools.java:89)

I tried to import a directory containing 5 files and it worked
I tried to add multiple document using the following command:
xindiceadmin add_multiple_documents -c /db/book -f tmp
after 5000 file, it reported "ERROR: Too many open files"

I hope you can help...
Thank
Amir Saad
Software Engineer