Comments (5)
This issue is reproducible based on the g8 template:
https://github.com/theiterators/pekko-http-quickstart-scala.g8
disabling apache http client instrumentalization allows the service to start.
kanela.modules.apache-httpclient.enabled = no
from kamon.
Same problem here
[main] ERROR 2024-05-27 09:10:11 Logger : Unable to start Kanela Agent. Please remove -javaagent from your startup arguments and contact Kanela support.: java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest at kamon.instrumentation.apache.httpclient.ApacheHttpClientInstrumentation.<init>(ApacheHttpClientInstrumentation.scala:26) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source) at java.base/java.lang.reflect.ReflectAccess.newInstance(Unknown Source) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(Unknown Source) at java.base/java.lang.Class.newInstance(Unknown Source) at kanela.agent.InstrumentationLoader.lambda$loadInstrumentation$b85f757d$1(InstrumentationLoader.java:58) at kanela.agent.libs.io.vavr.control.Try.of(Try.java:75) at kanela.agent.InstrumentationLoader.loadInstrumentation(InstrumentationLoader.java:56) at kanela.agent.InstrumentationLoader.lambda$null$1(InstrumentationLoader.java:46) at kanela.agent.libs.io.vavr.collection.List.flatMap(List.java:902) at kanela.agent.InstrumentationLoader.lambda$load$4(InstrumentationLoader.java:46) at kanela.agent.libs.io.vavr.collection.List.map(List.java:1042) at kanela.agent.InstrumentationLoader.load(InstrumentationLoader.java:43) at kanela.agent.Kanela.lambda$null$0(Kanela.java:78) at kanela.agent.util.classloader.InstrumentationClassPath.use(InstrumentationClassPath.java:84) at kanela.agent.Kanela.lambda$start$1(Kanela.java:67) at kanela.agent.util.Execution.timed(Execution.java:32) at kanela.agent.util.Execution.runWithTimeSpent(Execution.java:41) at kanela.agent.Kanela.start(Kanela.java:66) at kanela.agent.Kanela.premain(Kanela.java:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source) at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at kamon.instrumentation.apache.httpclient.ApacheHttpClientInstrumentation.<init>(ApacheHttpClientInstrumentation.scala:26) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source) at java.base/java.lang.reflect.ReflectAccess.newInstance(Unknown Source) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(Unknown Source) at java.base/java.lang.Class.newInstance(Unknown Source) at kanela.agent.InstrumentationLoader.lambda$loadInstrumentation$b85f757d$1(InstrumentationLoader.java:58) at kanela.agent.libs.io.vavr.control.Try.of(Try.java:75) at kanela.agent.InstrumentationLoader.loadInstrumentation(InstrumentationLoader.java:56) at kanela.agent.InstrumentationLoader.lambda$null$1(InstrumentationLoader.java:46) at kanela.agent.libs.io.vavr.collection.List.flatMap(List.java:902) at kanela.agent.InstrumentationLoader.lambda$load$4(InstrumentationLoader.java:46) at kanela.agent.libs.io.vavr.collection.List.map(List.java:1042) at kanela.agent.InstrumentationLoader.load(InstrumentationLoader.java:43) at kanela.agent.Kanela.lambda$null$0(Kanela.java:78) at kanela.agent.util.classloader.InstrumentationClassPath.use(InstrumentationClassPath.java:84) at kanela.agent.Kanela.lambda$start$1(Kanela.java:67) at kanela.agent.util.Execution.timed(Execution.java:32) at kanela.agent.util.Execution.runWithTimeSpent(Execution.java:41) at kanela.agent.Kanela.start(Kanela.java:66) at kanela.agent.Kanela.premain(Kanela.java:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source) at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
from kamon.
I think it is related to #1330
@rg-p
from kamon.
FYI, this issue seems to be fixed by #1343 which is part of 2.7.3 that has just been released so upgrading to 2.7.3 fixed the issue on my side
from kamon.
Thanks for the feedback @essobedo, closing this
from kamon.
Related Issues (20)
- Maven metadata does not contain info about Kamon Bundle v2.6.5 HOT 1
- Kamon doesn't propage Kamon context HOT 7
- Sbt 1.9.7 upgrade breaks Kamon Play HTTP Prometheus Metrics HOT 2
- Upgrade newrelic.telemetry to 0.16.0 HOT 2
- Add support for Micrometer
- Instrumentation is broken With play 3.0, scala 3.3.1, kamon-bundle and Prometheus HOT 1
- Support for postgresql 42.7.2 - java.lang.NoSuchFieldError: checkConnectionQuery HOT 6
- Issue while using jaeger reporter with scala HOT 1
- Akka-http metrics do not work when using http2
- ClassCastException when using Slick and Kamon Jdbc
- Trying to load Akka instrumentation when using Pekko in Scala 3 HOT 1
- Updating Postgres Driver causes NoSuchFieldError from Kamon JDBC HOT 2
- How to use local-tail-sampler
- DataDog Reporter to send EntityId from environment
- Updating kafka-clients to 3.7.0 breaks kafka instrumentation
- Datadog API Reporter fails to authenticate
- Tracing and context propagation are not supported in Scala 3
- Nullpointer exception for pekko-instrumentation in version 1.1.0-M1 onward HOT 11
- Context propagation is broken for Promises HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kamon.