Skip to content
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

SE native-image build fails when zipkin is used #907

Closed
tomas-langer opened this issue Aug 15, 2019 · 1 comment
Closed

SE native-image build fails when zipkin is used #907

tomas-langer opened this issue Aug 15, 2019 · 1 comment
Assignees
Labels
bug Something isn't working graal P1 tracing

Comments

@tomas-langer
Copy link
Member

Building a GraalVM image fails for SE if you add Zipkin tracing per step 11.

  ServerConfiguration serverConfig =
      ServerConfiguration.builder(config.get("server"))
          .tracer(TracerBuilder.create(config.get("tracing")).buildAndRegister())
          .build();

Here is the error and stack

[WARNING] Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: zipkin2.codec.SpanBytesEncoder$1. Try marking this class for build-time initialization with --initialize-at-build-time=zipkin2.codec.SpanBytesEncoder$1
[WARNING] Trace: object io.helidon.tracing.zipkin.ZipkinTracerBuilder$Version
[WARNING] method io.helidon.tracing.zipkin.ZipkinTracerBuilder.configApiVersion(String)
[WARNING] Call path from entry point to io.helidon.tracing.zipkin.ZipkinTracerBuilder.configApiVersion(String):
[WARNING] at io.helidon.tracing.zipkin.ZipkinTracerBuilder.configApiVersion(ZipkinTracerBuilder.java:367)
[WARNING] at io.helidon.tracing.zipkin.ZipkinTracerBuilder$$Lambda$1022/572759193.accept(Unknown Source)
[WARNING] at io.helidon.webserver.RequestRouting.fireNewWebServer(RequestRouting.java:101)
[WARNING] at io.helidon.webserver.WebServer$Builder.build(WebServer.java:321)
[WARNING] at io.helidon.webserver.WebServer.create(WebServer.java:176)
[WARNING] at io.helidon.examples.quickstart.se.Main.startServer(Main.java:75)
[WARNING] at io.helidon.examples.quickstart.se.Main.main(Main.java:49)
[WARNING] at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:153)

Thanks @pfmackin for reporting this issue on tomas-langer/helidon-conference#4

@tomas-langer tomas-langer added bug Something isn't working graal tracing labels Aug 15, 2019
@tomas-langer tomas-langer self-assigned this Aug 15, 2019
@tomas-langer
Copy link
Member Author

Resolved by #915

@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working graal P1 tracing
Projects
Archived in project
Development

No branches or pull requests

1 participant