-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchFieldError: _rootByteSymbols #2
Comments
Hi @fmarelli, It looks likely that there is a jackson version mismatch of some kind, perhaps between two different jackson jars. Have you updated the pom.xml at all? Is it possible a change has introduced a different version of one of the jackson jars? |
Hi, in my application I was using jackson-core 2.9.0, but with this version the DruidClient gave the followng error 2017-09-21 09:44:32 INFO Lifecycle$AnnotationBasedHandler:70 - Invoking stop method[public void com.metamx.http.client.NettyHttpClient.stop()] on object[com.metamx.http.client.NettyHttpClient@57adfab0]. I read they changed the signature of the getOutputContext in 2.8, so I "downgraded" to 2.7.9, the getOutputContext method error disappeared but now I am getting the error which is the subject of this issue. Thanks a lot, Kind regards |
Hi @gianm Reading the pom.xml of the druid client I see it references UTF-8 0.9.1.1Is this correct? Shouldnìt it be change to 0.10.1? Cheers |
I meant
|
Yeah, 0.10.1 would be better, I just haven't updated that project in a while :) You might need to downgrade Jackson even farther. Druid is built & tested using version 2.4.6. |
Ok I have built the java client against druid server 0.10.1 and also removed the explicit dependency in my pom.xml for Jackson, now I am getting a new error altogether, see below. Cheers `Exception in thread "main" java.lang.ExceptionInInitializerError
1 error |
Hi fmarelli, |
@rongnguyen no I gave up. It's a shame as a working http client would be very very useful. Did you run into the same issues I had? Cheers. |
@fmarelli I had the same issues. Now, I have to use 0.9 version :))(But I like newest) |
I had to update as well to Druid v.0.11.0 and faced the same issue as above:
I resolved it by adding the line: If there's some time I could open a pull request, since there are other changes to be made for 0.11.0 migration. |
Hi
I am running the example class "ExampleMain" updated for my environment. The query seems to be running ok, but I get an error when retrieving the results. Below log and stack trace, the first line of the stack trace is
final List<Result<SelectResultValue>> resultList = Sequences.toList(resultSequence, Lists.<Result<SelectResultValue>>newArrayList());
Thank You
2017-09-21T09:21:27,241 INFO [main] org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.3.Final
2017-09-21 09:21:27 INFO JsonConfigurator:70 - Loaded class[class io.druid.guice.ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{searchCurrentClassloader=true, directory='extensions', hadoopDependenciesDir='hadoop-dependencies', hadoopContainerDruidClasspath='null', loadList=null}]
2017-09-21 09:21:27 WARN Log4jShutterDownerModule:83 - Shutdown callback registry expected class [io.druid.common.config.Log4jShutdown] found [org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry]. Skipping shutdown registry
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.server.metrics.DruidMonitorSchedulerConfig] from props[druid.monitoring.] as [io.druid.server.metrics.DruidMonitorSchedulerConfig@5e76a2bb]
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.server.metrics.MonitorsConfig] from props[druid.monitoring.] as [MonitorsConfig{monitors=[]}]
2017-09-21 09:21:28 INFO MetricsModule:70 - Adding monitor[io.druid.query.ExecutorServiceMonitor@464a4442]
2017-09-21 09:21:28 INFO MetricsModule:70 - Adding monitor[io.druid.server.initialization.jetty.JettyServerModule$JettyMonitor@5c41d037]
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.query.search.search.SearchQueryConfig] from props[druid.query.search.] as [io.druid.query.search.search.SearchQueryConfig@585c13de]
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.query.metadata.SegmentMetadataQueryConfig] from props[druid.query.segmentMetadata.] as [io.druid.query.metadata.SegmentMetadataQueryConfig@5395ea39]
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.query.groupby.GroupByQueryConfig] from props[druid.query.groupBy.] as [io.druid.query.groupby.GroupByQueryConfig@6a714237]
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.query.topn.TopNQueryConfig] from props[druid.query.topN.] as [io.druid.query.topn.TopNQueryConfig@5cbb84b1]
2017-09-21 09:21:28 INFO JsonConfigurator:70 - Loaded class[class io.druid.guice.http.DruidHttpClientConfig] from props[druid.client.http.] as [io.druid.guice.http.DruidHttpClientConfig@773bd77b]
2017-09-21 09:21:28 DEBUG DruidClient:56 - Issuing query: {"queryType":"select","dataSource":{"type":"table","name":"damneat"},"intervals":{"type":"LegacySegmentSpec","intervals":["2000-01-01T00:00:00.000+01:00/2000-01-02T00:00:00.000+01:00"]},"descending":false,"filter":null,"granularity":{"type":"all"},"dimensions":[{"type":"default","dimension":"ndg_id","outputName":"ndg_id"},{"type":"default","dimension":"debtor_type","outputName":"debtor_type"},{"type":"default","dimension":"debtor_name","outputName":"debtor_name"},{"type":"default","dimension":"contract_id","outputName":"contract_id"},{"type":"default","dimension":"warranty_id","outputName":"warranty_id"},{"type":"default","dimension":"warranty_de","outputName":"warranty_de"},{"type":"default","dimension":"appraisal_id","outputName":"appraisal_id"},{"type":"default","dimension":"goods_id","outputName":"goods_id"}],"metrics":[],"pagingSpec":{"pagingIdentifiers":{},"threshold":50,"fromNext":false},"context":null}
2017-09-21 09:21:28 DEBUG DirectDruidClient:56 - Querying queryId[null] url[http://localhost:18082/druid/v2/]
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] starting
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 INFO ChannelResourceFactory:70 - Generating: http://localhost:18082
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] messageReceived: DefaultHttpResponse(chunked: true)
HTTP/1.1 200 OK
Date: Thu, 21 Sep 2017 07:21:28 GMT
Content-Type: application/x-jackson-smile
X-Druid-Query-Id: 867c6f76-8770-48ce-95d7-5f483e6ef95b
X-Druid-Response-Context: {}
Vary: Accept-Encoding, User-Agent
Transfer-Encoding: chunked
Server: Jetty(9.3.19.v20170502)
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] Got response: 200 OK
2017-09-21 09:21:28 DEBUG DirectDruidClient:56 - Initial response from url[http://localhost:18082/druid/v2/] for queryId[null]
2017-09-21 09:21:28 INFO Lifecycle$AnnotationBasedHandler:70 - Invoking stop method[public void com.metamx.http.client.NettyHttpClient.stop()] on object[com.metamx.http.client.NettyHttpClient@21a66d45].
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] messageReceived: org.jboss.netty.handler.codec.http.DefaultHttpChunk@2ab36f76
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] Got chunk: 21222B, last=false
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] messageReceived: org.jboss.netty.handler.codec.http.HttpChunk$1@6870ab0
2017-09-21 09:21:28 DEBUG NettyHttpClient:56 - [POST http://localhost:18082/druid/v2/] Got chunk: 0B, last=true
2017-09-21 09:21:28 DEBUG DirectDruidClient:56 - Completed queryId[null] request to url[http://localhost:18082/druid/v2/] with 21,222 bytes returned in 20 millis [10,611,000.000000 b/s].
2017-09-21 09:21:28 INFO ResourcePool:70 - giveBack called after being closed. key[http://localhost:18082]
Exception in thread "main" java.lang.NoSuchFieldError: _rootByteSymbols
at com.fasterxml.jackson.dataformat.smile.SmileFactory._createParser(SmileFactory.java:369)
at com.fasterxml.jackson.dataformat.smile.SmileFactory.createParser(SmileFactory.java:299)
at com.fasterxml.jackson.dataformat.smile.SmileFactory.createParser(SmileFactory.java:27)
at io.druid.client.DirectDruidClient$JsonParserIterator.init(DirectDruidClient.java:479)
at io.druid.client.DirectDruidClient$JsonParserIterator.hasNext(DirectDruidClient.java:442)
at com.metamx.common.guava.BaseSequence.makeYielder(BaseSequence.java:103)
at com.metamx.common.guava.BaseSequence.toYielder(BaseSequence.java:81)
at com.metamx.common.guava.BaseSequence.accumulate(BaseSequence.java:67)
at com.metamx.common.guava.MappedSequence.accumulate(MappedSequence.java:40)
at com.metamx.common.guava.Sequences.toList(Sequences.java:113)
at ExampleMain.main(ExampleMain.java:55)
The text was updated successfully, but these errors were encountered: