strange problem with sbt-assembly and fat jar

212 views
Skip to first unread message

shiphrah

unread,
Dec 5, 2012, 4:38:44 AM12/5/12
to spray...@googlegroups.com
Hi all,

I use sbt-assembly with spray 1.1-M6 but have a strange problem with logging.

The system seams to start and the log files are created as expecting with one entry. To me it seems, that the configuration is read correctly.

2012-12-05 09:57:15,339 INFO  akka.event.slf4j.Slf4jEventHandler   - Slf4jEventHandler started

But then I get:

[WARN] [12/05/2012 09:57:14.520] [main] [EventStream(akka://com-shiphrah-paia-server-PaiaServer)] Logger log1-Slf4jEventHandler did not respond within Timeout(5000 milliseconds) to InitializeLogger(bus)
error while starting up EventHandler
9eb5b867-87bd-4a2c-972d-bd951f4d0d39akka.ConfigurationException: Event Handler specified in config can't be loaded [akka.event.slf4j.Slf4jEventHandler] due to [e2e92858-ec61-42f7-8ba4-ad0022583a71akka.event.Logging$LoggerInitializationException: Logger log1-Slf4jEventHandler did not respond with LoggerInitialized, sent instead [TIMEOUT]]
at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$1.applyOrElse(Logging.scala:107)
at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$1.applyOrElse(Logging.scala:106)
at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33)
at scala.util.Failure$$anonfun$recover$1.apply(Try.scala:185)
at scala.util.Try$.apply(Try.scala:161)
at scala.util.Failure.recover(Try.scala:185)
at akka.event.LoggingBus$$anonfun$4.apply(Logging.scala:106)
at akka.event.LoggingBus$$anonfun$4.apply(Logging.scala:101)
at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:722)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1156)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:721)
at akka.event.LoggingBus$class.startDefaultLoggers(Logging.scala:101)
at akka.event.EventStream.startDefaultLoggers(EventStream.scala:26)
at akka.actor.LocalActorRefProvider.init(ActorRefProvider.scala:557)
at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:584)
at akka.actor.ActorSystemImpl._start(ActorSystem.scala:582)
at akka.actor.ActorSystemImpl.start(ActorSystem.scala:591)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:111)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:93)
at spray.can.server.SprayCanHttpServerApp$class.$init$(SprayCanHttpServerApp.scala:27)
at com.shiphrah.paia.server.PaiaServer$.<init>(PaiaServer.scala:7)
at com.shiphrah.paia.server.PaiaServer$.<clinit>(PaiaServer.scala)
at com.shiphrah.paia.server.PaiaServer.main(PaiaServer.scala)
Caused by: e2e92858-ec61-42f7-8ba4-ad0022583a71akka.event.Logging$LoggerInitializationException: Logger log1-Slf4jEventHandler did not respond with LoggerInitialized, sent instead [TIMEOUT]
at akka.event.LoggingBus$class.akka$event$LoggingBus$$addLogger(Logging.scala:176)
at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$4.apply(Logging.scala:105)
at akka.event.LoggingBus$$anonfun$4$$anonfun$apply$4.apply(Logging.scala:104)
at scala.util.Success$$anonfun$map$1.apply(Try.scala:206)
at scala.util.Try$.apply(Try.scala:161)
at scala.util.Success.map(Try.scala:206)
at akka.event.LoggingBus$$anonfun$4.apply(Logging.scala:104)
... 19 more
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.shiphrah.paia.server.PaiaServer.main(PaiaServer.scala)
Caused by: 3919be7e-0192-42cc-bfa4-d58f99c22226akka.ConfigurationException: Could not start Event Handler due to [9eb5b867-87bd-4a2c-972d-bd951f4d0d39akka.ConfigurationException: Event Handler specified in config can't be loaded [akka.event.slf4j.Slf4jEventHandler] due to [e2e92858-ec61-42f7-8ba4-ad0022583a71akka.event.Logging$LoggerInitializationException: Logger log1-Slf4jEventHandler did not respond with LoggerInitialized, sent instead [TIMEOUT]]]
at akka.event.LoggingBus$class.startDefaultLoggers(Logging.scala:135)
at akka.event.EventStream.startDefaultLoggers(EventStream.scala:26)
at akka.actor.LocalActorRefProvider.init(ActorRefProvider.scala:557)
at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:584)
at akka.actor.ActorSystemImpl._start(ActorSystem.scala:582)
at akka.actor.ActorSystemImpl.start(ActorSystem.scala:591)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:111)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:93)
at spray.can.server.SprayCanHttpServerApp$class.$init$(SprayCanHttpServerApp.scala:27)
at com.shiphrah.paia.server.PaiaServer$.<init>(PaiaServer.scala:7)
at com.shiphrah.paia.server.PaiaServer$.<clinit>(PaiaServer.scala)
... 1 more
2012-12-05 09:57:15,339 INFO  akka.event.slf4j.Slf4jEventHandler   - Slf4jEventHandler started

Any hints, what could be the reason?

Thanks

Jürgen

shiphrah

unread,
Dec 5, 2012, 7:30:45 AM12/5/12
to spray...@googlegroups.com
okay, got it working by increasing the timeout. (tried before but had a typo in the setting)

Jürgen

Reply all
Reply to author
Forward
0 new messages