On Cocoon 2.0.2

Has Anyone tried to create a application based (as opposed to a webapp)
to index a set of XML files using the CocoonLuceneIndex Creator, I keep
getting the same damn NullPointerError, when I try creating the index, the
reason why I'm trying to create an App is that I'm trying to index about
50 000 XML files, the Webapp dies and when I try searching I get "Too Many
Files open"
Error.


The following code is the section I'm having trouble with basically I trying
to create a
LuceneCocoonIndexer (lcii), and index a specific directory

                    String workDir =
"/opt/customer/orion/application-deployments/default/defaultWebApp/temp/coco
on-files/index/" ;
                    CocoonComponentManager component = new CocoonComponentManager();
                    lcii = (LuceneCocoonIndexer)component.lookup(
LuceneCocoonIndexer.ROLE );
                    // lcii = new SimpleLuceneCocoonIndexerImpl() ;
                    Directory directory = LuceneCocoonHelper.getDirectory( new File(
workDir, "index" ), create );
                    lcii.setAnalyzer( analyzer );
                    URL base_url = new URL( baseURL );
                    lcii.index( directory, create, base_url );  <<<<<<<<<<< I get the
error here

I think the problem is in the way I'm instantiating lcii , and if you're
wondering .. the commented when throws the same
exception : java.lang.NullPointerException..

PS : I would really enjoy chatting with someone about the Lucene
Functionality in Cocoon 2.0.2 because there is very little
documentation or mention of it anywhere .

Cheers

Nader S. Henein
Tel. +9714 3911900
Fax. +9714 3911915
GSM. +9715 05659557
www.bayt.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to