Akka zdalny `system.shutdown ()` prowadzi do EndpointDisassociatedException?
Mam prostą konfigurację klienta i serwera, aw pewnym momencie po wysłaniu wszystkich żądań asynchronicznych i po potwierdzeniu przez serwer, klient wywołujesystem.shutdown()
. To prowadzi serwer doakka.remote.EndpointDisassociatedException
i kilka błędów dziennika, jak pokazano poniżej. Nie jestem zadowolony z kilku błędów w moich dziennikach, więc chciałbym wiedzieć, co to wszystko powoduje. Wynik całego systemu działa z powodzeniem, błąd pojawia się tylko w momencie, gdy klient się wyłącza.
28.Jun.2013-10:13:01 ERROR EndpointWriter - AssociationError [akka.tcp://[email protected]:2552] <- [akka.tcp://[email protected]:2552]: Error [Disassociated] [
akka.remote.EndpointDisassociatedException: Disassociated
]
28.Jun.2013-10:13:01 DEBUG EndpointWriter - Disassociated [akka.tcp://[email protected]:2552] <- [akka.tcp://[email protected]:2552]
28.Jun.2013-10:13:01 ERROR EndpointWriter - AssociationError [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:2552]: Error [Association failed with [akka.tcp://[email protected]:2552]] [
akka.remote.EndpointAssociationException: Association failed with [akka.tcp://[email protected]:2552]
Caused by: akka.remote.transport.netty.NettyTransport$anonfun$associate. To prowadzi serwer do$anon$2: Connection refused: /192.168.224.65:2552
]
28.Jun.2013-10:13:01 DEBUG EndpointWriter - Disassociated [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:2552]
28.Jun.2013-10:13:01 ERROR EndpointWriter - AssociationError [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:2552]: Error [Association failed with [akka.tcp://[email protected]:2552]] [
akka.remote.EndpointAssociationException: Association failed with [akka.tcp://[email protected]:2552]
Caused by: akka.remote.transport.netty.NettyTransport$anonfun$associate. To prowadzi serwer do$anon$2: Connection refused: /192.168.224.65:2552
]
28.Jun.2013-10:13:01 DEBUG EndpointWriter - Disassociated [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:2552]
28.Jun.2013-10:13:01 ERROR EndpointWriter - AssociationError [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:2552]: Error [Association failed with [akka.tcp://[email protected]:2552]] [
akka.remote.EndpointAssociationException: Association failed with [akka.tcp://[email protected]:2552]
Caused by: akka.remote.transport.netty.NettyTransport$anonfun$associate. To prowadzi serwer do$anon$2: Connection refused: /192.168.224.65:2552
]
28.Jun.2013-10:13:01 DEBUG EndpointWriter - Disassociated [akka.tcp://[email protected]:2552] -> [akka.tcp://[email protected]:2552]
AKTUALIZACJA: Używam Akki w wersji 2.2.0-RC1, a wersja Scala to 2.10.0, ale dzieje się tak również w wersji 2.10.1 Scali. Używam Maven, a wersje oprogramowania to:
<properties>
<scala.version>2.10.0</scala.version>
<akka.version>2.2.0-RC1</akka.version>
<scalatest.version>2.0.M6-SNAP16</scalatest.version>
<log4j.version>1.2.17</log4j.version>
<slf4j.version>1.7.5</slf4j.version>
<commons-lang3.version>3.1</commons-lang3.version>
<guava.version>14.0.1</guava.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
i odpowiadające im zależności:
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor_2.10</artifactId>
<version>${akka.version}</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-remote_2.10</artifactId>
<version>${akka.version}</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-kernel_2.10</artifactId>
<version>${akka.version}</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-agent_2.10</artifactId>
<version>${akka.version}</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-zeromq_2.10</artifactId>
<version>${akka.version}</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-slf4j_2.10</artifactId>
<version>${akka.version}</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.10</artifactId>
<version>${scalatest.version}</version>
<scope>test</scope>
</dependency>
</dependencies>