I would suggest that you turn on remote debug logging and hopefully find
the root cause of the "Failed to write message to the transport":
http://doc.akka.io/docs/akka/2.4/java/logging.html#Auxiliary_remote_logging_options

/Patrik

On Tue, Aug 23, 2016 at 5:27 PM, Rob Crawford <rob5...@gmail.com> wrote:

> Trying to pass around an entire Spring context is a bad idea. It contains
> MANY objects -- you're serializing your entire application.
>
> Focus on serializing the state -- changeable data -- of your actor, and
> let Spring wire up the dependencies on the other node.
>
>
> On Tuesday, August 23, 2016 at 10:19:35 AM UTC-4, vipin mandloi wrote:
>>
>> Hello,
>>
>> Thanks for your quick response.
>>
>>
>> As soon i add 3rd node, i am getting this* unreachable/reachable message
>> . and cluster is getting deformed*. till 2 nodes there is no issue.
>>
>> One more things added *serialize-creators = on and serialize-messages = *
>> *on* to verify serialization for props and message. although i have
>> added serialize for *ClassPathXmlApplicationContext (refer 1st email
>> application.conf) getting serialization error*
>>
>>
>> *Error:-*
>>
>> ERROR] [08/23/2016 07:02:10.705] 
>> [ClusterSystem-akka.actor.default-dispatcher-5]
>> [akka://ClusterSystem/user/singleton] pre-creation serialization check
>> failed at [akka://ClusterSystem/user/singleton/ConsumerActor]
>>
>> java.lang.IllegalArgumentException: pre-creation serialization check
>> failed at [akka://ClusterSystem/user/singleton/ConsumerActor]
>>
>>                at akka.actor.dungeon.Children$cl
>> ass.makeChild(Children.scala:193)
>>
>>                at akka.actor.dungeon.Children$cl
>> ass.actorOf(Children.scala:37)
>>
>>                at akka.actor.ActorCell.actorOf(ActorCell.scala:369)
>>
>>                at akka.contrib.pattern.ClusterSi
>> ngletonManager.gotoOldest(ClusterSingletonManager.scala:516)
>>
>>                at akka.contrib.pattern.ClusterSi
>> ngletonManager$$anonfun$6.applyOrElse(ClusterSingletonManager.scala:428)
>>
>>                at akka.contrib.pattern.ClusterSi
>> ngletonManager$$anonfun$6.applyOrElse(ClusterSingletonManager.scala:417)
>>
>>                at scala.runtime.AbstractPartialF
>> unction.apply(AbstractPartialFunction.scala:33)
>>
>>                at akka.actor.FSM$class.processEvent(FSM.scala:604)
>>
>>                at akka.contrib.pattern.ClusterSi
>> ngletonManager.processEvent(ClusterSingletonManager.scala:336)
>>
>>                at akka.actor.FSM$class.akka$acto
>> r$FSM$$processMsg(FSM.scala:598)
>>
>>                at akka.actor.FSM$$anonfun$receiv
>> e$1.applyOrElse(FSM.scala:592)
>>
>>                at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
>>
>>                at akka.contrib.pattern.ClusterSi
>> ngletonManager.aroundReceive(ClusterSingletonManager.scala:336)
>>
>>                at akka.actor.ActorCell.receiveMe
>> ssage(ActorCell.scala:516)
>>
>>                at akka.actor.ActorCell.invoke(ActorCell.scala:487)
>>
>>                at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
>>
>>                at akka.dispatch.Mailbox.run(Mailbox.scala:221)
>>
>>                at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
>>
>>                at scala.concurrent.forkjoin.Fork
>> JoinTask.doExec(ForkJoinTask.java:260)
>>
>>                at scala.concurrent.forkjoin.Fork
>> JoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
>>
>>                at scala.concurrent.forkjoin.Fork
>> JoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
>>
>>                at scala.concurrent.forkjoin.Fork
>> JoinPool.runWorker(ForkJoinPool.java:1979)
>>
>>                at scala.concurrent.forkjoin.Fork
>> JoinWorkerThread.run(ForkJoinWorkerThread.java:107)
>>
>> *Caused by: java.lang.IllegalArgumentException: Can't serialize object of
>> type class org.springframework.context.su
>> <http://org.springframework.context.su>pport.ClassPathXmlApplicationContext*
>>
>>                at akka.cluster.protobuf.ClusterM
>> essageSerializer.toBinary(ClusterMessageSerializer.scala:74)
>>
>>                at akka.serialization.Serializati
>> on$$anonfun$serialize$1.apply(Serialization.scala:90)
>>
>>
>>
>>
>>
>>
>>
>> On Monday, August 22, 2016 at 10:22:49 PM UTC+5:30, Justin du coeur wrote:
>>>
>>> On Mon, Aug 22, 2016 at 11:09 AM, vipin mandloi <vipinm...@gmail.com>
>>> wrote:
>>>
>>>> Please let me know if i am missing any configuration.
>>>>
>>>
>>> It's not a matter of *missing* -- the problem is that this:
>>>
>>>
>>>> *My application.conf is configured as below-*
>>>>
>>>>
>>>>   cluster {
>>>>     auto-down-unreachable-after = 10s
>>>>   }
>>>>
>>>
>>> Should never, ever, *ever* be used except for initial testing.
>>> Auto-down is intended just as a way to get you started, but it's very
>>> primitive and dumb, and must *never* be used in production.  Auto-downing
>>> is always likely to cause cluster disasters, and having such a short
>>> auto-down timeout essentially guarantees it.
>>>
>>> Basically, you're getting split-brain -- you need to replace auto-down
>>> with a more-sophisticated downing strategy.  See this section of the
>>> documentation
>>> <http://doc.akka.io/docs/akka/2.4.9-RC2/scala/cluster-usage.html#automatic-vs-manual-downing-scala>
>>> for more information.
>>>
>> --
> >>>>>>>>>> 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.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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