This seems to be a log4j problem. You may see the link below: ------------------------ http://jakarta.apache.org/log4j/docs/TROUBLESHOOT.html log4j tells me to initialize properly. Logging output is written to a target by using an appender. If no appenders are attached to a category nor to any of its ancestors, you will get the following message when trying to log:
log4j: No appenders could be found for category (some.category.name). log4j: Please initialize the log4j system properly. Log4j does not have a default logging target. It is the user's responsibility to ensure that all categories can inherit an appender. This can be easily achieved by attaching an appender to the root category. ------------------------- Is it possible to use Indyo as it is? Do we have to do some further configuration on log4j? If it is easy to do that, how can I do that? Thanks Harun. ----- Original Message ----- From: "Harun Altay" <[EMAIL PROTECTED]> To: "Lucene Users List" <[EMAIL PROTECTED]> Sent: Monday, February 17, 2003 4:44 PM Subject: Indyo problem - log4j:WARN No appenders could be found for logger > Hi, > > I have a problem with Indyo. I have downloaded indyo from cvs, and compiled > it. I tried to run the code below, but it gives an exception. > > I look through the lucene user and developer archive, and I could not find > any mail similar to this case. It may be a problem related to log4j, as > well. Maybe something else. I want to learn what is the mistake here. > > Actually, if we have a ready-to-use jar file for indyo, it may be better, > just like lucene or such other projects. > > Thanks, > Harun. > > > Source code is from: > http://jakarta.apache.org/lucene/docs/lucene-sandbox/indyo/tutorial.html > ----------------------------------------------------------------- > > package lucene; > > import com.relevanz.indyo.*; > > public class Indyo { > public static void main(String[] args) { > try { > IndexDataSource ds = new FSDataSource("dir1"); > IndyoIndexer indexer = new IndyoIndexer("indexPath4", > "default.config.xml"); > indexer.index(ds); > } > catch (Exception e) { > System.out.println("Exception : " + e); > } > } > } > > Error: > ----------------------------------------------------------------- > > log4j:WARN No appenders could be found for logger > (com.relevanz.indyo.SearchConfiguration). > log4j:WARN Please initialize the log4j system properly. > > Exception : java.lang.NullPointerException > > > ----------------------------------------------------------------- > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
