unable to parse configuration
See original GitHub issueHi,
Just started to play around this very promising library, and following the instructions available here : https://github.com/TanUkkii007/akka-cluster-custom-downing
I’ve setup my little akka app as follow :
akka {
custom-downing {
stable-after = 20s
quorum-leader-auto-downing {
role = ""
quorum-size = 0
down-if-out-of-quorum = true
}
}
remote {
netty.tcp {
[... other stuff ...]
}
}
cluster {
downing-provider-class = "tanukki.akka.cluster.autodown.QuorumLeaderAutoDowning"
[... other stuff ...]
}
}
But got the following exception :
02/15-18:13:22<17794> Uncaught error from thread [activity-feeds-akka.actor.default-dispatcher-4] shutting down JVM since ‘akka.jvm-exit-on-fatal-error’ is enabled for ActorSystem[activity-feeds] 02/15-18:13:22<17794> java.lang.NoSuchMethodError: com.typesafe.config.Config.getDuration(Ljava/lang/String;)Ljava/time/Duration; 02/15-18:13:22<17794> at tanukki.akka.cluster.autodown.QuorumLeaderAutoDowning.downingActorProps(QuorumLeaderAutoDowning.scala:16) 02/15-18:13:22<17794> at akka.cluster.ClusterCoreDaemon.preStart(ClusterDaemon.scala:303) 02/15-18:13:22<17794> at akka.actor.Actor$class.aroundPreStart(Actor.scala:504) 02/15-18:13:22<17794> at akka.cluster.ClusterCoreDaemon.aroundPreStart(ClusterDaemon.scala:241) 02/15-18:13:22<17794> at akka.actor.ActorCell.create(ActorCell.scala:590) 02/15-18:13:22<17794> at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:461) 02/15-18:13:22<17794> at akka.actor.ActorCell.systemInvoke(ActorCell.scala:483) 02/15-18:13:22<17794> at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282) 02/15-18:13:22<17794> at akka.dispatch.Mailbox.run(Mailbox.scala:223) 02/15-18:13:23<17794> at akka.dispatch.Mailbox.exec(Mailbox.scala:234) 02/15-18:13:23<17794> at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) 02/15-18:13:23<17794> at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) 02/15-18:13:23<17794> at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) 02/15-18:13:23<17794> at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
I’m using :
<dependency>
<groupId>com.github.TanUkkii007</groupId>
<artifactId>akka-cluster-custom-downing_2.11</artifactId>
<version>0.0.7</version>
</dependency>
and this is what’s part of my classpath in terms of “akka-related” libs :
akka-actor_2.11-2.4.16.jar akka-cluster_2.11-2.4.16.jar akka-cluster-custom-downing_2.11-0.0.7.jar akka-cluster-tools_2.11-2.4.16.jar akka-contrib_2.11-2.4.16.jar akka-persistence_2.11-2.4.16.jar akka-protobuf_2.11-2.4.16.jar akka-remote_2.11-2.4.16.jar akka-slf4j_2.11-2.4.16.jar akka-stream_2.11-2.4.16.jar akka-stream-experimental_2.11-1.0-RC4.jar ssl-config-akka_2.11-0.2.1.jar
Any clue on why I’m not able to parse the “stable-afer” setting ?
Cheers, Francesco
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
You are most certainly dealing with compatibility between akka and config. You are using config 1.2.1 but akka specifies 1.3.0 in its pom.
https://mvnrepository.com/artifact/com.typesafe.akka/akka-actor_2.11/2.4.16
Brilliant ! Great catch @dr3s ! Everything it’s now starting fine. Won’t test it on a Friday at 8PM. I might get back to you on Monday if need. In the meantime thanks for your help, very much appreciated.
Cheers, Francesco