Thanks Patrick,

You are right.

System1 runs in Play and indeed the application only crashes when it is 
launched with sbt.  The problem disappears when the application is properly 
built and launched.
However, I am still interested in knowing if there is a way for the system1 
application to be notified of the akka.remote.ShutDownAssociation event so 
that it can trigger some cleanup after losing the remote actor.  Looking at 
the log, all the information needed is there but how can I access it?

Best,

David 


On Sunday, April 9, 2017 at 2:24:57 PM UTC+2, Patrik Nordwall wrote:
>
> system1 doesn't crash, that is just a harmless log message, or do you see 
> anything that actually doesn't work in system1 after that?
>
> /Patrik
> sön 9 apr. 2017 kl. 13:25 skrev David <[email protected] <javascript:>>:
>
>> Hello,
>>
>> I am using Akka remote 2.4.17 with Scala 2.12.1
>>
>> I have two actor systems: system1 and system2 
>>
>> An actor1 is created on system1 and an actor2 is created on system2
>>
>> actor2 looks up actor1 and they exchange messages.
>>
>> At some point, I shut down system2 and system1 crashes with the following 
>> error message:
>>
>> [error] a.r.EndpointWriter - AssociationError [akka.tcp://
>> [email protected]:2552] <- [akka.tcp://[email protected]:2553]: Error 
>> [Shut down address: akka.tcp://[email protected]:2553] [
>> akka.remote.ShutDownAssociation: Shut down address: akka.tcp://
>> [email protected]:2553
>> Caused by: akka.remote.transport.Transport$InvalidAssociationException: 
>> The remote system terminated the association because it is shutting down.
>> ]
>>
>> What should I to ensure that system1 stays up and running when system2 
>> goes down?
>>
>> Thanks,
>>
>> David
>>  
>>
>> -- 
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to