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


i work in sbt project, , using library play-ws application not play framework.

so, when run mi job, have error:

com.typesafe.config.configexception$missing: no configuration setting found key 'play'

com.typesafe.config.configexception$missing: no configuration setting found key 'play' @ com.typesafe.config.impl.simpleconfig.findkey(simpleconfig.java:124) @ com.typesafe.config.impl.simpleconfig.find(simpleconfig.java:145) @ com.typesafe.config.impl.simpleconfig.find(simpleconfig.java:159) @ com.typesafe.config.impl.simpleconfig.find(simpleconfig.java:164) @ com.typesafe.config.impl.simpleconfig.getobject(simpleconfig.java:218) @ com.typesafe.config.impl.simpleconfig.getconfig(simpleconfig.java:224) @ com.typesafe.config.impl.simpleconfig.getconfig(simpleconfig.java:33) @ play.core.invoker$$anon$1.play$core$invoker$$anon$$loadactorconfig(invoker.scala:35) @ play.core.invoker$$anon$1$$anonfun$3.apply(invoker.scala:23) @ play.core.invoker$$anon$1$$anonfun$3.apply(invoker.scala:21) @ scala.option.getorelse(option.scala:120) @ play.core.invoker$$anon$1.create(invoker.scala:21) @ play.core.closablelazy.get(closablelazy.scala:51) @ play.core.invoker$.system(invoker.scala:40) @ play.core.invoker$.executioncontext(invoker.scala:41) @ play.api.libs.concurrent.execution$.defaultcontext(execution.scala:15) @ play.api.libs.concurrent.execution$implicits$.defaultcontext(execution.scala:12) @ play.api.libs.ws.ning.ningwsrequest$$anon$2.onbodypartreceived(ningws.scala:322)no configuration setting found key 'play' @ com.ning.http.client.providers.netty.nettyasynchttpprovider.updatebodyandinterrupt(nettyasynchttpprovider.java:1568)

at com.ning.http.client.providers.netty.nettyasynchttpprovider.access$2900(nettyasynchttpprovider.java:161) @ com.ning.http.client.providers.netty.nettyasynchttpprovider$httpprotocol.handle(nettyasynchttpprovider.java:2233) @ com.ning.http.client.providers.netty.nettyasynchttpprovider.messagereceived(nettyasynchttpprovider.java:1227) @ org.jboss.netty.handler.stream.chunkedwritehandler.handleupstream(chunkedwritehandler.java:142) @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:296) @ org.jboss.netty.handler.codec.frame.framedecoder.unfoldandfiremessagereceived(framedecoder.java:459) @ org.jboss.netty.handler.codec.replay.replayingdecoder.calldecode(replayingdecoder.java:536) @ org.jboss.netty.handler.codec.replay.replayingdecoder.messagereceived(replayingdecoder.java:435) @ org.jboss.netty.handler.codec.http.httpclientcodec.handleupstream(httpclientcodec.java:92) @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:268) @ org.jboss.netty.channel.channels.firemessagereceived(channels.java:255) @ org.jboss.netty.channel.socket.nio.nioworker.read(nioworker.java:88) @ org.jboss.netty.channel.socket.nio.abstractnioworker.process(abstractnioworker.java:108) @ org.jboss.netty.channel.socket.nio.abstractnioselector.run(abstractnioselector.java:318) @ org.jboss.netty.channel.socket.nio.abstractnioworker.run(abstractnioworker.java:89) @ org.jboss.netty.channel.socket.nio.nioworker.run(nioworker.java:178) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:724)

(i use sby assembly make jar , execute job in spark job-server) dont use files configuration(application.conf, reference.conf, etc) in job.

help me, dont solve problem!

i don't know causing problem.

the following fixed it:

val parsedconfig = configfactory.parsefile(new file("src/main/resources/application.conf"))  val conf = configfactory.load(parsedconfig) 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -