Compile error with 0.20.2

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

--

here is the full error

[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

--

[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

--

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 sulemanmubarik@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

--

I am getting the same exact exception when importing QueryBuilders.*. It's a compile time exception.

[error] error while loading QueryBuilders, class file '/Users/abcd/.ivy2/cache/org.elasticsearch/elasticsearch/jars/elasticsearch-0.20.2.jar(org/elasticsearch/index/query/QueryBuilders.class)' is broken
[error] (class java.lang.NullPointerException/)

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<javascript:>>
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

This time, it's only a warning, not an error.

See: Elasticsearch Platform — Find real-time answers at scale | Elastic

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 janv. 2013 à 07:28, Matthieu Guillermin mguillermin@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 elasticsearch+unsubscribe@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.

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 janv. 2013 à 07:28, Matthieu Guillermin <mguil...@clever-age.com<javascript:>>
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 <javascript:>.
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.

I'm not aware of the SBT and Play stuff. Does it use Maven dependencies, even if they are marked as optional?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 janv. 2013 à 08:00, Matthieu Guillermin mguillermin@clever-age.com a écrit :

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 :wink:
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.

--
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 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.

On Jan 30, 2013, at 8:00 AM, Matthieu Guillermin mguillermin@clever-age.com wrote:

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 :wink:
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.

--
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
there were couple of dependency that i need to set
first one was com.spatial4j and second one was lucene-highlighter after
adding these in maven pom i can compile the code

  <groupId>com.spatial4j</groupId>

  <artifactId>spatial4j</artifactId>

  <version>0.2</version>
  <dependency>

      <groupId>org.apache.lucene</groupId>

      <artifactId>lucene-highlighter</artifactId>

      <version>3.5.0</version>

  </dependency>

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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.