com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka.stream' -


i'm trying run akka stream application, getting exception:

no configuration setting found key 'akka.stream' 

the relevant code snippet is:

configfactory.load() implicit val system = actorsystem("svc") implicit val mat = actormaterializer() 

i try both command lines:

java -jar ./myservice.jar -dconfig.resource=/opt/myservice/conf/application.conf java -jar ./myservice.jar -dconfig.file=/opt/myservice/conf/application.conf 

my application.conf file:

akka {   event-handlers = ["akka.event.slf4j.slf4jeventhandler"]   loglevel = "debug"   actor { }  stream {  # default materializer settings materializer {   max-input-buffer-size = 16   dispatcher = ""   subscription-timeout {     mode = cancel     timeout = 5s   }    output-burst-limit = 1000   auto-fusing = on   max-fixed-buffer-size = 1000000000   sync-processing-limit = 1000 }  blocking-io-dispatcher = "akka.stream.default-blocking-io-dispatcher"  default-blocking-io-dispatcher {   type = "dispatcher"   executor = "thread-pool-executor"   throughput = 1    thread-pool-executor {     fixed-pool-size = 16   } } } } 

exception details:

no configuration setting found key 'akka.stream'     @   com.typesafe.config.impl.simpleconfig.findkeyornull(simpleconfig.java:152)     @ com.typesafe.config.impl.simpleconfig.findkey(simpleconfig.java:145)     @ com.typesafe.config.impl.simpleconfig.findornull(simpleconfig.java:172)     @ com.typesafe.config.impl.simpleconfig.findornull(simpleconfig.java:176)     @ com.typesafe.config.impl.simpleconfig.find(simpleconfig.java:184)     @ com.typesafe.config.impl.simpleconfig.find(simpleconfig.java:189)     @ com.typesafe.config.impl.simpleconfig.getobject(simpleconfig.java:258)     @ com.typesafe.config.impl.simpleconfig.getconfig(simpleconfig.java:264)     @ com.typesafe.config.impl.simpleconfig.getconfig(simpleconfig.java:37)     @ akka.stream.actormaterializersettings$.apply(actormaterializer.scala:248)     @ akka.stream.actormaterializer$$anonfun$1.apply(actormaterializer.scala:41)     @ akka.stream.actormaterializer$$anonfun$1.apply(actormaterializer.scala:41)     @ scala.option.getorelse(option.scala:121)     @ akka.stream.actormaterializer$.apply(actormaterializer.scala:41)     @ com.listener$.main(listener.scala:41)     @ com.listener.main(listener.scala) 

can assist?

thanks

to load config file, should use:

-dconfig.file=/opt/myservice/conf/application.conf

doc link: https://github.com/typesafehub/config#standard-behavior


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -