Giter Club home page Giter Club logo

Comments (13)

dpsoft avatar dpsoft commented on May 18, 2024 4

@pjfanning @thjaeckle we just released a new release version in our bintray repository 0.6.7.

from kamon-akka.

thjaeckle avatar thjaeckle commented on May 18, 2024

When using Kamon with Akka 2.5 there is at least one Exception on graceful shutdown of an ActorSystem:

14:53:02.704 SERVICE> Detected java.lang.NoSuchMethodError error, which MAY be caused by incompatible Akka versions on the classpath. Please note that a given Akka version MUST be the same across all modules of Akka that you are using, e.g. if you use akka-actor [2.5.1 (resolved from current classpath)] all other core Akka modules MUST be of the same version. External projects like Alpakka, Persistence plugins or Akka HTTP etc. have their own version numbers - please make sure you're using a compatible set of libraries.
14:53:02.707 SERVICE> [ERROR] [SECURITY][05/22/2017 12:53:02.706] [cluster-akka.actor.default-dispatcher-19] [akka.actor.ActorSystemImpl(cluster)] Uncaught error from thread [cluster-akka.actor.default-dispatcher-19] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
14:53:02.707 SERVICE> Uncaught error from thread [cluster-akka.actor.default-dispatcher-19] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[cluster]
14:53:02.707 SERVICE> java.lang.NoSuchMethodError: akka.actor.ActorSystem.shutdown()V
14:53:02.707 SERVICE> at kamon.Kamon$.shutdown(Kamon.scala:61)
14:53:02.707 SERVICE> at kamon.Kamon.shutdown(Kamon.scala)
14:53:02.708 SERVICE> at akka.actor.ActorSystemImpl$TerminationCallbacks$$anonfun$addRec$1$1.applyOrElse(ActorSystem.scala:973)
14:53:02.708 SERVICE> at akka.actor.ActorSystemImpl$TerminationCallbacks$$anonfun$addRec$1$1.applyOrElse(ActorSystem.scala:973)
14:53:02.708 SERVICE> at scala.concurrent.Future$$anonfun$andThen$1.apply(Future.scala:436)
14:53:02.708 SERVICE> at scala.concurrent.Future$$anonfun$andThen$1.apply(Future.scala:435)
14:53:02.708 SERVICE> at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:36)
14:53:02.708 SERVICE> at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
14:53:02.708 SERVICE> at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91)
14:53:02.708 SERVICE> at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
14:53:02.708 SERVICE> at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)
14:53:02.708 SERVICE> at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)
14:53:02.708 SERVICE> at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90)
14:53:02.708 SERVICE> at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:38)
14:53:02.708 SERVICE> at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:43)
14:53:02.708 SERVICE> at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
14:53:02.709 SERVICE> at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
14:53:02.709 SERVICE> at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
14:53:02.709 SERVICE> at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

from kamon-akka.

pjfanning avatar pjfanning commented on May 18, 2024

The latest kamon-core code has an abstraction for the actor-system terminate.
https://github.com/kamon-io/Kamon/blob/master/kamon-core/src/main/scala/kamon/Kamon.scala

from kamon-akka.

ivantopo avatar ivantopo commented on May 18, 2024

I'll get to this later today!

from kamon-akka.

dpsoft avatar dpsoft commented on May 18, 2024

@pjfanning @ivantopo @thjaeckle this issue is related to kamon-io/Kamon#460?

from kamon-akka.

pjfanning avatar pjfanning commented on May 18, 2024

I think we should merge kamon-io/Kamon#460 - I've requested a small mod to the change though.

from kamon-akka.

thjaeckle avatar thjaeckle commented on May 18, 2024

@dpsoft yes, it is related, but that was only one obvious thing not working with Akka 2.5 - I can't oversee yet if Kamon 0.6.6 (compiled against Akka 2.4) works with Akka 2.5

from kamon-akka.

ivantopo avatar ivantopo commented on May 18, 2024

@thjaeckle please let us know if you see any issues :)

from kamon-akka.

dpsoft avatar dpsoft commented on May 18, 2024

@pjfanning @thjaeckle we just released a new snapshot version in our bintray repository 0.6.7-f50a47658f5dfe4c2718cd88ed934d138f5fdc31 ;)

from kamon-akka.

thjaeckle avatar thjaeckle commented on May 18, 2024

looks good so far apart from the shutdown()
do you have plans for a release? using a snapshot in production probably is not such a good idea :)

from kamon-akka.

lukasz-golebiewski avatar lukasz-golebiewski commented on May 18, 2024

Guys, what about other modules like e.g. https://bintray.com/kamon-io/releases/kamon-akka-remote ? Are they also going to be released to bintray any time soon?

from kamon-akka.

pjfanning avatar pjfanning commented on May 18, 2024

I have noticed an issue when using akka 2.5. Akka 2.5 seems to have a new akka.dispatch.forkjoin.ForkJoinPool class and kamon-akka DispatcherInstrumentation does not not support it.
akka.dispatch.forkjoin.ForkJoinPool is a type alias for java 1.8 java.util.concurrent.ForkJoinPool

from kamon-akka.

dpsoft avatar dpsoft commented on May 18, 2024

fixed with: 5a81f29

from kamon-akka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.