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

App with quarkus-opentelemetry-exporter-jaeger fails to compile into native #25143

Closed
rsvoboda opened this issue Apr 25, 2022 · 2 comments · Fixed by #25158
Closed

App with quarkus-opentelemetry-exporter-jaeger fails to compile into native #25143

rsvoboda opened this issue Apr 25, 2022 · 2 comments · Fixed by #25158
Labels
Milestone

Comments

@rsvoboda
Copy link
Member

Describe the bug

App with quarkus-opentelemetry-exporter-jaeger fails to compile into native

[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM 22.0.0.2 Java 17 CE (Java Version 17.0.2+8-jvmci-22.0-b05)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildRunner] /Users/rsvoboda/.sdkman/candidates/java/22.0.0.2.r17-grl/bin/native-image -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=3 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Duser.language=en -J-Duser.country=GB -J-Dfile.encoding=UTF-8 -H:-ParseOnce -J--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED -J--add-opens=java.base/java.text=ALL-UNNAMED -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -J-Djava.awt.headless=true -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http -H:-UseServiceLoaderFeature -H:+StackTrace code-with-quarkus-1.0.0-SNAPSHOT-runner -jar code-with-quarkus-1.0.0-SNAPSHOT-runner.jar
========================================================================================================================
GraalVM Native Image: Generating 'code-with-quarkus-1.0.0-SNAPSHOT-runner'...
========================================================================================================================
[1/7] Initializing...
                                                                                    (3.2s @ 0.21GB)
Error: Could not find target method: public static void io.quarkus.opentelemetry.exporter.jaeger.runtime.JaegerSubstitutions$Target_ManagedChannelUtil.setTrustedCertificatesPem(io.grpc.ManagedChannelBuilder,byte[]) throws javax.net.ssl.SSLException
com.oracle.svm.core.util.UserError$UserException: Could not find target method: public static void io.quarkus.opentelemetry.exporter.jaeger.runtime.JaegerSubstitutions$Target_ManagedChannelUtil.setTrustedCertificatesPem(io.grpc.ManagedChannelBuilder,byte[]) throws javax.net.ssl.SSLException
	at com.oracle.svm.core.util.UserError.abort(UserError.java:73)
	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.findOriginalMethod(AnnotationSubstitutionProcessor.java:751)
	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleMethodInAliasClass(AnnotationSubstitutionProcessor.java:368)
	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleAliasClass(AnnotationSubstitutionProcessor.java:340)
	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleClass(AnnotationSubstitutionProcessor.java:310)
	at com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.init(AnnotationSubstitutionProcessor.java:266)
	at com.oracle.svm.hosted.NativeImageGenerator.createAnnotationSubstitutionProcessor(NativeImageGenerator.java:889)
	at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:816)
	at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:534)
	at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:494)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:426)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:587)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:126)
	at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:617)
------------------------------------------------------------------------------------------------------------------------
                         0.1s (5.4% of total time) in 8 GCs | Peak RSS: 0.67GB | CPU load: 6.74
------------------------------------------------------------------------------------------------------------------------

https://github.com/quarkusio/quarkus/blob/main/extensions/opentelemetry/opentelemetry-exporter-jaeger/runtime/src/main/java/io/quarkus/opentelemetry/exporter/jaeger/runtime/JaegerSubstitutions.java

CC @radcortez

Expected behavior

Application compiles

Actual behavior

Application does not compile

How to Reproduce?

  • Generate app https://code.quarkus.io/
  • add io.quarkus:quarkus-opentelemetry-exporter-jaeger
  • run mvn clean verify -Dnative

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

GraalVM 22.0 Java17

Quarkus version or git rev

Quarkus main

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@rsvoboda rsvoboda added the kind/bug Something isn't working label Apr 25, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Apr 25, 2022

/cc @radcortez

@geoand
Copy link
Contributor

geoand commented Apr 26, 2022

#25158 should take care of it

geoand added a commit to geoand/quarkus that referenced this issue Apr 26, 2022
rsvoboda added a commit that referenced this issue Apr 26, 2022
Fix OpenTelemetry substitution
@quarkus-bot quarkus-bot bot added this to the 2.9 - main milestone Apr 26, 2022
rsvoboda added a commit to rsvoboda/beefy-scenarios that referenced this issue Apr 26, 2022
holly-cummins pushed a commit to holly-cummins/quarkus that referenced this issue Apr 27, 2022
@gsmet gsmet modified the milestones: 2.9.0.CR1, 2.8.3.Final May 5, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue May 5, 2022
Fixes: quarkusio#25143
(cherry picked from commit 822ae5f)
gsmet pushed a commit to gsmet/quarkus that referenced this issue May 5, 2022
Fixes: quarkusio#25143
(cherry picked from commit 822ae5f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants