Zipkin with ES7 - Cannot invoke "String.hashCode()" because "<local3>" is null

See original GitHub issue

Zipkin2 with ES7 - Cannot invoke “String.hashCode()” because “<local3>” is null

Hi! We have this issue since we upgrade our zipkin backend storage from es6 to es7.

Cannot invoke “String.hashCode()” because “<local3>” is null ss2

ss

2021-12-06 14:46:10.488 WARN [/] 1 --- [orker-epoll-2-1] z.s.i.BodyIsExceptionMessage : Unexpected error handling request.
java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "<local3>" is null
at zipkin2.elasticsearch.internal.JsonSerializers.parseSpan(JsonSerializers.java:67) ~[zipkin-storage-elasticsearch-2.23.9.jar:?]
at zipkin2.elasticsearch.internal.client.SearchResultConverter.convert(SearchResultConverter.java:46) ~[zipkin-storage-elasticsearch-2.23.9.jar:?]
at zipkin2.elasticsearch.internal.client.SearchResultConverter.convert(SearchResultConverter.java:27) ~[zipkin-storage-elasticsearch-2.23.9.jar:?]
at zipkin2.elasticsearch.internal.client.HttpCall.parseResponse(HttpCall.java:275) ~[zipkin-storage-elasticsearch-2.23.9.jar:?]
at zipkin2.elasticsearch.internal.client.HttpCall.doExecute(HttpCall.java:166) ~[zipkin-storage-elasticsearch-2.23.9.jar:?]
at zipkin2.Call$Base.execute(Call.java:391) ~[zipkin-2.23.9.jar:?]
at zipkin2.Call$FlatMapping.doExecute(Call.java:276) ~[zipkin-2.23.9.jar:?]
at zipkin2.Call$Base.execute(Call.java:391) ~[zipkin-2.23.9.jar:?]
at zipkin2.Call$Mapping.doExecute(Call.java:237) ~[zipkin-2.23.9.jar:?]
at zipkin2.Call$Base.execute(Call.java:391) ~[zipkin-2.23.9.jar:?]
at zipkin2.Call$Mapping.doExecute(Call.java:237) ~[zipkin-2.23.9.jar:?]
at zipkin2.Call$Base.execute(Call.java:391) ~[zipkin-2.23.9.jar:?]
at zipkin2.server.internal.ZipkinQueryApiV2.getTraces(ZipkinQueryApiV2.java:147) ~[classes/:?]
at com.linecorp.armeria.internal.server.annotation.AnnotatedService.invoke(AnnotatedService.java:391) ~[armeria-1.13.3.jar:?]
at com.linecorp.armeria.internal.server.annotation.AnnotatedService.lambda$serve0$8(AnnotatedService.java:359) ~[armeria-1.13.3.jar:?]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) ~[?:?]
at com.linecorp.armeria.common.RequestContext.lambda$makeContextAware$3(RequestContext.java:547) ~[armeria-1.13.3.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.69.Final.jar:4.1.69.Final]
at java.lang.Thread.run(Unknown Source) [?:?]

Steps to Reproduce

Zipkin: ghcr.io/openzipkin/zipkin:2 ES: 7.13.4

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MonsterOlicommented, Apr 4, 2022

FYI, there’s a fix waiting in PR for this issue: https://github.com/openzipkin/zipkin/pull/3437

1reaction
xeraacommented, Dec 8, 2021

Yes, I don’t think this is an Elasticsearch issue — you can write and read data. The problem is somewhere in the Zipkin codebase visualizing the data and it runs into a NPE (maybe some missing field; not exactly sure).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot invoke "java.lang.Object.hashCode()" because "value ...
When run, the error is Cannot invoke "java.lang.Object.hashCode()" because "value" is null where I suppose the "value" is the username . But the ......
Read more >
Open Zipkin zipkin Issues - Giters
Open Zipkin zipkin: Zipkin is a distributed tracing system. ... Zipkin with ES7 - Cannot invoke "String.hashCode()" because "<local3>" is null.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found