将sbt项目导入intellij结果akka.actor.InvalidActorNameException

时间:2014-03-31 12:31:37

标签: scala intellij-idea sbt sbt-idea

我正在尝试将现有的sbt项目导入intellij 我收到了这个错误:

akka.actor.InvalidActorNameException: actor name [simple-service-actor] is not unique!
    at akka.actor.dungeon.ChildrenContainer$NormalChildrenContainer.reserve(ChildrenContainer.scala:130)
    at akka.actor.dungeon.Children$class.reserveChild(Children.scala:77)
    at akka.actor.ActorCell.reserveChild(ActorCell.scala:369)
    at akka.actor.dungeon.Children$class.makeChild(Children.scala:202)
    at akka.actor.dungeon.Children$class.attachChild(Children.scala:42)
    at akka.actor.ActorCell.attachChild(ActorCell.scala:369)
    at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:552)
    at spray.routing.SimpleRoutingApp$class.startServer(SimpleRoutingApp.scala:52)
    at com.lihaoyi.workbench.Plugin$.startServer(Plugin.scala:16)
    at com.lihaoyi.workbench.Plugin$$anonfun$6.apply(Plugin.scala:97)
    at com.lihaoyi.workbench.Plugin$$anonfun$6.apply(Plugin.scala:97)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:175)
    at sbt.EvaluateSettings$INode.evaluate(INode.scala:134)
    at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:66)
    at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:75)
    at sbt.EvaluateSettings$$anon$3.run(INode.scala:71)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
[error] akka.actor.InvalidActorNameException: actor name [simple-service-actor] is not unique!
[error] Use 'last' for the full log.

但是,当使用sbt命令行

时,项目将编译并运行

0 个答案:

没有答案