Compile error with 0.20.2

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile error with 0.20.2

sulemanmubarik

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

--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

sulemanmubarik
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

--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

sulemanmubarik
In reply to this post by sulemanmubarik
[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

--
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

kimchy
Administrator
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 <[hidden email]> 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


--
 
 

Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

Denis S
This post has NOT been accepted by the mailing list yet.
This post was updated on .
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/)
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

Matthieu Guillermin
In reply to this post by kimchy
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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="k_FVZL5tueUJ">suleman...@...> 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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

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

See: http://www.elasticsearch.org/guide/reference/mapping/geo-shape-type.html

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 30 janv. 2013 à 07:28, Matthieu Guillermin <[hidden email]> 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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="k_FVZL5tueUJ">suleman...@...> 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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

Matthieu Guillermin
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: http://www.elasticsearch.org/guide/reference/mapping/geo-shape-type.html

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 30 janv. 2013 à 07:28, Matthieu Guillermin <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="T77XmtRxzIkJ">mguil...@...> 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 <[hidden email]> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="T77XmtRxzIkJ">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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

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

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 30 janv. 2013 à 08:00, Matthieu Guillermin <[hidden email]> 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: http://www.elasticsearch.org/guide/reference/mapping/geo-shape-type.html

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 30 janv. 2013 à 07:28, Matthieu Guillermin <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="T77XmtRxzIkJ">mguil...@...> 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 <[hidden email]> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="T77XmtRxzIkJ">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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

kimchy
Administrator
In reply to this post by Matthieu Guillermin
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 <[hidden email]> 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: http://www.elasticsearch.org/guide/reference/mapping/geo-shape-type.html

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 30 janv. 2013 à 07:28, Matthieu Guillermin <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="T77XmtRxzIkJ">mguil...@...> 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 <[hidden email]> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="T77XmtRxzIkJ">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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Compile error with 0.20.2

sulemanmubarik
In reply to this post by sulemanmubarik
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

<dependency>

      <groupId>com.spatial4j</groupId>

      <artifactId>spatial4j</artifactId>

      <version>0.2</version>

  </dependency>

 

 

      <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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.