Re: ClassCastException when writing to index writer

2008-10-06 Thread Paul Chan
rracotta from my configuration, then I > don't > > get the ClassCastException problem any longer. I will talk to the > > Terracotta folks to see if I have done something wrong on my end. > > > > Thanks again for everyone's help! > > > > On Mon, Oct 6,

Re: ClassCastException when writing to index writer

2008-10-06 Thread Paul Chan
ks to see if I have done something wrong on my end. Thanks again for everyone's help! On Mon, Oct 6, 2008 at 12:26 PM, Paul Chan <[EMAIL PROTECTED]> wrote: > Hi Edwin, > > Yes, I am running the TestVector against the same class path as my actual > application. My class

Re: ClassCastException when writing to index writer

2008-10-06 Thread Paul Chan
your actual application? Does it > contain the Lucene JAR files? > > > > Regards, > Edwin > > > > --- Paul Chan <[EMAIL PROTECTED]> wrote: > > > I have tried to recompile Lucene 2.3.2 under my environment (SUN JDK 1.6) > > and it still doesn

Re: ClassCastException when writing to index writer

2008-10-05 Thread Paul Chan
ethod doesnt work at all. I don't really know what to do at this moment. Does anyone have any insight? On Sun, Oct 5, 2008 at 10:45 PM, Paul Chan <[EMAIL PROTECTED]> wrote: > Thank you all for your input. However, this is what I have discovered so > far: > >- I trie

Re: ClassCastException when writing to index writer

2008-10-05 Thread Paul Chan
Thank you all for your input. However, this is what I have discovered so far: - I tried running the test that Edwin suggested and it failed for me in my environment (Lucene 2.3.2, Windows XP, SUN JDK 1.5 or 1.6) e.g. SegmentInfos sis = new SegmentInfos(); SegmentInfos sis2 = (Segment

Re: ClassCastException when writing to index writer

2008-10-03 Thread Paul Chan
; But, this is an exceptionally strange exception. Maybe try a different > version of the JRE? > > Any odd JARs on your CLASSPATH? > > What hardware/OS? > > > Mike > > Paul Chan wrote: > > I am using Java 1.6.0_02. Is this a problem? >> >> On Fri, O

Re: ClassCastException when writing to index writer

2008-10-03 Thread Paul Chan
n your case it's somehow producing a Vector instead? > > Mike > > > Paul Chan wrote: > > Hi Mike, >> >> I am actually using the Compass Search Engine which in turn makes use of >> Lucene. They are doing the following in their code: >> >>

Re: ClassCastException when writing to index writer

2008-10-03 Thread Paul Chan
ene before this. > > Mike > > > Paul Chan wrote: > > I think I know what the problem is looking at the code: >> >> In SegmentInfos.java (line 321): >> >> class SegmentInfos extends Vector >> { >> public Object clone() { >&g

Re: ClassCastException when writing to index writer

2008-10-03 Thread Paul Chan
I think I know what the problem is looking at the code: In SegmentInfos.java (line 321): class SegmentInfos extends Vector { public Object clone() { SegmentInfos sis = (SegmentInfos) super.clone(); for(int i=0;i wrote: > Hi, > > I am using lucene 2.3.2 and I encounter the follo

ClassCastException when writing to index writer

2008-10-03 Thread Paul Chan
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) a