You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Roland Cornelissen <ro...@kabelco.nl> on 2010/02/16 00:34:56 UTC
Lucas compile error
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>
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
Re: Lucas compile error
Posted by Roland Cornelissen <ro...@kabelco.nl>.
Thanks for the fast reply Marshall,
> Perhaps the classpath is not correct? The line
The classpath was correct but referenced to Google-collect-1.0.jar ,
which seems to be an incompatible version.
> The implementations of Iterators is coming google collections 0.9 jar.
When including Google-collect-0.9.jar the error was gone.
tnx
Roland
Re: Lucas compile error
Posted by Marshall Schor <ms...@schor.com>.
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
>
>
>
>
>