运行Lagom hello-world示例时出错

时间:2017-08-03 16:15:42

标签: java scala lagom

在尝试运行Lagom Hello World示例时,我收到以下错误:

    > runAll
[info] Starting Kafka
[info] Starting Cassandra
.SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
.......
[info] Cassandra server running at 127.0.0.1:4000
[info] Service locator is running at http://localhost:8000
[info] Service gateway is running at http://localhost:9000
SLF4J: io.netty.buffer.PoolThreadCache
SLF4J: The following set of substitute loggers may have been accessed
SLF4J: during the initialization phase. Logging calls during this
SLF4J: phase were not honored. However, subsequent logging calls to these
SLF4J: loggers will work as normally expected.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: io.netty.buffer.PoolThreadCache
[error] c.l.l.i.s.r.ServiceRegistration - Service name=[hello-stream}] couldn't register itself to the service locator.
org.asynchttpclient.exception.RemotelyClosedException: Remotely closed
[warn] c.l.l.i.p.c.ServiceLocatorSessionProvider - Could not find Cassandra contact points, due to: Remotely closed
[warn] c.l.l.i.s.r.ServiceRegistryServiceLocator - The service locator replied with an error when looking up the service name=[cas_native] address
org.asynchttpclient.exception.RemotelyClosedException: Remotely closed
[error] c.l.l.i.s.r.ServiceRegistration - Service name=[hello}] couldn't register itself to the service locator.
org.asynchttpclient.exception.RemotelyClosedException: Remotely closed
[info] Service hello-impl listening for HTTP on 0:0:0:0:0:0:0:0:57797
[info] Service hello-stream-impl listening for HTTP on 0:0:0:0:0:0:0:0:58322
[info] (Services started, press enter to stop and go back to the console...)

有人有想法,为什么?

1 个答案:

答案 0 :(得分:0)

我有同样的问题。这是因为系统中有两个sbt实例(第一个由IDE安装)。我删除了另一个,现在可以了