Kamon icon indicating copy to clipboard operation
Kamon copied to clipboard

newrelic: IncompatibleClassChangeError when using a recent newrelic-agent.jar

Open cheekychops opened this issue 10 years ago • 0 comments

The compile dependency on newrelic-agent in kamon-newrelic is set at version 3.11.0, which is quite old. If you try to use a more recent version (something like 3.25.0 seems stable) the following exception occurs when using the NewRelicErrorLogger:

java.lang.IncompatibleClassChangeError: Found interface com.newrelic.agent.errors.ErrorService, but class was expected
    at kamon.newrelic.NewRelicErrorLogger.reportError(NewRelicErrorLogger.scala:75)
    at kamon.newrelic.NewRelicErrorLogger.notifyError(NewRelicErrorLogger.scala:62)
    at kamon.newrelic.NewRelicErrorLogger$$anonfun$receive$1.applyOrElse(NewRelicErrorLogger.scala:43)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
    at kamon.newrelic.NewRelicErrorLogger.aroundReceive(NewRelicErrorLogger.scala:34)

Whichever version you choose, please consider making this a 'provided' dependency, to make exclusions unnecessary.

cheekychops avatar Mar 30 '16 07:03 cheekychops