相关疑难解决方法(0)

运行AKKA远程演员时出现"Dead Letters遇到"错误

我试图在我的localhost上使用AKKA运行远程actor,但每次我都会收到此错误.它说遇到死信.我在互联网上搜索,发现当演员在线程停止后收到消息时会出现此错误.所以我正在寻找一种让演员在远程机器上保持活力的方法.我使用的是akka演员而不是scala演员.

[INFO] [09/16/2013 18:44:51.426] [run-main] [Remoting] Starting remoting

[INFO] [09/16/2013 18:44:51.688] [run-main] [Remoting] Remoting started; listening on      addresses :[akka.tcp://actorSystem1@localhost:2209]

[INFO] [09/16/2013 18:44:51.759] [actorSystem2-akka.actor.default-dispatcher-5] [akka://actorSystem2/deadLetters] Message [java.lang.String] from 

Actor[akka://actorSystem2/deadLetters] to Actor[akka://actorSystem2/deadLetters] was not delivered. [1] **dead letters encountered**. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.   
Run Code Online (Sandbox Code Playgroud)

以下是代码.

import akka.actor.{Actor, Props, ActorSystem}
import com.typesafe.config.ConfigFactory
import akka.remote._

object MyApp extends App {
 val actorSystem1 = ActorSystem("actorSystem1", ConfigFactory.parseString("""
    akka {
       actor {
           provider = "akka.remote.RemoteActorRefProvider"
             }
       remote { …
Run Code Online (Sandbox Code Playgroud)

remoting scala actor akka

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

actor ×1

akka ×1

remoting ×1

scala ×1