【发布时间】:2015-09-04 17:33:33
【问题描述】:
我在一个 sbt 项目中工作,我正在使用库 play-ws。
但我的应用程序不播放框架。
所以,当我运行 mi Job 时,我有这个错误:
com.typesafe.config.ConfigException$Missing:没有配置设置 找到关键“播放”
com.typesafe.config.ConfigException$Missing:没有配置设置 在以下位置找到关键“播放” 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)否 找到关键“播放”的配置设置 com.ning.http.client.providers.netty.NettyAsyncHttpProvider.updateBodyAndInterrupt(NettyAsyncHttpProvider.java:1568)
在 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)
(我使用sby组装制作一个jar并在spark job-server中执行作业) 我在工作中不使用文件配置(application.conf、reference.conf 等)。
请帮帮我。
【问题讨论】:
标签: scala playframework key config typesafe