lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex vB <m...@avomberg.de>
Subject Could not find implementing class
Date Tue, 25 Jan 2011 15:12:18 GMT

Hello everybody,

I used a small indexing example from "Lucene in Action" and can run and
compile the program under eclipse. If I want to compile and run it by
console I get this error:


java.lang.IllegalArgumentException: Could not find implementing class for
org.apache.lucene.analysis.tokenattributes.TermAttribute
	at
org.apache.lucene.util.AttributeSource$AttributeFactory$DefaultAttributeFactory.getClassForInterface(AttributeSource.java:87)
	at
org.apache.lucene.util.AttributeSource$AttributeFactory$DefaultAttributeFactory.createAttributeInstance(AttributeSource.java:66)
	at
org.apache.lucene.util.AttributeSource.addAttribute(AttributeSource.java:245)
	at
org.apache.lucene.index.DocInverterPerThread$SingleTokenAttributeSource.<init>(DocInverterPerThread.java:41)
	at
org.apache.lucene.index.DocInverterPerThread$SingleTokenAttributeSource.<init>(DocInverterPerThread.java:36)
	at
org.apache.lucene.index.DocInverterPerThread.<init>(DocInverterPerThread.java:34)
	at org.apache.lucene.index.DocInverter.addThread(DocInverter.java:95)
	at
org.apache.lucene.index.DocFieldProcessorPerThread.<init>(DocFieldProcessorPerThread.java:62)
	at
org.apache.lucene.index.DocFieldProcessor.addThread(DocFieldProcessor.java:88)
	at
org.apache.lucene.index.DocumentsWriterThreadState.<init>(DocumentsWriterThreadState.java:43)
	at
org.apache.lucene.index.DocumentsWriter.getThreadState(DocumentsWriter.java:739)
	at
org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:814)
	at
org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:802)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1998)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1972)
	at Demo.setUp(Demo.java:86)
	at Demo.main(Demo.java:46)

I compile the command with javac -cp <path/Lucene/sources> Demo.java which
finishes without errors but running the program isn't possible. What am I
missing?? Basically I am just creating a directory, getting an indexwriter
with analyzer etc.. Line 86 in Demo.java is writer.addDocument(doc);.

Greetings Alex
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Could-not-find-implementing-class-tp2330598p2330598.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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


Mime
View raw message