Hi team, Is any one using akka-persistence-redis, I have encountered below exception when I was trying to use akka-persistence-redis 0.6.
Uncaught error from thread [RTAPCluster-akka.persistence.dispatchers.default-plugin-dispatcher-17] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[RTAPCluster] java.lang.NoClassDefFoundError: akka/actor/Actor$class at com.hootsuite.akka.persistence.redis.snapshot.RedisSnapshotStore.<init>(RedisSnapshotStore.scala:16) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at akka.util.Reflect$.instantiate(Reflect.scala:44) at akka.actor.NoArgsReflectConstructor.produce(IndirectActorProducer.scala:105) at akka.actor.Props.newActor(Props.scala:213) at akka.actor.ActorCell.newActor(ActorCell.scala:562) at akka.actor.ActorCell.create(ActorCell.scala:588) at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:461) at akka.actor.ActorCell.systemInvoke(ActorCell.scala:483) at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282) at akka.dispatch.Mailbox.run(Mailbox.scala:223) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: akka.actor.Actor$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 18 more I can confirm the akka actor is included to the project, and it is running ok when I switch to level db. I noticed that akka-persistence-redis V0.6 is using rediscala V1.6, which then depends on akka V2.3.6, but I would like to use akka V2.4.12, so I exclude the akka dependency from the dependency of akka-persistence-redis, not sure if this is the reason. Related part of my pom.xml is as below: <dependencyManagement> <dependencies> <dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-actor_2.12</artifactId> <version>2.4.12</version> </dependency> </dependencies> </dependencyManagement> <dependencies> ... <dependency> <groupId>com.hootsuite</groupId> <artifactId>akka-persistence-redis_2.11</artifactId> <version>0.6.0</version> <exclusions> <exclusion> <groupId>com.typesafe.akka</groupId> <artifactId>akka-actor_2.11</artifactId> </exclusion> <exclusion> <groupId>com.typesafe.akka</groupId> <artifactId>akka-persistence_2.11</artifactId> </exclusion> <exclusion> <groupId>com.typesafe.akka</groupId> <artifactId>akka-remote_2.11</artifactId> </exclusion> <exclusion> <groupId>com.typesafe.akka</groupId> <artifactId>akka-contrib_2.11</artifactId> </exclusion> </exclusions> </dependency> ... </dependencies> -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.