Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

ClassCastException when writing to index writer

Paul Chan

2008-10-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I am using lucene 2.3.2 and I encounter the following exception when I try
to insert a object into the index.

Caused by: java.lang.ClassCastException: java.util.Vector cannot be cast to
org.apache.lucene.index.SegmentInfos
at org.apache.lucene.index.SegmentInfos.clone (SegmentInfos.java:321)
at org.apache.lucene.index.IndexWriter.init (IndexWriter.java:715)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:666)

Has Anyone seen this problem before? What seems to be the problem?

Thanks!
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.