Roland Cornelissen wrote:
> Hi,
> I try to get LUCAS to work for me in Eclipse but I keep remaining this 
> error for SplitterFile.java in org.apache.uima.lucas.indexer.analysis: 
> splitIterator = Iterators.forArray(splitts, 0, splitts.length);
> The error I get is: Type mismatch: cannot convert from 
> UnmodifiableIterator<Serializable> to Iterator<String>
>   

Perhaps the classpath is not correct?  The line

splitIterator = Iterators.forArray(splitts, 0, splitts.length);


on my setup shows Iterators.forArray returning a type of
UnmodifiableIterator<String>, not UnmodifiableIterator<Serializable>

The implementations of Iterators is coming google collections 0.9 jar. 
Where is your implementation coming from?  (To see this in Eclipse, you
can do the following:
  1) press pf3 after putting your cursor on the word Iterators in the
above line of code
  2) press the "link with editor" button (icon is a left arrow over a
right arrow) on the Package Explorer window set of buttons at the top of
this view (if it is not already pushed in - it's a toggle), and that
should switch the package view to the source file location.  In my setup
it goes to Referenced Libraries - google-collections-0.9.jar.

HTH. -Marshall

> With this error Lucas seems to work, it produces an index, but I'm not 
> certain if that will be so all the time.
>
> I used the following libraries: Lucene 2.4 
> (core,highlighter,memory,snowball) / Google Collect 1.0 /Uima 
>
> Can anybody explain what's going on here??
>
> Roland
>
>
>
>
>   

Reply via email to