Play 2.6.7 - No configuration setting found for key 'play'

790 views
Skip to first unread message

Nir

unread,
Nov 30, 2017, 6:42:14 PM11/30/17
to Play Framework
First of all, I think this error message is very vague. It comes up in multiple situation. It should be made more clearer what is the underlaying issue so it helps to debug.

Initially it was coming up after hitting first url on running server where Module was not initialized (due to not being in root package or not configured in applicaiton.conf) 
Not it is coming up due to I think some non resolvable dependency which I can't figure our. Anything that AkkaHttpServer needs that is missing?



[debug] p.a.l.c.ActorSystemProvider - Starting application default Akka system: application
[ERROR] [11/30/2017 15:33:55.993] [play-dev-mode-akka.actor.default-dispatcher-4] [akka.actor.ActorSystemImpl(play-dev-mode)] Internal server error, sending 500 response
com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'play'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152)
at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:145)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:172)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
at com.typesafe.config.impl.SimpleConfig.getObject(SimpleConfig.java:264)
at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:270)
at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:37)
at play.api.ConfigLoader$$anonfun$36$$anonfun$apply$34.apply(Configuration.scala:1065)
at play.api.ConfigLoader$$anonfun$36$$anonfun$apply$34.apply(Configuration.scala:1065)
at play.api.ConfigLoader$$anon$3.load(Configuration.scala:1021)
at play.api.ConfigLoader$$anon$2.load(Configuration.scala:1013)
at play.api.Configuration.get(Configuration.scala:214)
at play.core.server.common.ForwardedHeaderHandler$ForwardedHeaderHandlerConfig$.apply(ForwardedHeaderHandler.scala:233)
at play.core.server.common.ReloadCache.reloadForwardedHeaderHandler(ReloadCache.scala:74)
at play.core.server.AkkaHttpServer$$anon$3.reloadValue(AkkaHttpServer.scala:170)
at play.core.server.AkkaHttpServer$$anon$3.reloadValue(AkkaHttpServer.scala:167)
at play.core.server.common.ReloadCache$$anonfun$1.apply(ReloadCache.scala:25)
at play.core.server.common.ReloadCache$$anonfun$1.apply(ReloadCache.scala:25)
at play.utils.InlineCache.fresh(InlineCache.scala:69)
at play.utils.InlineCache.apply(InlineCache.scala:55)
at play.core.server.common.ReloadCache.cachedFrom(ReloadCache.scala:31)
at play.core.server.AkkaHttpServer.play$core$server$AkkaHttpServer$$modelConversion(AkkaHttpServer.scala:183)
at play.core.server.AkkaHttpServer.play$core$server$AkkaHttpServer$$handleRequest(AkkaHttpServer.scala:189)
at play.core.server.AkkaHttpServer$$anonfun$5.apply(AkkaHttpServer.scala:106)
at play.core.server.AkkaHttpServer$$anonfun$5.apply(AkkaHttpServer.scala:106)
at akka.stream.impl.fusing.MapAsync$$anon$23.onPush(Ops.scala:1172)
at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:499)
at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:462)
at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:368)
at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:571)
at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:457)
at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:546)
at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:728)
at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:743)
at akka.actor.Actor$class.aroundReceive(Actor.scala:517)
at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:653)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:527)
at akka.actor.ActorCell.invoke(ActorCell.scala:496)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

[error] application - 


Nir

unread,
Nov 30, 2017, 7:11:30 PM11/30/17
to Play Framework
This error only happens when I am using WSClient . If I hit the same URL again next time I get different error:

"1) No implementation for play.api.libs.ws.WSClient was bound. while locating play.api.libs.ws.WSClient"

My POM does have following:

      <!-- only if using Webservice -->
      <dependency>
  <groupId>com.typesafe.play</groupId>
  <artifactId>play-ws_${play2-scala.version}</artifactId>
  <version>${play2.version}</version>
  </dependency>
      <dependency>
          <groupId>com.typesafe.play</groupId>
          <artifactId>play-akka-http-server_${play2-scala.version}</artifactId>
          <version>${play2.version}</version>
          <scope>runtime</scope>
      </dependency>


If I remove use of WSClient it goes away.

nir vana

unread,
Nov 30, 2017, 11:22:15 PM11/30/17
to Play Framework
It works if I use play-ahc-ws instead of play-ws.

        <dependency>
            <groupId>com.typesafe.play</groupId>
            <artifactId>play-ahc-ws_${play2-scala.version}</artifactId>
            <version>${play2.version}</version>
        </dependency>



Greg Methvin

unread,
Nov 30, 2017, 11:27:11 PM11/30/17
to play-framework
play-ws is just the API. play-ahc-ws is the AsyncHttpClient-based implementation.

--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/530d0eae-a73c-43fc-99af-c2375adfb730%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Greg Methvin
Tech Lead - Play Framework

Nir

unread,
Dec 1, 2017, 2:35:17 PM12/1/17
to Play Framework
Thanks for clarification. I initially added play-ws based on play-maven-plugin suggestion later found the play-ahc-ws from play-ws git page. 
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages