Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: Could not initialize class org.fusesource.jansi.WindowsAnsiOutputStream thrown on Windows #36

Closed
Bohtvaroh opened this issue May 7, 2014 · 11 comments

Comments

@Bohtvaroh
Copy link

Can't make the plugin work on Windows. On re-start I get:

java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi in java.library.path] [ERROR] java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.WindowsAnsiOutputStream

Full stacktrace: http://pastebin.com/jgeRDnam

I tried deleting ~.ivy2, ~.sbt but with no luck. On sbt start .sbt\boot\other\org.fusesource.jansi\jansi\1.11\jansi-1.11.jar file is created.

Same config works okay on OSX.

@Bohtvaroh Bohtvaroh changed the title NoClassDefFoundError: Could not initialize class org.fusesource.jansi.WindowsAnsiOutputStream thown on Windows NoClassDefFoundError: Could not initialize class org.fusesource.jansi.WindowsAnsiOutputStream thrown on Windows May 7, 2014
@jrudolph
Copy link
Member

Which version of sbt do you use? Can you try if -Dsbt.log.format=false fixes the problem?

@jrudolph
Copy link
Member

Hmm, I wonder in which way this is related to sbt at all. Have you tried using the sbt-assembly plugin to create a standalone jar and check if that works?

@Bohtvaroh
Copy link
Author

I use sbt 0.13.2.

-Dsbt.log.format=false flag has no effect.

I didn't try sbt-assembly - I don't need it. I only wanted interactive development cycle: change code, auto-restart app. On OSX it works well. I think it does relate to sbt, since sbt puts jansi to .sbt\boot\other\org.fusesource.jansi\jansi\1.11\jansi-1.11.jar itself. That jar has org.fusesource.jansi.WindowsAnsiOutputStream class inside, so I can't get why NoClassDefFoundError is thrown.

@jrudolph
Copy link
Member

Could you post the relevant output of running show re-start::full-classpath on your sbt shell? Because from the stacktrace it seems the failing call comes from log4j which also depends on jansi.

Does it work if you set fork in run := true and then use just run in sbt instead of re-start?

@Bohtvaroh
Copy link
Author

show re-start::full-classpath output:

[info] List(Attributed(D:\Projects\art-team\src\app\target\scala-2.10\classes), Attributed(D:\Projects\art-team\src\comm on\target\scala-2.10\classes), Attributed(D:\Projects\art-team\src\dao-interface\target\scala-2.10\classes), Attributed( D:\Projects\art-team\src\dao-impl\target\scala-2.10\classes), Attributed(D:\Projects\art-team\src\service-interface\targ et\scala-2.10\classes), Attributed(D:\Projects\art-team\src\service-impl\target\scala-2.10\classes), Attributed(D:\Proje cts\art-team\src\controller\target\scala-2.10\classes), Attributed(D:\Projects\art-team\src\frontend\static\target\scala -2.10\classes), Attributed(D:\Projects\art-team\src\frontend\scala-js\target\scala-2.10\classes), Attributed(C:\Users\as emenov\.ivy2\cache\org.scala-lang\scala-library\jars\scala-library-2.10.4.jar), Attributed(C:\Users\asemenov\.ivy2\cache \org.scala-lang.modules\scala-async_2.10\bundles\scala-async_2.10-0.9.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\o rg.scala-lang\scala-reflect\jars\scala-reflect-2.10.4.jar), Attributed(C:\Users\asemenov\.ivy2\cache\joda-time\joda-time \jars\joda-time-2.3.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.joda\joda-convert\jars\joda-convert-1.6.jar), Att ributed(C:\Users\asemenov\.ivy2\cache\org.scalaz\scalaz-core_2.10\bundles\scalaz-core_2.10-7.0.6.jar), Attributed(C:\Use rs\asemenov\.ivy2\cache\com.typesafe.akka\akka-actor_2.10\jars\akka-actor_2.10-2.2.3.jar), Attributed(C:\Users\asemenov\ .ivy2\cache\com.typesafe\config\bundles\config-1.0.2.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.reactivemongo\re activemongo_2.10\jars\reactivemongo_2.10-0.10.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.reactivemongo\reactiv emongo-bson-macros_2.10\jars\reactivemongo-bson-macros_2.10-0.10.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.sc ala-lang\scala-compiler\jars\scala-compiler-2.10.2.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.reactivemongo\reac tivemongo-bson_2.10\jars\reactivemongo-bson_2.10-0.10.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.netty\netty\bu ndles\netty-3.6.5.Final.jar), Attributed(C:\Users\asemenov\.ivy2\cache\com.typesafe.play\play-iteratees_2.10\jars\play-i teratees_2.10-2.2.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.scala-stm\scala-stm_2.10\jars\scala-stm_2.10-0.7. jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.apache.logging.log4j\log4j-api\jars\log4j-api-2.0-beta9.jar), Attribu ted(C:\Users\asemenov\.ivy2\cache\org.apache.logging.log4j\log4j-core\jars\log4j-core-2.0-beta9.jar), Attributed(C:\User s\asemenov\.ivy2\cache\org.slf4j\slf4j-api\jars\slf4j-api-1.7.6.jar), Attributed(C:\Users\asemenov\.ivy2\cache\commons-c odec\commons-codec\jars\commons-codec-1.9.jar), Attributed(C:\Users\asemenov\.ivy2\cache\com.codahale.metrics\metrics-co re\bundles\metrics-core-3.0.2.jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.spray\spray-can\bundles\spray-can-1.2.0. jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.spray\spray-io\bundles\spray-io-1.2.0.jar), Attributed(C:\Users\asemen ov\.ivy2\cache\io.spray\spray-util\bundles\spray-util-1.2.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.spray\spra y-http\bundles\spray-http-1.2.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.parboiled\parboiled-scala_2.10\bundle s\parboiled-scala_2.10-1.1.6.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.parboiled\parboiled-core\bundles\parboil ed-core-1.1.6.jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.spray\spray-routing\bundles\spray-routing-1.2.0.jar), At tributed(C:\Users\asemenov\.ivy2\cache\io.spray\spray-httpx\bundles\spray-httpx-1.2.0.jar), Attributed(C:\Users\asemenov \.ivy2\cache\org.jvnet.mimepull\mimepull\jars\mimepull-1.9.3.jar), Attributed(C:\Users\asemenov\.ivy2\cache\com.chuusai\ shapeless_2.10\jars\shapeless_2.10-1.2.4.jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.spray\spray-caching\bundles\s pray-caching-1.2.0.jar), Attributed(C:\Users\asemenov\.ivy2\cache\com.googlecode.concurrentlinkedhashmap\concurrentlinke dhashmap-lru\jars\concurrentlinkedhashmap-lru-1.4.jar), Attributed(C:\Users\asemenov\.ivy2\cache\io.spray\spray-json_2.1 0\jars\spray-json_2.10-1.2.5.jar), Attributed(C:\Users\asemenov\.ivy2\cache\org.scala-lang.modules.scalajs\scalajs-libra ry_2.10\jars\scalajs-library_2.10-0.5.0-M2.jar))

I can't set fork in run := true for a reason, it gives:

[error] Expected ID character
[error] Not a valid command: fork
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Expected '::'
[error] Expected end of input.
[error] fork in run = true
[error] ^

Same for fork := true.

@jrudolph
Copy link
Member

[error] fork in run = true

It seems this is missing a colon.

You need to either put that line into your build.sbt:

fork in run := true

or run set fork in run := true on the sbt console (including set). Sorry, if that wasn't clear.

@Bohtvaroh
Copy link
Author

Okay, with set ... and run it runs successfully. But it's not detached from the term. Wasn't it the purpose of enabling forking?

@jrudolph
Copy link
Member

Right, fork in run doesn't detach from the console but does at least spawn a new process. re-start basically does exactly the same but additional detaches from the console, so that's why it's very strange that the behaviors differ.

@fynnfeldpausch
Copy link

Hi, I am running into the same problem using sbt-revolver and ReactiveMongo. Is there an progress on this issue?

@omidb
Copy link

omidb commented Jul 7, 2015

I have the same problem:

sharedProjectJVM[ERROR] Uncaught error from thread [SPA-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[SPA]
sharedProjectJVM[ERROR] java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.WindowsAnsiOutputStream
sharedProjectJVM[ERROR]         at java.lang.Class.forName0(Native Method)
sharedProjectJVM[ERROR]         at java.lang.Class.forName(Class.java:260)
sharedProjectJVM [ERROR] [07/06/2015 18:15:57.950] [SPA-akka.actor.default-dispatcher-2] [ActorSystem(SPA)] Uncaught error from thread [SPA-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-erro
r' is enabled
sharedProjectJVM java.lang.NoClassDefFoundError: Could not initialize class org.fusesource.jansi.WindowsAnsiOutputStream
sharedProjectJVM        at java.lang.Class.forName0(Native Method)
sharedProjectJVM        at java.lang.Class.forName(Class.java:260)
sharedProjectJVM        at org.apache.logging.log4j.core.util.Loader.loadClassWithDefaultClassLoader(Loader.java:272)
sharedProjectJVM        at org.apache.logging.log4j.core.util.Loader.loadClass(Loader.java:267)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.util.Loader.loadClassWithDefaultClassLoader(Loader.java:272)
sharedProjectJVM        at org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStream(ConsoleAppender.java:125)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.util.Loader.loadClass(Loader.java:267)
sharedProjectJVM        at org.apache.logging.log4j.core.appender.ConsoleAppender.getManager(ConsoleAppender.java:104)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStream(ConsoleAppender.java:125)
sharedProjectJVM        at org.apache.logging.log4j.core.appender.ConsoleAppender.createAppender(ConsoleAppender.java:99)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.appender.ConsoleAppender.getManager(ConsoleAppender.java:104)
sharedProjectJVM        at org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(DefaultConfiguration.java:60)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.appender.ConsoleAppender.createAppender(ConsoleAppender.java:99)
sharedProjectJVM        at org.apache.logging.log4j.core.LoggerContext.<init>(LoggerContext.java:72)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(DefaultConfiguration.java:60)
sharedProjectJVM        at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:218)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.LoggerContext.<init>(LoggerContext.java:72)
sharedProjectJVM        at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:113)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:218)
sharedProjectJVM        at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:113)
sharedProjectJVM        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:82)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:80)
sharedProjectJVM        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:82)
sharedProjectJVM        at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:474)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
sharedProjectJVM        at reactivemongo.utils.LazyLogger$.apply(utils.scala:55)
sharedProjectJVM[ERROR]         at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:474)
sharedProjectJVM        at reactivemongo.api.MongoDriver$.<init>(api.scala:642)
sharedProjectJVM[ERROR]         at reactivemongo.utils.LazyLogger$.apply(utils.scala:55)
sharedProjectJVM        at reactivemongo.api.MongoDriver$.<clinit>(api.scala)
sharedProjectJVM[ERROR]         at reactivemongo.api.MongoDriver$.<init>(api.scala:642)
sharedProjectJVM        at rocnlpui.server.MongoManager$.driver$lzycompute(MongoManager.scala:21)
sharedProjectJVM[ERROR]         at reactivemongo.api.MongoDriver$.<clinit>(api.scala)
sharedProjectJVM        at rocnlpui.server.MongoManager$.driver(MongoManager.scala:21)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.driver$lzycompute(MongoManager.scala:21)
sharedProjectJVM        at rocnlpui.server.MongoManager$.connection$lzycompute(MongoManager.scala:22)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.driver(MongoManager.scala:21)
sharedProjectJVM        at rocnlpui.server.MongoManager$.connection(MongoManager.scala:22)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.connection$lzycompute(MongoManager.scala:22)
sharedProjectJVM        at rocnlpui.server.MongoManager$.db$lzycompute(MongoManager.scala:23)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.connection(MongoManager.scala:22)
sharedProjectJVM        at rocnlpui.server.MongoManager$.db(MongoManager.scala:23)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.db$lzycompute(MongoManager.scala:23)
sharedProjectJVM        at rocnlpui.server.MongoManager$.annotationTasks$lzycompute(MongoManager.scala:25)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.db(MongoManager.scala:23)
sharedProjectJVM        at rocnlpui.server.MongoManager$.annotationTasks(MongoManager.scala:25)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.annotationTasks$lzycompute(MongoManager.scala:25)
sharedProjectJVM        at rocnlpui.server.MongoManager$.getAnnotationAssignmentHistory(MongoManager.scala:35)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.annotationTasks(MongoManager.scala:25)
sharedProjectJVM        at rocnlpui.server.TaskManager$.AddNewAnnotations(TaskManager.scala:17)
sharedProjectJVM        at rocnlpui.server.ApiService.parse(ApiService.scala:76)
sharedProjectJVM[ERROR]         at rocnlpui.server.MongoManager$.getAnnotationAssignmentHistory(MongoManager.scala:35)
sharedProjectJVM        at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5$$anonfun$1.applyOrElse(MainApp.scala:59)
sharedProjectJVM[ERROR]         at rocnlpui.server.TaskManager$.AddNewAnnotations(TaskManager.scala:17)
sharedProjectJVM        at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5$$anonfun$1.applyOrElse(MainApp.scala:59)
sharedProjectJVM[ERROR]         at rocnlpui.server.ApiService.parse(ApiService.scala:76)
sharedProjectJVM        at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)
sharedProjectJVM[ERROR]         at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5$$anonfun$1.applyOrElse(MainApp.scala:59)
sharedProjectJVM[ERROR]         at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5$$anonfun$1.applyOrElse(MainApp.scala:59)
sharedProjectJVM        at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(MainApp.scala:59)
sharedProjectJVM[ERROR]         at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)
sharedProjectJVM        at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(MainApp.scala:57)
sharedProjectJVM[ERROR]         at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(MainApp.scala:59)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at rocnlpui.server.MainApp$$anonfun$main$1$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$5.apply(MainApp.scala:57)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:30)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:29)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:30)
sharedProjectJVM        at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1$$anonfun$apply$1.apply(RouteConcatenation.scala:32)
sharedProjectJVM[ERROR]         at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:29)
sharedProjectJVM        at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1$$anonfun$apply$1.apply(RouteConcatenation.scala:31)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.RequestContext$$anonfun$withRejectionHandling$1.applyOrElse(RequestContext.scala:130)
sharedProjectJVM        at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)
sharedProjectJVM        at spray.routing.RequestContext$$anon$1.handle(RequestContext.scala:84)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at akka.spray.UnregisteredActorRefBase.$bang(UnregisteredActorRefBase.scala:72)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.RequestContext.reject(RequestContext.scala:202)
sharedProjectJVM        at spray.routing.directives.RouteDirectives$$anon$1.apply(RouteDirectives.scala:35)
sharedProjectJVM        at spray.routing.directives.RouteDirectives$$anon$1.apply(RouteDirectives.scala:34)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1$$anonfun$apply$1.apply(RouteConcatenation.scala:32)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM[ERROR]         at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1$$anonfun$apply$1.apply(RouteConcatenation.scala:31)
sharedProjectJVM        at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:30)
sharedProjectJVM[ERROR]         at spray.routing.RequestContext$$anonfun$withRejectionHandling$1.applyOrElse(RequestContext.scala:130)
sharedProjectJVM[ERROR]         at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36)
sharedProjectJVM        at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:29)
sharedProjectJVM[ERROR]         at spray.routing.RequestContext$$anon$1.handle(RequestContext.scala:84)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM[ERROR]         at akka.spray.UnregisteredActorRefBase.$bang(UnregisteredActorRefBase.scala:72)
sharedProjectJVM        at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at spray.routing.directives.ExecutionDirectives$$anonfun$handleExceptions$1$$anonfun$apply$4.apply(ExecutionDirectives.scala:35)
sharedProjectJVM        at spray.routing.directives.ExecutionDirectives$$anonfun$handleExceptions$1$$anonfun$apply$4.apply(ExecutionDirectives.scala:33)
sharedProjectJVM[ERROR]         at spray.routing.RequestContext.reject(RequestContext.scala:202)
sharedProjectJVM        at spray.routing.HttpServiceBase$class.runSealedRoute$1(HttpService.scala:36)
sharedProjectJVM[ERROR]         at spray.routing.directives.RouteDirectives$$anon$1.apply(RouteDirectives.scala:35)
sharedProjectJVM        at spray.routing.HttpServiceBase$$anonfun$runRoute$1.applyOrElse(HttpService.scala:46)
sharedProjectJVM[ERROR]         at spray.routing.directives.RouteDirectives$$anon$1.apply(RouteDirectives.scala:34)
sharedProjectJVM        at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at spray.routing.SimpleRoutingApp$$anonfun$1$$anon$1.aroundReceive(SimpleRoutingApp.scala:54)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92)
sharedProjectJVM        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
sharedProjectJVM[ERROR]         at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:30)
sharedProjectJVM        at akka.actor.ActorCell.invoke(ActorCell.scala:487)
sharedProjectJVM        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
sharedProjectJVM        at akka.dispatch.Mailbox.run(Mailbox.scala:221)
sharedProjectJVM[ERROR]         at spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1.apply(RouteConcatenation.scala:29)
sharedProjectJVM        at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
sharedProjectJVM        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
sharedProjectJVM        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
sharedProjectJVM        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
sharedProjectJVM[ERROR]         at spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30)
sharedProjectJVM
sharedProjectJVM[ERROR]         at spray.routing.directives.ExecutionDirectives$$anonfun$handleExceptions$1$$anonfun$apply$4.apply(ExecutionDirectives.scala:35)
sharedProjectJVM[ERROR]         at spray.routing.directives.ExecutionDirectives$$anonfun$handleExceptions$1$$anonfun$apply$4.apply(ExecutionDirectives.scala:33)
sharedProjectJVM[ERROR]         at spray.routing.HttpServiceBase$class.runSealedRoute$1(HttpService.scala:36)
sharedProjectJVM[ERROR]         at spray.routing.HttpServiceBase$$anonfun$runRoute$1.applyOrElse(HttpService.scala:46)
sharedProjectJVM[ERROR]         at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
sharedProjectJVM[ERROR]         at spray.routing.SimpleRoutingApp$$anonfun$1$$anon$1.aroundReceive(SimpleRoutingApp.scala:54)
sharedProjectJVM[ERROR]         at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
sharedProjectJVM[ERROR]         at akka.actor.ActorCell.invoke(ActorCell.scala:487)
sharedProjectJVM[ERROR]         at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
sharedProjectJVM[ERROR]         at akka.dispatch.Mailbox.run(Mailbox.scala:221)
sharedProjectJVM[ERROR]         at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
sharedProjectJVM[ERROR]         at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
sharedProjectJVM[ERROR]         at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
sharedProjectJVM[ERROR]         at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
sharedProjectJVM[ERROR]         at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
sharedProjectJVM ... finished with exit code -1

@jrudolph
Copy link
Member

jrudolph commented Sep 5, 2015

@omidb sorry for not answering sooner. Have you checked if the same happens with fork in run := true? We do not attempt to fix problems that also occur with forked runs which we just try to augment with extra functionality. If there's still a problem with this it needs to be fixed in sbt itself.

I'm closing this for now. If you can demonstrate that your problem happens only with sbt-revolver but not with fork in run := true please reopen.

@jrudolph jrudolph closed this as completed Sep 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants