After some thoughts, I think it is best to re-architect it so there is no 
remote pub-sub.

On Friday, February 17, 2017 at 2:49:14 PM UTC-8, T Z wrote:
>
> Sort of, after re-reading remote and serialization akka docs, I realize 
> the problem is with Java Serialization of actor messages sent to a remote 
> actor. It works fine in my local test because I have one actor system. 
>
> Do you recommend trying artery or trying to implement a serializer for 
> these messages?
>
> On Friday, February 17, 2017 at 2:29:59 AM UTC-8, Johan Andrén wrote:
>>
>> Looks like you have accidentally closed over a running stream in some 
>> object you are trying to send across the network/between nodes.
>>
>> --
>> Johan
>> Akka Team
>>
>> On Friday, February 17, 2017 at 9:59:39 AM UTC+1, T Z wrote:
>>>
>>> Hi,
>>>
>>> Does anyone have any idea on the cause of this error? I am integrating 
>>> an ActorPublisher into my streaming/chunk source response back to the 
>>> client but this exception is thrown. It looks to be an auto-generated 
>>> message within Akka Pub-Sub. Any help is greatly appreciated!
>>>
>>>  2017-02-17 08:34:52,408 
>>> ERROR[DelphiEngine-akka.actor.default-dispatcher-22] EndpointWriter - 
>>> Failed to serialize remote message [class 
>>> akka.stream.actor.ActorPublisher$Internal$Subscribe] using serializer 
>>> [class akka.serialization.JavaSerializer]. Transient association error 
>>> (association remains live)
>>>  akka.remote.MessageSerializer$SerializationException: Failed to 
>>> serialize remote message [class 
>>> akka.stream.actor.ActorPublisher$Internal$Subscribe] using serializer 
>>> [class akka.serialization.JavaSerializer].
>>>   at 
>>> akka.remote.MessageSerializer$.serialize(MessageSerializer.scala:61)
>>>   at 
>>> akka.remote.EndpointWriter$$anonfun$serializeMessage$1.apply(Endpoint.scala:895)
>>>   at 
>>> akka.remote.EndpointWriter$$anonfun$serializeMessage$1.apply(Endpoint.scala:895)
>>>   at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
>>>   at akka.remote.EndpointWriter.serializeMessage(Endpoint.scala:894)
>>>   at akka.remote.EndpointWriter.writeSend(Endpoint.scala:786)
>>>   at 
>>> akka.remote.EndpointWriter$$anonfun$4.applyOrElse(Endpoint.scala:761)
>>>   at akka.actor.Actor$class.aroundReceive(Actor.scala:497)
>>>   at akka.remote.EndpointActor.aroundReceive(Endpoint.scala:452)
>>>   at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
>>>   at akka.actor.ActorCell.invoke(ActorCell.scala:495)
>>>   at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
>>>   at akka.dispatch.Mailbox.run(Mailbox.scala:224)
>>>   at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
>>>   at 
>>> scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
>>>   at 
>>> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
>>>   at 
>>> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
>>>   at 
>>> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
>>>  Caused by: java.io.NotSerializableException: 
>>> akka.stream.impl.fusing.ActorGraphInterpreter$BoundarySubscriber
>>>   at 
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
>>>   at 
>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
>>>   at 
>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
>>>   at 
>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
>>>   at 
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
>>>   at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
>>>   at 
>>> akka.serialization.JavaSerializer$$anonfun$toBinary$1.apply$mcV$sp(Serializer.scala:321)
>>>   at 
>>> akka.serialization.JavaSerializer$$anonfun$toBinary$1.apply(Serializer.scala:321)
>>>   at 
>>> akka.serialization.JavaSerializer$$anonfun$toBinary$1.apply(Serializer.scala:321)
>>>   at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
>>>   at akka.serialization.JavaSerializer.toBinary(Serializer.scala:321)
>>>   at 
>>> akka.remote.MessageSerializer$.serialize(MessageSerializer.scala:47)
>>>   ... 17 common frames omitted
>>>
>>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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