Exceptions with this morning's ES snapshot

I saw Simon has landed his 4.2 branch and built a snapshot this morning.
Now my tests are failing with the exception pasted below. It seems some
class has disappeared that is still needed.

Is something broken on trunk or do I need to put extra jar files on the mvn
classpath?

I'm using elastic search embedded and my pom points
to 0.90.0.Beta2-SNAPSHOT (i.e. whichever snapshot I built last). I've
pasted the output of maven dependency:tree below the stacktrace.

Exception in thread "elasticsearch[devnode][[users][0]: Lucene Merge Thread
#0]" org.apache.lucene.index.MergePolicy$MergeException:
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:541)
at
org.elasticsearch.index.merge.scheduler.ConcurrentMergeSchedulerProvider$CustomConcurrentMergeScheduler.handleMergeException(ConcurrentMergeSchedulerProvider.java:101)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:514)
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104)
at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:191)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233)
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:127)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269)
at org.apache.lucene.index.IndexWriter._mergeInit(IndexWriter.java:3472)
at org.apache.lucene.index.IndexWriter.mergeInit(IndexWriter.java:3434)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3287)
at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:401)
at
org.apache.lucene.index.TrackingConcurrentMergeScheduler.doMerge(TrackingConcurrentMergeScheduler.java:91)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:478)

[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ localstream ---
[INFO] com.localstream:localstream:jar:1.0-SNAPSHOT
[INFO] +- org.testng:testng:jar:6.8:test
[INFO] | +- org.beanshell:bsh:jar:2.0b4:test
[INFO] | +- com.beust:jcommander:jar:1.27:test
[INFO] | - org.yaml:snakeyaml:jar:1.6:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test (scope not updated to
compile)
[INFO] +- org.mockito:mockito-all:jar:1.9.5:test
[INFO] +- com.google.guava:guava:jar:14.0-rc1:compile
[INFO] +- commons-codec:commons-codec:jar:1.7:compile
[INFO] +- org.elasticsearch:elasticsearch:jar:0.90.0.Beta2-SNAPSHOT:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-codecs:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:4.2.0:compile
[INFO] | - org.apache.lucene:lucene-spatial:jar:4.2.0:compile
[INFO] +- com.github.jillesvangurp:xmltools:jar:1.2:compile
[INFO] +-
com.github.jillesvangurp:httpclient-future:jar:0.2-SNAPSHOT:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | - org.apache.httpcomponents:httpclient:jar:4.2.2:compile
[INFO] | - org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[INFO] +- com.github.jsonj:jsonj:jar:1.6-SNAPSHOT:compile
[INFO] | - com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.github.jillesvangurp:geotools:jar:1.5:compile
[INFO] +- org.apache.ant:ant:jar:1.8.4:compile
[INFO] | - org.apache.ant:ant-launcher:jar:1.8.4:compile
[INFO] +- com.github.jillesvangurp:iterables-support:jar:1.1:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.2:compile
[INFO] +- com.github.jillesvangurp:geokv:jar:1.0:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.springframework:spring-test:jar:3.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-webmvc:jar:3.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-context:jar:3.2.0.RELEASE:compile
[INFO] | | | - org.springframework:spring-aop:jar:3.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-web:jar:3.2.0.RELEASE:compile
[INFO] | | | - aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +-
org.springframework:spring-expression:jar:3.2.0.RELEASE:compile
[INFO] | | - org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
[INFO] | - org.springframework:spring-core:jar:3.2.0.RELEASE:compile
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] | - asm:asm:jar:3.3.1:compile
[INFO] +- com.github.jillesvangurp:efficientstring:jar:1.3:compile
[INFO] +- org.apache.mahout:mahout-collections:jar:1.0:compile
[INFO] +- com.spatial4j:spatial4j:jar:0.3:compile
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] - org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] - org.tukaani:xz:jar:1.0:compile
[I

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Actually, it's worse. Elastic search doesn't currently compile. I removed
org/elastic and org/apache/lucene from my .m2/repository directory and
tried to rebuild elastic search with a mvn clean install -DskipTests=true

I'm now getting the following compilation errors when trying to build
elastic search. These errors were masked by jars already in my repository
somehow.

I've verified that the breakage starts with commit 11bf7a8 which was when
the lucene 4.2 branch was merged. The commit before that builds fine.

To reproduce: rm -rf org/apache/lucene org/elasticsearch/ in your
.m2/repository

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/query/QueryPhase.java:[126,61]
error: cannot access TopDocs
[ERROR] class file for TopDocs not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/fetch/explain/ExplainFetchSubPhase.java:[70,46]
error: cannot access Explanation
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[144,20]
error: cannot access BytesRef
[ERROR] class file for BytesRef not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[140,20]
error: cannot access Analyzer
[ERROR] class file for Analyzer not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[158,24]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[160,34]
error: cannot access PositionIncrementAttribute
[ERROR] class file for PositionIncrementAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[155,24]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[ERROR] method SuggestUtils.analyze(TokenStream,TokenConsumer) is not
applicable
(actual and formal argument lists differ in length)
method SuggestUtils.analyze(Analyzer,CharsRef,String,TokenConsumer) is
not applicable
(actual and formal argument lists differ in length)
method
SuggestUtils.analyze(Analyzer,BytesRef,String,TokenConsumer,CharsRef) is
not applicable
(actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion)
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java:[55,27]
error: method joinPreAllocated in class SuggestUtils cannot be applied to
given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[70,21]
error: cannot access TokenStream
[ERROR] class file for TokenStream not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[68,12]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[77,32]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[62,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.TokenStream,)
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[61,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[43,6]
error: QueryRescorer is not abstract and does not override abstract method
extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[67,23]
error: explain(int,SearchContext,RescoreSearchContext) in QueryRescorer
cannot implement explain(int,SearchContext,RescoreSearchContext) in Rescorer
[ERROR] return type org.apache.lucene.search.Explanation is not
compatible with Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[52,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[66,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[320,16]
error: name clash:
extractTerms(SearchContext,RescoreSearchContext,Set) in QueryRescorer
and extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer have
the same erasure, yet neither overrides the other
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[319,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestParser.java:[131,87]
error: method getShingleFilterFactory in class SuggestUtils cannot be
applied to given types;
[ERROR] actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[60,86]
error: cannot access DirectSpellChecker
[ERROR] class file for DirectSpellChecker not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[61,111]
error: cannot access SuggestMode
[ERROR] class file for SuggestMode not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java:[114,46]
error: incompatible types
[ERROR] Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[47,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[53,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[55,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[59,24]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[66,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[44,82]
error: incompatible types
[ERROR] DirectSpellChecker
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[74,64]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[75,53]
error: cannot access OffsetAttribute
[ERROR] class file for OffsetAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[71,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[INFO] 36 errors
[INFO] -------------------------------------------------------------
[INFO]

[INFO] BUILD FAILURE

On Tuesday, March 12, 2013 10:32:00 AM UTC+1, Jilles van Gurp wrote:

I saw Simon has landed his 4.2 branch and built a snapshot this morning.
Now my tests are failing with the exception pasted below. It seems some
class has disappeared that is still needed.

Is something broken on trunk or do I need to put extra jar files on the
mvn classpath?

I'm using elastic search embedded and my pom points
to 0.90.0.Beta2-SNAPSHOT (i.e. whichever snapshot I built last). I've
pasted the output of maven dependency:tree below the stacktrace.

Exception in thread "elasticsearch[devnode][[users][0]: Lucene Merge
Thread #0]" org.apache.lucene.index.MergePolicy$MergeException:
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:541)
at
org.elasticsearch.index.merge.scheduler.ConcurrentMergeSchedulerProvider$CustomConcurrentMergeScheduler.handleMergeException(ConcurrentMergeSchedulerProvider.java:101)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:514)
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104)
at org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:191)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233)
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:127)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269)
at org.apache.lucene.index.IndexWriter._mergeInit(IndexWriter.java:3472)
at org.apache.lucene.index.IndexWriter.mergeInit(IndexWriter.java:3434)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3287)
at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:401)
at
org.apache.lucene.index.TrackingConcurrentMergeScheduler.doMerge(TrackingConcurrentMergeScheduler.java:91)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:478)

[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ localstream ---
[INFO] com.localstream:localstream:jar:1.0-SNAPSHOT
[INFO] +- org.testng:testng:jar:6.8:test
[INFO] | +- org.beanshell:bsh:jar:2.0b4:test
[INFO] | +- com.beust:jcommander:jar:1.27:test
[INFO] | - org.yaml:snakeyaml:jar:1.6:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test (scope not updated to
compile)
[INFO] +- org.mockito:mockito-all:jar:1.9.5:test
[INFO] +- com.google.guava:guava:jar:14.0-rc1:compile
[INFO] +- commons-codec:commons-codec:jar:1.7:compile
[INFO] +- org.elasticsearch:elasticsearch:jar:0.90.0.Beta2-SNAPSHOT:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-codecs:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:4.2.0:compile
[INFO] | - org.apache.lucene:lucene-spatial:jar:4.2.0:compile
[INFO] +- com.github.jillesvangurp:xmltools:jar:1.2:compile
[INFO] +-
com.github.jillesvangurp:httpclient-future:jar:0.2-SNAPSHOT:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | - org.apache.httpcomponents:httpclient:jar:4.2.2:compile
[INFO] | - org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[INFO] +- com.github.jsonj:jsonj:jar:1.6-SNAPSHOT:compile
[INFO] | - com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.github.jillesvangurp:geotools:jar:1.5:compile
[INFO] +- org.apache.ant:ant:jar:1.8.4:compile
[INFO] | - org.apache.ant:ant-launcher:jar:1.8.4:compile
[INFO] +- com.github.jillesvangurp:iterables-support:jar:1.1:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.2:compile
[INFO] +- com.github.jillesvangurp:geokv:jar:1.0:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.springframework:spring-test:jar:3.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-webmvc:jar:3.2.0.RELEASE:compile
[INFO] | | +-
org.springframework:spring-context:jar:3.2.0.RELEASE:compile
[INFO] | | | - org.springframework:spring-aop:jar:3.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-web:jar:3.2.0.RELEASE:compile
[INFO] | | | - aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +-
org.springframework:spring-expression:jar:3.2.0.RELEASE:compile
[INFO] | | - org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
[INFO] | - org.springframework:spring-core:jar:3.2.0.RELEASE:compile
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] | - asm:asm:jar:3.3.1:compile
[INFO] +- com.github.jillesvangurp:efficientstring:jar:1.3:compile
[INFO] +- org.apache.mahout:mahout-collections:jar:1.0:compile
[INFO] +- com.spatial4j:spatial4j:jar:0.3:compile
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] - org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] - org.tukaani:xz:jar:1.0:compile
[I

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I am on commit: 237c4ddf5418ffc997fc083b114bf3c34a3ac00f
and I wiped my m2 repo and ran you command:

$ mvn clean install -DskipTests=true

output:

[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 44 seconds
[INFO] Finished at: Tue Mar 12 11:16:20 CET 2013
[INFO] Final Memory: 104M/2179M
[INFO]

seems ok to me though?

simon

On Tuesday, March 12, 2013 11:04:24 AM UTC+1, Jilles van Gurp wrote:

Actually, it's worse. Elastic search doesn't currently compile. I removed
org/elastic and org/apache/lucene from my .m2/repository directory and
tried to rebuild elastic search with a mvn clean install -DskipTests=true

I'm now getting the following compilation errors when trying to build
elastic search. These errors were masked by jars already in my repository
somehow.

I've verified that the breakage starts with commit 11bf7a8 which was when
the lucene 4.2 branch was merged. The commit before that builds fine.

To reproduce: rm -rf org/apache/lucene org/elasticsearch/ in your
.m2/repository

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/query/QueryPhase.java:[126,61]
error: cannot access TopDocs
[ERROR] class file for TopDocs not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/fetch/explain/ExplainFetchSubPhase.java:[70,46]
error: cannot access Explanation
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[144,20]
error: cannot access BytesRef
[ERROR] class file for BytesRef not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[140,20]
error: cannot access Analyzer
[ERROR] class file for Analyzer not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[158,24]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[160,34]
error: cannot access PositionIncrementAttribute
[ERROR] class file for PositionIncrementAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[155,24]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[ERROR] method SuggestUtils.analyze(TokenStream,TokenConsumer) is not
applicable
(actual and formal argument lists differ in length)
method SuggestUtils.analyze(Analyzer,CharsRef,String,TokenConsumer) is
not applicable
(actual and formal argument lists differ in length)
method
SuggestUtils.analyze(Analyzer,BytesRef,String,TokenConsumer,CharsRef) is
not applicable
(actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion)
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java:[55,27]
error: method joinPreAllocated in class SuggestUtils cannot be applied to
given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[70,21]
error: cannot access TokenStream
[ERROR] class file for TokenStream not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[68,12]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[77,32]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[62,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.TokenStream,)
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[61,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[43,6]
error: QueryRescorer is not abstract and does not override abstract method
extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[67,23]
error: explain(int,SearchContext,RescoreSearchContext) in QueryRescorer
cannot implement explain(int,SearchContext,RescoreSearchContext) in Rescorer
[ERROR] return type org.apache.lucene.search.Explanation is not
compatible with Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[52,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[66,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[320,16]
error: name clash:
extractTerms(SearchContext,RescoreSearchContext,Set) in QueryRescorer
and extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer have
the same erasure, yet neither overrides the other
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[319,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestParser.java:[131,87]
error: method getShingleFilterFactory in class SuggestUtils cannot be
applied to given types;
[ERROR] actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[60,86]
error: cannot access DirectSpellChecker
[ERROR] class file for DirectSpellChecker not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[61,111]
error: cannot access SuggestMode
[ERROR] class file for SuggestMode not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java:[114,46]
error: incompatible types
[ERROR] Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[47,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[53,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[55,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[59,24]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[66,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[44,82]
error: incompatible types
[ERROR] DirectSpellChecker
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[74,64]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[75,53]
error: cannot access OffsetAttribute
[ERROR] class file for OffsetAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[71,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[INFO] 36 errors
[INFO] -------------------------------------------------------------
[INFO]

[INFO] BUILD FAILURE

On Tuesday, March 12, 2013 10:32:00 AM UTC+1, Jilles van Gurp wrote:

I saw Simon has landed his 4.2 branch and built a snapshot this morning.
Now my tests are failing with the exception pasted below. It seems some
class has disappeared that is still needed.

Is something broken on trunk or do I need to put extra jar files on the
mvn classpath?

I'm using elastic search embedded and my pom points
to 0.90.0.Beta2-SNAPSHOT (i.e. whichever snapshot I built last). I've
pasted the output of maven dependency:tree below the stacktrace.

Exception in thread "elasticsearch[devnode][[users][0]: Lucene Merge
Thread #0]" org.apache.lucene.index.MergePolicy$MergeException:
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:541)
at
org.elasticsearch.index.merge.scheduler.ConcurrentMergeSchedulerProvider$CustomConcurrentMergeScheduler.handleMergeException(ConcurrentMergeSchedulerProvider.java:101)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:514)
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104)
at
org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:191)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233)
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:127)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269)
at org.apache.lucene.index.IndexWriter._mergeInit(IndexWriter.java:3472)
at org.apache.lucene.index.IndexWriter.mergeInit(IndexWriter.java:3434)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3287)
at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:401)
at
org.apache.lucene.index.TrackingConcurrentMergeScheduler.doMerge(TrackingConcurrentMergeScheduler.java:91)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:478)

[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ localstream

[INFO] com.localstream:localstream:jar:1.0-SNAPSHOT
[INFO] +- org.testng:testng:jar:6.8:test
[INFO] | +- org.beanshell:bsh:jar:2.0b4:test
[INFO] | +- com.beust:jcommander:jar:1.27:test
[INFO] | - org.yaml:snakeyaml:jar:1.6:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test (scope not updated to
compile)
[INFO] +- org.mockito:mockito-all:jar:1.9.5:test
[INFO] +- com.google.guava:guava:jar:14.0-rc1:compile
[INFO] +- commons-codec:commons-codec:jar:1.7:compile
[INFO] +-
org.elasticsearch:elasticsearch:jar:0.90.0.Beta2-SNAPSHOT:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-codecs:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:4.2.0:compile
[INFO] | - org.apache.lucene:lucene-spatial:jar:4.2.0:compile
[INFO] +- com.github.jillesvangurp:xmltools:jar:1.2:compile
[INFO] +-
com.github.jillesvangurp:httpclient-future:jar:0.2-SNAPSHOT:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | - org.apache.httpcomponents:httpclient:jar:4.2.2:compile
[INFO] | - org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[INFO] +- com.github.jsonj:jsonj:jar:1.6-SNAPSHOT:compile
[INFO] | - com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.github.jillesvangurp:geotools:jar:1.5:compile
[INFO] +- org.apache.ant:ant:jar:1.8.4:compile
[INFO] | - org.apache.ant:ant-launcher:jar:1.8.4:compile
[INFO] +- com.github.jillesvangurp:iterables-support:jar:1.1:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.2:compile
[INFO] +- com.github.jillesvangurp:geokv:jar:1.0:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.springframework:spring-test:jar:3.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-webmvc:jar:3.2.0.RELEASE:compile
[INFO] | | +-
org.springframework:spring-context:jar:3.2.0.RELEASE:compile
[INFO] | | | -
org.springframework:spring-aop:jar:3.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-web:jar:3.2.0.RELEASE:compile
[INFO] | | | - aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +-
org.springframework:spring-expression:jar:3.2.0.RELEASE:compile
[INFO] | | - org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
[INFO] | - org.springframework:spring-core:jar:3.2.0.RELEASE:compile
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] | - asm:asm:jar:3.3.1:compile
[INFO] +- com.github.jillesvangurp:efficientstring:jar:1.3:compile
[INFO] +- org.apache.mahout:mahout-collections:jar:1.0:compile
[INFO] +- com.spatial4j:spatial4j:jar:0.3:compile
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] - org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] - org.tukaani:xz:jar:1.0:compile
[I

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

False alarm. After deleting my entire repository things compile fine again.

I've no idea what jar was the exact problem but it seems something was
stale in my repository outside the lucene and es directories.

Jilles

On Tuesday, March 12, 2013 11:04:24 AM UTC+1, Jilles van Gurp wrote:

Actually, it's worse. Elastic search doesn't currently compile. I removed
org/elastic and org/apache/lucene from my .m2/repository directory and
tried to rebuild elastic search with a mvn clean install -DskipTests=true

I'm now getting the following compilation errors when trying to build
elastic search. These errors were masked by jars already in my repository
somehow.

I've verified that the breakage starts with commit 11bf7a8 which was when
the lucene 4.2 branch was merged. The commit before that builds fine.

To reproduce: rm -rf org/apache/lucene org/elasticsearch/ in your
.m2/repository

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/query/QueryPhase.java:[126,61]
error: cannot access TopDocs
[ERROR] class file for TopDocs not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/fetch/explain/ExplainFetchSubPhase.java:[70,46]
error: cannot access Explanation
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[144,20]
error: cannot access BytesRef
[ERROR] class file for BytesRef not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[140,20]
error: cannot access Analyzer
[ERROR] class file for Analyzer not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[158,24]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[160,34]
error: cannot access PositionIncrementAttribute
[ERROR] class file for PositionIncrementAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[155,24]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[ERROR] method SuggestUtils.analyze(TokenStream,TokenConsumer) is not
applicable
(actual and formal argument lists differ in length)
method SuggestUtils.analyze(Analyzer,CharsRef,String,TokenConsumer) is
not applicable
(actual and formal argument lists differ in length)
method
SuggestUtils.analyze(Analyzer,BytesRef,String,TokenConsumer,CharsRef) is
not applicable
(actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion)
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java:[55,27]
error: method joinPreAllocated in class SuggestUtils cannot be applied to
given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[70,21]
error: cannot access TokenStream
[ERROR] class file for TokenStream not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[68,12]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[77,32]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[62,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.TokenStream,)
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[61,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[43,6]
error: QueryRescorer is not abstract and does not override abstract method
extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[67,23]
error: explain(int,SearchContext,RescoreSearchContext) in QueryRescorer
cannot implement explain(int,SearchContext,RescoreSearchContext) in Rescorer
[ERROR] return type org.apache.lucene.search.Explanation is not
compatible with Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[52,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[66,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[320,16]
error: name clash:
extractTerms(SearchContext,RescoreSearchContext,Set) in QueryRescorer
and extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer have
the same erasure, yet neither overrides the other
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[319,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestParser.java:[131,87]
error: method getShingleFilterFactory in class SuggestUtils cannot be
applied to given types;
[ERROR] actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[60,86]
error: cannot access DirectSpellChecker
[ERROR] class file for DirectSpellChecker not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[61,111]
error: cannot access SuggestMode
[ERROR] class file for SuggestMode not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java:[114,46]
error: incompatible types
[ERROR] Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[47,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[53,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[55,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[59,24]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[66,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[44,82]
error: incompatible types
[ERROR] DirectSpellChecker
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[74,64]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[75,53]
error: cannot access OffsetAttribute
[ERROR] class file for OffsetAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[71,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[INFO] 36 errors
[INFO] -------------------------------------------------------------
[INFO]

[INFO] BUILD FAILURE

On Tuesday, March 12, 2013 10:32:00 AM UTC+1, Jilles van Gurp wrote:

I saw Simon has landed his 4.2 branch and built a snapshot this morning.
Now my tests are failing with the exception pasted below. It seems some
class has disappeared that is still needed.

Is something broken on trunk or do I need to put extra jar files on the
mvn classpath?

I'm using elastic search embedded and my pom points
to 0.90.0.Beta2-SNAPSHOT (i.e. whichever snapshot I built last). I've
pasted the output of maven dependency:tree below the stacktrace.

Exception in thread "elasticsearch[devnode][[users][0]: Lucene Merge
Thread #0]" org.apache.lucene.index.MergePolicy$MergeException:
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:541)
at
org.elasticsearch.index.merge.scheduler.ConcurrentMergeSchedulerProvider$CustomConcurrentMergeScheduler.handleMergeException(ConcurrentMergeSchedulerProvider.java:101)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:514)
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104)
at
org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:191)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233)
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:127)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269)
at org.apache.lucene.index.IndexWriter._mergeInit(IndexWriter.java:3472)
at org.apache.lucene.index.IndexWriter.mergeInit(IndexWriter.java:3434)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3287)
at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:401)
at
org.apache.lucene.index.TrackingConcurrentMergeScheduler.doMerge(TrackingConcurrentMergeScheduler.java:91)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:478)

[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ localstream

[INFO] com.localstream:localstream:jar:1.0-SNAPSHOT
[INFO] +- org.testng:testng:jar:6.8:test
[INFO] | +- org.beanshell:bsh:jar:2.0b4:test
[INFO] | +- com.beust:jcommander:jar:1.27:test
[INFO] | - org.yaml:snakeyaml:jar:1.6:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test (scope not updated to
compile)
[INFO] +- org.mockito:mockito-all:jar:1.9.5:test
[INFO] +- com.google.guava:guava:jar:14.0-rc1:compile
[INFO] +- commons-codec:commons-codec:jar:1.7:compile
[INFO] +-
org.elasticsearch:elasticsearch:jar:0.90.0.Beta2-SNAPSHOT:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-codecs:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:4.2.0:compile
[INFO] | - org.apache.lucene:lucene-spatial:jar:4.2.0:compile
[INFO] +- com.github.jillesvangurp:xmltools:jar:1.2:compile
[INFO] +-
com.github.jillesvangurp:httpclient-future:jar:0.2-SNAPSHOT:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | - org.apache.httpcomponents:httpclient:jar:4.2.2:compile
[INFO] | - org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[INFO] +- com.github.jsonj:jsonj:jar:1.6-SNAPSHOT:compile
[INFO] | - com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.github.jillesvangurp:geotools:jar:1.5:compile
[INFO] +- org.apache.ant:ant:jar:1.8.4:compile
[INFO] | - org.apache.ant:ant-launcher:jar:1.8.4:compile
[INFO] +- com.github.jillesvangurp:iterables-support:jar:1.1:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.2:compile
[INFO] +- com.github.jillesvangurp:geokv:jar:1.0:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.springframework:spring-test:jar:3.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-webmvc:jar:3.2.0.RELEASE:compile
[INFO] | | +-
org.springframework:spring-context:jar:3.2.0.RELEASE:compile
[INFO] | | | -
org.springframework:spring-aop:jar:3.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-web:jar:3.2.0.RELEASE:compile
[INFO] | | | - aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +-
org.springframework:spring-expression:jar:3.2.0.RELEASE:compile
[INFO] | | - org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
[INFO] | - org.springframework:spring-core:jar:3.2.0.RELEASE:compile
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] | - asm:asm:jar:3.3.1:compile
[INFO] +- com.github.jillesvangurp:efficientstring:jar:1.3:compile
[INFO] +- org.apache.mahout:mahout-collections:jar:1.0:compile
[INFO] +- com.spatial4j:spatial4j:jar:0.3:compile
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] - org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] - org.tukaani:xz:jar:1.0:compile
[I

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

thanks for reporting back!

On Tuesday, March 12, 2013 11:18:42 AM UTC+1, Jilles van Gurp wrote:

False alarm. After deleting my entire repository things compile fine again.

I've no idea what jar was the exact problem but it seems something was
stale in my repository outside the lucene and es directories.

Jilles

On Tuesday, March 12, 2013 11:04:24 AM UTC+1, Jilles van Gurp wrote:

Actually, it's worse. Elastic search doesn't currently compile. I removed
org/elastic and org/apache/lucene from my .m2/repository directory and
tried to rebuild elastic search with a mvn clean install -DskipTests=true

I'm now getting the following compilation errors when trying to build
elastic search. These errors were masked by jars already in my repository
somehow.

I've verified that the breakage starts with commit 11bf7a8 which was when
the lucene 4.2 branch was merged. The commit before that builds fine.

To reproduce: rm -rf org/apache/lucene org/elasticsearch/ in your
.m2/repository

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/query/QueryPhase.java:[126,61]
error: cannot access TopDocs
[ERROR] class file for TopDocs not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/fetch/explain/ExplainFetchSubPhase.java:[70,46]
error: cannot access Explanation
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[144,20]
error: cannot access BytesRef
[ERROR] class file for BytesRef not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[140,20]
error: cannot access Analyzer
[ERROR] class file for Analyzer not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[158,24]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[160,34]
error: cannot access PositionIncrementAttribute
[ERROR] class file for PositionIncrementAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/DirectCandidateGenerator.java:[155,24]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[ERROR] method SuggestUtils.analyze(TokenStream,TokenConsumer) is not
applicable
(actual and formal argument lists differ in length)
method SuggestUtils.analyze(Analyzer,CharsRef,String,TokenConsumer)
is not applicable
(actual and formal argument lists differ in length)
method
SuggestUtils.analyze(Analyzer,BytesRef,String,TokenConsumer,CharsRef) is
not applicable
(actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion)
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/Correction.java:[55,27]
error: method joinPreAllocated in class SuggestUtils cannot be applied to
given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[70,21]
error: cannot access TokenStream
[ERROR] class file for TokenStream not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[68,12]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[77,32]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/NoisyChannelSpellChecker.java:[62,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.TokenStream,)
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LinearInterpoatingScorer.java:[61,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[43,6]
error: QueryRescorer is not abstract and does not override abstract method
extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[67,23]
error: explain(int,SearchContext,RescoreSearchContext) in QueryRescorer
cannot implement explain(int,SearchContext,RescoreSearchContext) in Rescorer
[ERROR] return type org.apache.lucene.search.Explanation is not
compatible with Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[52,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[66,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[320,16]
error: name clash:
extractTerms(SearchContext,RescoreSearchContext,Set) in QueryRescorer
and extractTerms(SearchContext,RescoreSearchContext,Set) in Rescorer have
the same erasure, yet neither overrides the other
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/rescore/QueryRescorer.java:[319,4]
error: method does not override or implement a method from a supertype
[ERROR]
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestParser.java:[131,87]
error: method getShingleFilterFactory in class SuggestUtils cannot be
applied to given types;
[ERROR] actual argument org.apache.lucene.analysis.Analyzer cannot be
converted to Analyzer by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[60,86]
error: cannot access DirectSpellChecker
[ERROR] class file for DirectSpellChecker not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggester.java:[61,111]
error: cannot access SuggestMode
[ERROR] class file for SuggestMode not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/action/explain/TransportExplainAction.java:[114,46]
error: incompatible types
[ERROR] Explanation
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[47,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[53,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/LaplaceScorer.java:[55,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[46,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[56,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[59,24]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/phrase/StupidBackoffScorer.java:[66,20]
error: method join in class SuggestUtils cannot be applied to given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[44,82]
error: incompatible types
[ERROR] DirectSpellChecker
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[74,64]
error: method fillBytesRef in class TokenConsumer cannot be applied to
given types;
[ERROR] actual argument org.apache.lucene.util.BytesRef cannot be
converted to BytesRef by method invocation conversion
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[75,53]
error: cannot access OffsetAttribute
[ERROR] class file for OffsetAttribute not found
/Users/jilles/git/elasticsearch/src/main/java/org/elasticsearch/search/suggest/term/TermSuggester.java:[71,20]
error: no suitable method found for
analyze(org.apache.lucene.analysis.Analyzer,org.apache.lucene.util.BytesRef,String,,org.apache.lucene.util.CharsRef)
[INFO] 36 errors
[INFO] -------------------------------------------------------------
[INFO]

[INFO] BUILD FAILURE

On Tuesday, March 12, 2013 10:32:00 AM UTC+1, Jilles van Gurp wrote:

I saw Simon has landed his 4.2 branch and built a snapshot this morning.
Now my tests are failing with the exception pasted below. It seems some
class has disappeared that is still needed.

Is something broken on trunk or do I need to put extra jar files on the
mvn classpath?

I'm using elastic search embedded and my pom points
to 0.90.0.Beta2-SNAPSHOT (i.e. whichever snapshot I built last). I've
pasted the output of maven dependency:tree below the stacktrace.

Exception in thread "elasticsearch[devnode][[users][0]: Lucene Merge
Thread #0]" org.apache.lucene.index.MergePolicy$MergeException:
java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:541)
at
org.elasticsearch.index.merge.scheduler.ConcurrentMergeSchedulerProvider$CustomConcurrentMergeScheduler.handleMergeException(ConcurrentMergeSchedulerProvider.java:101)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:514)
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.PostingsFormat with name 'XBloomFilter' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Lucene41, Pulsing41, SimpleText, Memory, BloomFilter, Direct]
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104)
at
org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.(PerFieldPostingsFormat.java:191)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:233)
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:127)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
at
org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:269)
at org.apache.lucene.index.IndexWriter._mergeInit(IndexWriter.java:3472)
at org.apache.lucene.index.IndexWriter.mergeInit(IndexWriter.java:3434)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3287)
at
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:401)
at
org.apache.lucene.index.TrackingConcurrentMergeScheduler.doMerge(TrackingConcurrentMergeScheduler.java:91)
at
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:478)

[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ localstream

[INFO] com.localstream:localstream:jar:1.0-SNAPSHOT
[INFO] +- org.testng:testng:jar:6.8:test
[INFO] | +- org.beanshell:bsh:jar:2.0b4:test
[INFO] | +- com.beust:jcommander:jar:1.27:test
[INFO] | - org.yaml:snakeyaml:jar:1.6:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test (scope not updated to
compile)
[INFO] +- org.mockito:mockito-all:jar:1.9.5:test
[INFO] +- com.google.guava:guava:jar:14.0-rc1:compile
[INFO] +- commons-codec:commons-codec:jar:1.7:compile
[INFO] +-
org.elasticsearch:elasticsearch:jar:0.90.0.Beta2-SNAPSHOT:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-codecs:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:4.2.0:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:4.2.0:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:4.2.0:compile
[INFO] | - org.apache.lucene:lucene-spatial:jar:4.2.0:compile
[INFO] +- com.github.jillesvangurp:xmltools:jar:1.2:compile
[INFO] +-
com.github.jillesvangurp:httpclient-future:jar:0.2-SNAPSHOT:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | - org.apache.httpcomponents:httpclient:jar:4.2.2:compile
[INFO] | - org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[INFO] +- com.github.jsonj:jsonj:jar:1.6-SNAPSHOT:compile
[INFO] | - com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.github.jillesvangurp:geotools:jar:1.5:compile
[INFO] +- org.apache.ant:ant:jar:1.8.4:compile
[INFO] | - org.apache.ant:ant-launcher:jar:1.8.4:compile
[INFO] +- com.github.jillesvangurp:iterables-support:jar:1.1:compile
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.2:compile
[INFO] +- com.github.jillesvangurp:geokv:jar:1.0:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.springframework:spring-test:jar:3.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-webmvc:jar:3.2.0.RELEASE:compile
[INFO] | | +-
org.springframework:spring-context:jar:3.2.0.RELEASE:compile
[INFO] | | | -
org.springframework:spring-aop:jar:3.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-web:jar:3.2.0.RELEASE:compile
[INFO] | | | - aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +-
org.springframework:spring-expression:jar:3.2.0.RELEASE:compile
[INFO] | | -
org.springframework:spring-beans:jar:3.2.0.RELEASE:compile
[INFO] | - org.springframework:spring-core:jar:3.2.0.RELEASE:compile
[INFO] +- cglib:cglib:jar:2.2.2:compile
[INFO] | - asm:asm:jar:3.3.1:compile
[INFO] +- com.github.jillesvangurp:efficientstring:jar:1.3:compile
[INFO] +- org.apache.mahout:mahout-collections:jar:1.0:compile
[INFO] +- com.spatial4j:spatial4j:jar:0.3:compile
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] - org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] - org.tukaani:xz:jar:1.0:compile
[I

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.