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

Fix GraalVM warnings #401

Merged
merged 2 commits into from
Aug 17, 2021
Merged

Fix GraalVM warnings #401

merged 2 commits into from
Aug 17, 2021

Conversation

ilopmar
Copy link
Contributor

@ilopmar ilopmar commented Jul 29, 2021

This PR fixes the following warnings during native image creation

...
...
Warning: class initialization of class io.micronaut.configuration.kafka.health.$KafkaHealthIndicator$Definition failed with exception java.lang.NoClassDefFoundError: io/micronaut/management/health/indicator/HealthIndicator. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.micronaut.configuration.kafka.health.$KafkaHealthIndicator$Definition to explicitly request delayed initialization of this class.
Warning: class initialization of class io.micronaut.configuration.kafka.tracing.$KafkaConsumerTracingInstrumentation$Definition failed with exception java.lang.NoClassDefFoundError: io/opentracing/Tracer. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.micronaut.configuration.kafka.tracing.$KafkaConsumerTracingInstrumentation$Definition to explicitly request delayed initialization of this class.
Warning: class initialization of class io.micronaut.configuration.kafka.tracing.$KafkaProducerTracingInstrumentation$Definition failed with exception java.lang.NoClassDefFoundError: io/opentracing/Tracer. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.micronaut.configuration.kafka.tracing.$KafkaProducerTracingInstrumentation$Definition to explicitly request delayed initialization of this class.
Warning: class initialization of class io.micronaut.configuration.kafka.tracing.brave.$BraveKafkaConsumerTracingInstrumentation$Definition failed with exception java.lang.NoClassDefFoundError: brave/kafka/clients/KafkaTracing. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.micronaut.configuration.kafka.tracing.brave.$BraveKafkaConsumerTracingInstrumentation$Definition to explicitly request delayed initialization of this class.
Warning: class initialization of class io.micronaut.configuration.kafka.tracing.brave.$BraveKafkaProducerTracingInstrumentation$Definition failed with exception java.lang.NoClassDefFoundError: brave/kafka/clients/KafkaTracing. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.micronaut.configuration.kafka.tracing.brave.$BraveKafkaProducerTracingInstrumentation$Definition to explicitly request delayed initialization of this class.
Warning: class initialization of class io.micronaut.configuration.kafka.tracing.brave.$BraveKafkaTracingFactory$KafkaTracing0$Definition failed with exception java.lang.NoClassDefFoundError: brave/Tracing. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=io.micronaut.configuration.kafka.tracing.brave.$BraveKafkaTracingFactory$KafkaTracing0$Definition to explicitly request delayed initialization of this class.
...
...

@ilopmar ilopmar merged commit ec508c7 into master Aug 17, 2021
@ilopmar ilopmar deleted the fix-graalvm-warnings branch August 17, 2021 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant