SpinGo / op-rabbit

The Opinionated RabbitMQ Library for Scala and Akka
Other
232 stars 73 forks source link

NoSuchMethodError version1.6.0 and akka-actor version 2.4.8 #111

Closed brijeshkec11 closed 7 years ago

brijeshkec11 commented 7 years ago

java.lang.NoSuchMethodError: akka.pattern.AskableActorRef$.$qmark$default$3$extension(Lakka/actor/ActorRef;Ljava/lang/Object;)Lakka/actor/ActorRef; at com.spingo.op_rabbit.Subscription.run(Subscription.scala:67) at com.spingo.op_rabbit.Subscription$.run(Subscription.scala:16)

Any help?

timcharper commented 7 years ago

Oh geez. I have no idea. 1.6.x was built with 2.4.8. Double check your dependencies? Clear your sbt cache?

brijeshkec11 commented 7 years ago

Thanks timcharper for the reply. Finally I found the issue. is was due to an older version if akka (akka-actor_2.11-2.3.10.jar) present in Scala lib (/usr/share/scala/lib/akka-actor_2.11-2.3.10.jar) I deleted the same and now I do not see this issue anymore.

looks like akka library is present when you install Scala using deb package. please close this ticket.

timcharper commented 7 years ago

Glad you figured it out!