Abstract method error on run

205 views
Skip to first unread message

srober...@gmail.com

unread,
May 7, 2014, 6:11:58 PM5/7/14
to spray...@googlegroups.com
I'm trying to run a trivial spray-can http server example.  It compiles fine, but when I run it, I get this error:

ERROR] [05/07/2014 18:08:06.415] [ServiceName-akka.actor.default-dispatcher-2] [ActorSystem(ServiceName)] Uncaught error from thread [ServiceName-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.AbstractMethodError
    at akka.actor.ActorCell.create(ActorCell.scala:580)
    at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
    at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
    at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
    at akka.dispatch.Mailbox.run(Mailbox.scala:219)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Uncaught error from thread [ServiceName-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[ServiceName]
java.lang.AbstractMethodError
    at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
    at akka.actor.ActorCell.invoke(ActorCell.scala:487)
    at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
    at akka.dispatch.Mailbox.run(Mailbox.scala:220)
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)


From Google, it seems this has to do with a mismatch in installed dependencies.  But I've tried to keep my build.sbt minimal, and recompile everything, and I still get the error:

  scalaVersion := "2.10.4"
 
  resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
 
  libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.3.2"
 
  resolvers += "spray repo" at "http://repo.spray.io"
 
  libraryDependencies += "io.spray" % "spray-can" % "1.2.1"

If this is a sbt / dependcy issue, what is a good build.sbt for a simple spray-can example?

Mathias Doenitz

unread,
May 8, 2014, 3:14:28 AM5/8/14
to spray...@googlegroups.com
You are running incompatible versions of spray and akka.
Like http://spray.io/project-info/current-versions/ says you need to run
spray 1.2.x with Akka 2.2.x and spray 1.3.x with Akka 2.3.x.

Cheers,
Mathias

---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "spray.io User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spray-user.
> To view this discussion on the web visit https://groups.google.com/d/msgid/spray-user/08794a3a-df6d-450d-b73a-3d66a2ddeb3f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

srober...@gmail.com

unread,
May 8, 2014, 9:47:37 AM5/8/14
to spray...@googlegroups.com
Thanks.  Solved it.

(Not sure if it's possible, but some type of appropriate error message would save others from having to learn this!)
Reply all
Reply to author
Forward
0 new messages