I think that his relate to a scala compiler bug that I think was fixed in the latest scala version. There was an issue open about it in ES that pointed to the scala compiler bug.
Thanks for the link, David.
From what I see it's an "optional dependecy", that's why I don't understand why it fails when I try to compile without it.
On Wednesday, January 30, 2013 7:46:47 AM UTC+1, David Pilato wrote:
This time, it's only a warning, not an error.
See: Elasticsearch Platform — Find real-time answers at scale | Elastic
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 30 janv. 2013 à 07:28, Matthieu Guillermin mguil...@clever-age.com a écrit :
I had the same error when trying to upgrade a PlayFramework 2.1 module to 0.20.x
Here is the error that I had when compiling from the SBT console :
[warn] Class com.spatial4j.core.shape.Shape not found - continuing with a stub.
[error] error while loading QueryBuilders, class file '/.../2.1-RC3/repository/cache/org.elasticsearch/elasticsearch/jars/elasticsearch-0.20.4.jar(org/elasticsearch/index/query/QueryBuilders.class)' is broken
[error] (class java.lang.NullPointerException/)
The [warn] before the error led me to try adding a dependency on spatial4j in my project and it worked !
I don't understand exactly why it was needed, but anyway this solved my issue.
Here is how my final dependencies look like :
"org.elasticsearch" % "elasticsearch" % "0.20.4",
"com.spatial4j" % "spatial4j" % "0.3"
Hope this helps,
Matthieu
On Sunday, January 27, 2013 11:35:20 AM UTC+1, kimchy wrote:
Unsure, its there in the codebase: andFilte, the failures look strange, are you getting NPE while compiling?
On Jan 24, 2013, at 8:29 PM, suleman mubarik suleman...@gmail.com wrote:
[ERROR] error: error while loading QueryBuilders, class file '....../.m2/repository/org/elasticsearch/elasticsearch/0.20.2/elasticsearch-0.20.2.jar(org/elasticsearch/index/query/QueryBuilders.class)' is broken
[INFO] (class java.lang.NullPointerException/)
[ERROR] error: error while loading FilterBuilders, class file '......./.m2/repository/org/
elasticsearch/elasticsearch/0.20.2/elasticsearch-0.20.2.jar(org/elasticsearch/index/query/FilterBuilders.class)' is broken
[INFO] (class java.lang.NullPointerException/)
error: value andFilter is not a member of object org.elasticsearch.index.query.FilterBuilders
[INFO] var andFilterBuilder = FilterBuilders.andFilter()
On Thursday, January 24, 2013 11:20:46 AM UTC-8, suleman mubarik wrote:
Hi
I have upgraded the ES from 0.19.12 to 0.20.2
And I am unable to compile the code with maven I am getting this error
error: value andFilter is not a member of object org.elasticsearch.index.query.FilterBuilders
[INFO] var andFilterBuilder = FilterBuilders.andFilter()
But it is working fine with 0.19.12
I get the same error with 0.20.0
Thanks
--
--
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 elasticsearc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.