-
Notifications
You must be signed in to change notification settings - Fork 129
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
Class not found Kotlin since 1.17 - maven extension #990
Comments
@liron58 we are sorry for the pain. This message is annoying and we will work at fixing it but it should not prevent OTel traces to be properly created. Can you please:
|
|
@cyrille-leclerc |
I see to probable causes:
if you reproduce the problem with the version 1.16 of the OTel Maven extension, could it be a change in the version of Maven? |
I guess it's caused by the otel SDK shutdown hook. I have to check that using I'm sorry for the delay, I have been very busy at work before the vacation season. I'll have much more time in September. |
Reproduced bumping from 1.20.0-alpha to 1.21.0-alpha 1.20.0-alpha:
1.21.0-alpha:
1.30.0-alpha-SNAPSHOT
|
Resolved with #1022 |
Component(s)
No response
What happened?
Description
Adding the extension to the pom since version 1.17 causes error after build.
JDK : Eclipse Temurin 17.0.5
Steps to Reproduce
Expected Result
build success
Actual Result
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.422 s (Wall Clock)
[INFO] Finished at: 2023-08-02T15:49:38+03:00
[INFO] ------------------------------------------------------------------------
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: kotlin/Unit
at okhttp3.internal.concurrent.TaskQueue.cancelAll(TaskQueue.kt:185)
at okhttp3.internal.connection.RealConnectionPool.evictAll(RealConnectionPool.kt:135)
at okhttp3.ConnectionPool.evictAll(ConnectionPool.kt:57)
at io.opentelemetry.exporter.internal.grpc.OkHttpGrpcExporter.shutdown(OkHttpGrpcExporter.java:212)
at io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter.shutdown(OtlpGrpcMetricExporter.java:101)
at io.opentelemetry.sdk.metrics.export.PeriodicMetricReader$Scheduled.shutdown(PeriodicMetricReader.java:185)
at io.opentelemetry.sdk.metrics.export.PeriodicMetricReader.shutdown(PeriodicMetricReader.java:100)
at io.opentelemetry.sdk.metrics.SdkMeterProvider.shutdown(SdkMeterProvider.java:133)
at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.lambda$build$9(AutoConfiguredOpenTelemetrySdkBuilder.java:374)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: kotlin.Unit
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
... 10 more
Process finished with exit code 0
Component version
v1.17^
Log output
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.422 s (Wall Clock)
[INFO] Finished at: 2023-08-02T15:49:38+03:00
[INFO] ------------------------------------------------------------------------
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: kotlin/Unit
at okhttp3.internal.concurrent.TaskQueue.cancelAll(TaskQueue.kt:185)
at okhttp3.internal.connection.RealConnectionPool.evictAll(RealConnectionPool.kt:135)
at okhttp3.ConnectionPool.evictAll(ConnectionPool.kt:57)
at io.opentelemetry.exporter.internal.grpc.OkHttpGrpcExporter.shutdown(OkHttpGrpcExporter.java:212)
at io.opentelemetry.exporter.otlp.metrics.OtlpGrpcMetricExporter.shutdown(OtlpGrpcMetricExporter.java:101)
at io.opentelemetry.sdk.metrics.export.PeriodicMetricReader$Scheduled.shutdown(PeriodicMetricReader.java:185)
at io.opentelemetry.sdk.metrics.export.PeriodicMetricReader.shutdown(PeriodicMetricReader.java:100)
at io.opentelemetry.sdk.metrics.SdkMeterProvider.shutdown(SdkMeterProvider.java:133)
at io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdkBuilder.lambda$build$9(AutoConfiguredOpenTelemetrySdkBuilder.java:374)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: kotlin.Unit
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
... 10 more
Process finished with exit code 0
Additional context
No response
The text was updated successfully, but these errors were encountered: