i updated my elastic Search from 1.7.2 to 2.2.0
When I am running my Code I got the below error
Caused by: java.lang.NoSuchFieldError: FAIL_ON_SYMBOL_HASH_OVERFLOW
11:23:51,194 INFO [stdout] (default task-9) at org.elasticsearch.common.xcontent.smile.SmileXContent.(SmileXContent.java:46)
11:23:51,194 INFO [stdout] (default task-9) at org.elasticsearch.common.xcontent.XContentFactory.contentBuilder(XContentFactory.java:124)
11:23:51,194 INFO [stdout] (default task-9) at org.elasticsearch.action.support.ToXContentToBytes.buildAsBytes(ToXContentToBytes.java:62
11:23:51,194 INFO [stdout] (default task-9) at org.elasticsearch.action.search.SearchRequest.source(SearchRequest.java:250)
11:23:51,194 INFO [stdout] (default task-9) at org.elasticsearch.action.search.SearchRequestBuilder.beforeExecute(SearchRequestBuilder.java:1027)
11:23:51,195 INFO [stdout] (default task-9) at org.elasticsearch.action.search.SearchRequestBuilder.beforeExecute(SearchRequestBuilder.java:50)
11:23:51,195 INFO [stdout] (default task-9) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)
11:23:51,195 INFO [stdout] (default task-9) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
11:23:51,195 INFO [stdout] (default task-9) at com.comcast.bsacats.view.KibanaDashboardBean.getAllDocs(KibanaDashboardBean.java:170)
11:23:51,195 INFO [stdout] (default task-9) at com.comcast.bsacats.view.KibanaDashboardBean.selectJobs(KibanaDashboardBean.java:131)
11:23:51,196 INFO [stdout] (default task-9) at com.comcast.bsacats.view.KibanaDashboardBean.init(KibanaDashboardBean.java:111)
11:23:51,196 INFO [stdout] (default task-9) ... 111 more
Can any body help me with the issue
dadoonet
(David Pilato)
February 26, 2016, 12:55am
2
Did you include to your project all needed jars?
Are you using Maven?
yes i use maven and i included all the required jars....
dadoonet
(David Pilato)
February 26, 2016, 2:45pm
4
Did you clean your target dir? May be you are using an older lib?
nope cleaned everything ... I was getting data from the elastic search .... so when i did that through my test cases got my data in the console ... but when i run my actual application it is throwing me this exception . I updated all the jars... and yet having the same trouble..
dadoonet
(David Pilato)
February 26, 2016, 3:14pm
6
The error message you have means to me that you have Jackson < 2.4 in your classpath.
I checked my dependencies in my classpath as u suggested and they do not contain any jackson libraries below 2.4 version. Yet I faced the same issue ... below is the screenshot of my dependencies....
dadoonet
(David Pilato)
February 26, 2016, 4:15pm
8
What gives on your project:
mvn dependency:tree
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ xxx-api ---
[INFO] com.xxx-api:jar:1.5.2-SNAPSHOT
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] | - commons-codec:commons-codec:jar:1.2:compile
[INFO] +- javax:javaee-api:jar:6.0:provided
[INFO] +- org.primefaces:primefaces:jar:5.3:compile
[INFO] +- org.simpleframework:simple-xml:jar:2.6.6:compile
[INFO] | +- stax:stax-api:jar:1.0.1:compile
[INFO] | +- stax:stax:jar:1.2.0:compile
[INFO] | - xpp3:xpp3:jar:1.1.3.3:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] +- org.mongojack:mongojack:jar:2.1.0:compile
[INFO] | +- org.mongodb:mongo-java-driver:jar:2.12.0:compile
[INFO] | +- de.undercouch:bson4jackson:jar:2.3.1:compile
[INFO] | +- javax.persistence:persistence-api:jar:1.0.2:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.keycloak:keycloak-core:jar:1.0.4.Final:provided
[INFO] +- org.jboss.resteasy:resteasy-client:jar:3.0.2.Final:compile
[INFO] | - org.jboss.resteasy:resteasy-jaxrs:jar:3.0.2.Final:compile
[INFO] | +- org.jboss.resteasy:jaxrs-api:jar:3.0.2.Final:compile
[INFO] | +- org.slf4j:slf4j-simple:jar:1.5.8:runtime
[INFO] | +- org.scannotation:scannotation:jar:1.0.3:compile
[INFO] | | - javassist:javassist:jar:3.12.1.GA:compile
[INFO] | +- javax.annotation:jsr250-api:jar:1.0:compile
[INFO] | +- javax.activation:activation:jar:1.1:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.2.1:compile
[INFO] | | - org.apache.httpcomponents:httpcore:jar:4.2.1:compile
[INFO] | - net.jcip:jcip-annotations:jar:1.0:compile
[INFO] +- org.elasticsearch:elasticsearch:jar:2.2.0:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-backward-codecs:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-misc:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-spatial:jar:5.4.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:5.4.1:compile
[INFO] | | - com.spatial4j:spatial4j:jar:0.5:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- org.elasticsearch:securesm:jar:1.0:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | +- joda-time:joda-time:jar:2.8.2:compile
[INFO] | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.6.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.6.2:compile
[INFO] | | - org.yaml:snakeyaml:jar:1.15:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.2:compile
[INFO] | +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] | +- com.ning:compress-lzf:jar:1.0.2:compile
[INFO] | +- com.tdunning:t-digest:jar:3.0:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
[INFO] | +- commons-cli:commons-cli:jar:1.3.1:compile
[INFO] | - com.twitter:jsr166e:jar:1.1.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.4:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.4:compile
[INFO] - com.fasterxml.jackson.core:jackson-core:jar:2.6.4:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building service 1.5.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
dadoonet
(David Pilato)
February 26, 2016, 4:35pm
10
I have a doubt regarding bson4jackson which is used by your Mongo stuff.
I think you need a bson4jackson > 2.6.x
Might be where you should look at...
HTH
changed that too.... didnt help...
--- maven-dependency-plugin:2.8:tree (default-cli) @ xxx-api ---
[INFO] com.xxx.xxx :xxx-api:jar:1.5.2-SNAPSHOT
[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] | +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] | - commons-codec:commons-codec:jar:1.2:compile
[INFO] +- javax:javaee-api:jar:6.0:provided
[INFO] +- org.primefaces:primefaces:jar:5.3:compile
[INFO] +- org.simpleframework:simple-xml:jar:2.6.6:compile
[INFO] | +- stax:stax-api:jar:1.0.1:compile
[INFO] | +- stax:stax:jar:1.2.0:compile
[INFO] | - xpp3:xpp3:jar:1.1.3.3:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] +- org.mongojack:mongojack:jar:2.1.0:compile
[INFO] | +- org.mongodb:mongo-java-driver:jar:2.12.0:compile
[INFO] | +- javax.persistence:persistence-api:jar:1.0.2:compile
[INFO] | - commons-io:commons-io:jar:2.4:compile
[INFO] +- org.keycloak:keycloak-core:jar:1.0.4.Final:provided
[INFO] +- org.jboss.resteasy:resteasy-client:jar:3.0.2.Final:compile
[INFO] | - org.jboss.resteasy:resteasy-jaxrs:jar:3.0.2.Final:compile
[INFO] | +- org.jboss.resteasy:jaxrs-api:jar:3.0.2.Final:compile
[INFO] | +- org.slf4j:slf4j-simple:jar:1.5.8:runtime
[INFO] | +- org.scannotation:scannotation:jar:1.0.3:compile
[INFO] | | - javassist:javassist:jar:3.12.1.GA:compile
[INFO] | +- javax.annotation:jsr250-api:jar:1.0:compile
[INFO] | +- javax.activation:activation:jar:1.1:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.2.1:compile
[INFO] | | - org.apache.httpcomponents:httpcore:jar:4.2.1:compile
[INFO] | - net.jcip:jcip-annotations:jar:1.0:compile
[INFO] +- org.elasticsearch:elasticsearch:jar:2.2.0:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-backward-codecs:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-misc:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-spatial:jar:5.4.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:5.4.1:compile
[INFO] | | - com.spatial4j:spatial4j:jar:0.5:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- org.elasticsearch:securesm:jar:1.0:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | +- joda-time:joda-time:jar:2.8.2:compile
[INFO] | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.6.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.6.2:compile
[INFO] | | - org.yaml:snakeyaml:jar:1.15:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.2:compile
[INFO] | +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] | +- com.ning:compress-lzf:jar:1.0.2:compile
[INFO] | +- com.tdunning:t-digest:jar:3.0:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
[INFO] | +- commons-cli:commons-cli:jar:1.3.1:compile
[INFO] | - com.twitter:jsr166e:jar:1.1.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.4:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.4:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.6.4:compile
[INFO] - de.undercouch:bson4jackson:jar:2.7.0:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building service 1.5.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
dadoonet
(David Pilato)
February 26, 2016, 5:34pm
12
Ok. Let's do it simple.
Can you try the same thing with a blank project which contains only elasticsearch dependency?
If it works, then add each dependency one by one to your project and try to detect which ones is doing that.
Note that sometimes, just moving elasticsearch
as your first dependency in maven pom.xml
can change things. (I did not say "can fix things").
chakkasm
(Srirama Chakka)
March 13, 2016, 12:03am
13
Hi
I have just downloaded elasticsearch 2.2 jar and when wrote sample TransportClient getting exception
Exception in thread "main" java.lang.NoSuchFieldError: FAIL_ON_SYMBOL_HASH_OVERFLOW
at org.elasticsearch.common.xcontent.smile.SmileXContent.(SmileXContent.java:46)
I have the following dependency: tree
[INFO] +- org.elasticsearch:elasticsearch:jar:2.2.0:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-backward-codecs:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-sandbox:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-misc:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:5.4.1:compile
[INFO] | | - org.apache.lucene:lucene-grouping:jar:5.4.1:compile
[INFO] | +- org.apache.lucene:lucene-spatial:jar:5.4.1:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:5.4.1:compile
[INFO] | | - com.spatial4j:spatial4j:jar:0.5:compile
[INFO] | +- org.elasticsearch:securesm:jar:1.0:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.6.2:compile
[INFO] | | - org.yaml:snakeyaml:jar:1.15:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.2:compile
[INFO] | +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] | +- com.ning:compress-lzf:jar:1.0.2:compile
[INFO] | +- com.tdunning:t-digest:jar:3.0:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
[INFO] | - com.twitter:jsr166e:jar:1.1.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.7.2:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.7.2:compile
what is missing ?? Tried with standalone and same issue... Please suggest..
dadoonet
(David Pilato)
March 13, 2016, 2:23am
14
Did you clean the project?
You probably have another Jackson lib version which is conflicting.