我使用远程参与者开发了我的应用程序。现在我尝试将 bundle 安装到 Felix 中,但问题是它需要一个 ClusterMessageSerializer 类。 我没有使用集群,我的配置是一个简单的远程参与者。 您知道为什么会出现这个问题以及如何解决它吗?
我尝试导入 akka.cluster,但 felix 需要 scalabuff,版本在 1.2.0 和 1.3.0 之间,但不是 bundle 。
这是我的 application.conf:
<p></p>
<pre><code>akka {
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
enabled-transports = ["akka.remote.netty.tcp"]
netty.tcp {
hostname = "127.0.0.1"
port = 2552
}
}
}
</code></pre>
<p></p>
这是一个异常(exception):
<p></p>
<pre><code>Caused by: java.lang.ClassNotFoundException: akka.cluster.protobuf.ClusterMessageSerializer not found by com.typesafe.akka.osgi
</code></pre>
<p></p>
最佳答案
我添加了 akka-cluster,它似乎有效。不完全确定为什么我的服务通过 akka 远程处理与集群进行通信,所以它可能只是它使用的序列化形式......
关于java - OSGI 中 Akka 2.2.x 远程中的 ClusterMessageSerializer ClassNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20346734/