社区项目运行报错.

分享 未结
0 0 5 17
长河 2017-12-24发布
收藏 点赞

这是从github上clone下来的项目,因为我开着VPN,所以不短信,jar 的问题.我是直接再IDEA的sbt shell中进行run 的,编译没有问题,

但是编译之后继续运行就报错:


19:07:46,748 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@75c541e8 - Failed to instantiate converter class [play.api.Logger$ColoredLevel] for keyword [coloredLevel] ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type play.api.Logger$ColoredLevel

    at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type play.api.Logger$ColoredLevel

    at   at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:69)

    at   at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:45)

    at   at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:34)

    at   at ch.qos.logback.core.pattern.parser.Compiler.createConverter(Compiler.java:104)

    at   at ch.qos.logback.core.pattern.parser.Compiler.compile(Compiler.java:63)

    at   at ch.qos.logback.core.pattern.parser.Parser.compile(Parser.java:87)

    at   at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:84)

    at   at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28)

    at   at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:161)

    at   at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)

    at   at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)

    at   at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)

    at   at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)

    at   at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)

    at   at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)

    at   at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)

    at   at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)

    at   at play.api.libs.logback.LogbackLoggerConfigurator.configure(LogbackLoggerConfigurator.scala:118)

    at   at play.api.libs.logback.LogbackLoggerConfigurator.configure(LogbackLoggerConfigurator.scala:65)

    at   at play.api.inject.guice.GuiceApplicationBuilder.$anonfun$configureLoggerFactory$1(GuiceApplicationBuilder.scala:122)

    at   at scala.Option.map(Option.scala:146)

    at   at play.api.inject.guice.GuiceApplicationBuilder.configureLoggerFactory(GuiceApplicationBuilder.scala:121)

    at   at play.api.inject.guice.GuiceApplicationBuilder.applicationModule(GuiceApplicationBuilder.scala:100)

    at   at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:185)

    at   at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:137)

    at   at play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)

    at   at play.core.server.DevServerStart$$anon$1.$anonfun$reload$3(DevServerStart.scala:174)

    at   at play.utils.Threads$.withContextClassLoader(Threads.scala:21)

    at   at play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:171)

    at   at play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:124)

    at   at play.core.server.AkkaHttpServer.modelConversion(AkkaHttpServer.scala:183)

    at   at play.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:189)

    at   at play.core.server.AkkaHttpServer.$anonfun$createServerBinding$3(AkkaHttpServer.scala:106)

    at   at akka.stream.impl.fusing.MapAsync$$anon$23.onPush(Ops.scala:1172)

    at   at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:499)

    at   at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:462)

    at   at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:368)

    at   at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:571)

    at   at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:457)

    at   at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:546)

    at   at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:728)

    at   at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:743)

    at   at akka.actor.Actor.aroundReceive(Actor.scala:517)

    at   at akka.actor.Actor.aroundReceive$(Actor.scala:515)

    at   at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:653)

    at   at akka.actor.ActorCell.receiveMessage(ActorCell.scala:527)

    at   at akka.actor.ActorCell.invoke(ActorCell.scala:496)

    at   at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)

    at   at akka.dispatch.Mailbox.run(Mailbox.scala:224)

    at   at akka.dispatch.Mailbox.exec(Mailbox.scala:234)

    at   at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)

    at   at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)

    at   at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)

    at   at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Caused by: java.lang.ClassNotFoundException: play.api.Logger$ColoredLevel

    at   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

    at   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

    at   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

    at   at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:56)

    at   ... 53 common frames omitted

19:07:46,748 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@75c541e8 - [coloredLevel] is not a valid conversion word


网页上显示:

Configuration error

reference.conf @ jar:file:/C:/Users/onyx/.ivy2/cache/com.typesafe.play/play-mailer_2.12/jars/play-mailer_2.12-6.0.0.jar!/reference.conf: 8: Configuration key 'play.mailer.user' is set to null but expected STRING

我已经把

play-mailer_2.12-6.0.0.jar 放到了上面的路径还是报错,求大佬提示下

回帖
  • 2017-12-24

    不用了,我把整个日志文件删了,就没有这个错误了,改别的了.....

    0 回复
  • 2017-12-24

    @长河 现在还有错误吗?

    0 回复
  • 2017-12-25

    @小编  没有了,现在项目已经运行起来了.嘿嘿,我现在来试试.的

    0 回复
  • 2017-12-25

    @长河 OK

    0 回复
  • 2018-06-27

    我也遇到了同样的问题,将这一行的 convertClass 改成 play.api.libs.logback.ColoredLevel ,然后就没问题了。唯一的区别是 log 内容需要去 play-community-1.2.0/logs 这个路径下看。

    解决方案参考了这里:https://www.playframework.com/documentation/2.6.x/SettingsLogger


    0 回复