question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unable to parse configuration

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dr3scommented, Feb 17, 2017

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

0reactions
fflatorrecommented, Feb 17, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to parse configuration of mojo org.apache.maven ...
When maven reloaded all dependencies, I get the error: Unable to parse configuration of mojo again. I've noticed that instead of getting single ......
Read more >
Unable to Parse Config File Error in AWS CLI [Solved]
The reason the "Unable to parse config file" error occurs is that there is an error in the AWS configuration file on that...
Read more >
[BUILD] Unable to parse configuration of mojo org.codehaus ...
Steps to reproduce: clone the repo; cd streaming-integrator-tooling folder and execute the maven command mvn clean install. Related Issues:.
Read more >
PC stuck on OC: Failed to parse configuration! : r/hackintosh
It means that the config.plist in your OC folder is either missing or malformed. Try using the sanity checker and see if it...
Read more >
TNS-00583: Valid Node Checking: Unable To Parse ...
Symptoms. Starting the listener, most likely after a product upgrade or some new feature implementation, fails with a TNS-00583. The listener ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found