在我的Mac上运行激活器ui时,它会崩溃并报告以下错误。
java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:224)
at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:301)
at java.util.logging.Logger.log(Logger.java:616)
at java.util.logging.Logger.doLog(Logger.java:641)
at java.util.logging.Logger.logp(Logger.java:757)
at org.jboss.netty.logging.JdkLogger.debug(JdkLogger.java:36)
at org.jboss.netty.logging.InternalLoggerFactory$1.debug(InternalLoggerFactory.java:80)
at org.jboss.netty.channel.socket.nio.SelectorUtil.<clinit>(SelectorUtil.java:57)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.getMaxThreads(NioServerSocketChannelFactory.java:248)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<init>(NioServerSocketChannelFactory.java:115)
at play.core.server.NettyServer.play$core$server$NettyServer$$newBootstrap(NettyServer.scala:47)
at play.core.server.NettyServer$$anonfun$8.apply(NettyServer.scala:127)
at play.core.server.NettyServer$$anonfun$8.apply(NettyServer.scala:126)
at scala.Option.map(Option.scala:145)
at play.core.server.NettyServer.<init>(NettyServer.scala:126)
at play.core.server.NettyServer$.createServer(NettyServer.scala:243)
at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:280)
at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:275)
at scala.Option.map(Option.scala:145)
at play.core.server.NettyServer$.main(NettyServer.scala:275)
at activator.UIMain$$anonfun$run$1.apply$mcV$sp(UIMain.scala:110)
at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:110)
at activator.UIMain$$anonfun$run$1.apply(UIMain.scala:110)
at activator.UIMain.withContextClassloader(UIMain.scala:221)
at activator.UIMain.run(UIMain.scala:110)
at activator.UIMain.run(UIMain.scala:87)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:129)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:19)
at xsbt.boot.Boot$.runImpl(Boot.scala:44)
at xsbt.boot.Boot$.main(Boot.scala:20)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.lang.NoSuchMethodError org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
我完全安装了类型安全激活器。我删除了.activator,.sbt。,。ivy和.ivy2。我尝试了没有运气的brew安装。项目使用正常的激活器运行命令正确运行,但我无法让ui工作。我做了一些更多的研究,有些人报告代理可能是问题,但我没有设置代理。谢谢您的帮助。
答案 0 :(得分:0)
看起来你以某种方式将slf4j配置为java.util.logging的实现,然后在类路径上有一个不同的slf4j,或类似的东西。
以下是有关如何配置java.util.logging的一些文档: http://docs.oracle.com/javase/7/docs/api/java/util/logging/LogManager.html
我可能会检查环境变量(JAVA_OPTS?SBT_OPTS?),并且可能会在JAVA_HOME中的某个文件中提到slf4j。
真是猜......