我试图像往常一样使用akka与演员建立简单的远程连接,但我确定在使用来自android的akka时我还需要做其他事情有人可以帮忙吗?
import akka.actor.Actor.remote
// Establish Connection to Remote Actor
val server = remote.actorFor(remoteActorID, rIP, rPort)
我得到以下堆栈跟踪:
04-28 09:57:13.114: ERROR/AndroidRuntime(18536): FATAL EXCEPTION: Thread-741
java.lang.ExceptionInInitializerError
at akka.actor.Actor$.remote(Actor.scala:115)
at edu.spsu.rgoodwin.networking.api.RemoteConnection.<init>(RemoteConnection.scala:18)
at edu.spsu.rgoodwin.csrAndroidApp.ClientConfigActivity.routerRegistration(ClientConfigActivity.scala:234)
at edu.spsu.rgoodwin.csrAndroidApp.ClientConfigActivity$$anon$1.run(ClientConfigActivity.scala:71)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.ExceptionInInitializerError
at akka.util.ReflectiveAccess$Remote$.<init>(ReflectiveAccess.scala:52)
at akka.util.ReflectiveAccess$Remote$.<clinit>(ReflectiveAccess.scala)
... 5 more
Caused by: akka.config.ConfigurationException: Event Handler specified in config can't be loaded [akka.event.EventHandler$DefaultListener] due to [java.lang.ClassNotFoundException: akka.event.EventHandler$DefaultListener]
[localhost_0e3e4c40-913a-11e1-b984-660379e93466]
at akka.event.EventHandler$$anonfun$1.apply(EventHandler.scala:231)
at akka.event.EventHandler$$anonfun$1.apply(EventHandler.scala:223)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at akka.event.EventHandler$.<init>(EventHandler.scala:223)
at akka.event.EventHandler$.<clinit>(EventHandler.scala)
... 7 more
Caused by: java.lang.ClassNotFoundException: akka.event.EventHandler$DefaultListener
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:217)
at java.lang.Class.forName(Class.java:172)
at akka.util.ReflectiveAccess$.getClassFor(ReflectiveAccess.scala:222)
at akka.event.EventHandler$$anonfun$1.apply(EventHandler.scala:225)
... 12 more
Caused by: java.lang.NoClassDefFoundError: akka/event/EventHandler$DefaultListener
... 17 more
Caused by: java.lang.ClassNotFoundException: akka.event.EventHandler$DefaultListener
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)