Ошибка при запуске примера Lagom hello-world

При попытке запустить пример 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...)

У кого-нибудь есть идея, почему?


person Jish Nair    schedule 03.08.2017    source источник
comment
Вы используете проект maven или sbt hello world от lagom?   -  person notionquest    schedule 03.08.2017
comment
СБТ. Я запускаю следующий пример, приведенный в документации. github.com/lagom/lagom-scala.g8   -  person Jish Nair    schedule 03.08.2017
comment
Опубликуйте полный вывод. Возможно, ранее в логах была подсказка. Есть ли конфликты портов?   -  person Tim Moore    schedule 03.08.2017
comment
Я отредактировал вопрос с полными журналами. Я не вижу никаких конфликтов портов.   -  person Jish Nair    schedule 04.08.2017
comment
Вы уверены, что на портах 4000, 8000, 9000 больше ничего не работает? Возможно, у вас запущен еще один экземпляр sbt. Другая возможность заключается в том, что внутренние проекты каким-то образом были повреждены. Попробуйте удалить каталог target и снова запустить sbt runAll.   -  person pazustep    schedule 21.09.2017
comment
Ты используешь прокси? Может ли быть так, что запросы к вашему локальному хосту направляются через прокси?   -  person Tim Moore    schedule 27.10.2017
comment
@TimMoore: пример волшебным образом сработал позже, возможно, проблема заключалась в параллельном запуске другого экземпляра sbt.   -  person Jish Nair    schedule 05.11.2017
comment
Привет, как идентифицировать другой экземпляр SBT, работающий параллельно? у меня все еще есть эта проблема   -  person user9920500    schedule 17.07.2021


Ответы (1)


У меня такая же проблема. Это было из-за того, что в системе было два экземпляра sbt (первый был установлен IDE). Я удалил еще один, и теперь он работает

person Alexey Cheltsov    schedule 30.10.2019