You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by L Z <lo...@yahoo.com> on 2004/09/24 12:43:26 UTC

The "indexpath" parameter in the domain.xml

Hello slide users,

I am using "slide-server-2.1b1" and when i try to use
the  SampleTxtContainsIndexer indexer uncommenting
the:
<!--
                <contentindexer
classname="org.apache.slide.index.SampleTxtContainsIndexer">
                <parameter
name="indexpath">./index</parameter>
                </contentindexer>
-->
lines, i can't restart the web application. 
The error log is the following:
24 Sep 2004 11:10:25 - org.apache.slide.common.Domain
- ERROR - java.lang.NullPointerException
java.lang.NullPointerException
	at java.io.File.<init>(File.java:180)
	at
org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83)
	at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:173)
	at
org.apache.slide.index.SampleTxtContainsIndexer.initialize(SampleTxtContainsIndexer.java:73)
	at
org.apache.slide.store.AbstractStore.initialize(AbstractStore.java:265)
	at
org.apache.slide.common.Namespace.initializeServices(Namespace.java:484)
	at
org.apache.slide.common.Namespace.loadDefinition(Namespace.java:751)
	at
org.apache.slide.common.Domain.initNamespace(Domain.java:840)
	at
org.apache.slide.common.Domain.init(Domain.java:432)
	at
org.apache.slide.common.Domain.init(Domain.java:366)
	at
org.apache.slide.common.Domain.init(Domain.java:329)
	at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:263)
	at
javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at
org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:205)

I modified the the SampleTXContainsIndexer and i found
out that the program doesn't seems to find the
"INDEX_PATH" parameter.(indexpath =
token.getNamespaceConfig().getParameter (INDEX_PATH);)

Is there anybody else who experiences this ? 

Thank you!




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org