Re: [akka-user] missing serialization-bindings for ClusterSingletonProxy$TryToIdentifySingleton$ [akka-cluster-2.5.3]

2017-11-02 Thread Patrik Nordwall
You are probably running with config akka.actor.serialize-messages = on
It could be fixed by TryToIdentifySingleton extends
NoSerializationVerificationNeeded, please open a pull request if you like.

/Patrik

On Thu, Nov 2, 2017 at 1:11 PM, Christophe Pache  wrote:

> Hello everyone!
>
> I notice in our logs the following exception and would like to understand
> what is really happening:
>
> java.io.NotSerializableException: No configured serialization-bindings
>> for class [akka.cluster.singleton.ClusterSingletonProxy$TryToIde
>> ntifySingleton$]
>
>
> In my opinion, this message should not be sent remotely anyway, this is an
> internal message the ClusterSingletonProxy schedules to himself.  Might
> this be when ClusterSingletonProxy stops (doesn't seam to have graceful
> shutdown not scheduled message handling in case of MemberRemoved)?
>
> I'm pretty sure it's just a log issue as the whole system looks like
> working find, but would be really interested into getting a bit what's
> happening. Many thanks in advance!
>
> Cheers,
> Christophe
>
> here is the complete stack trace:
>
>>
>> java.io.NotSerializableException: No configured serialization-bindings
>> for class [akka.cluster.singleton.ClusterSingletonProxy$TryToIde
>> ntifySingleton$] at 
>> akka.serialization.Serialization.serializerFor(Serialization.scala:236)
>> at 
>> akka.serialization.Serialization.findSerializerFor(Serialization.scala:212)
>> at akka.remote.MessageSerializer$.serialize(MessageSerializer.scala:44)
>> at akka.remote.EndpointWriter.$anonfun$serializeMessage$1(Endpoint.scala:889)
>> at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58) at
>> akka.remote.EndpointWriter.serializeMessage(Endpoint.scala:889) at
>> akka.remote.EndpointWriter.writeSend(Endpoint.scala:780) at
>> akka.remote.EndpointWriter$$anonfun$4.applyOrElse(Endpoint.scala:755) at
>> akka.actor.Actor.aroundReceive(Actor.scala:513) at akka.actor.Actor.
>> aroundReceive$(Actor.scala:511) at akka.remote.EndpointActor.
>> aroundReceive(Endpoint.scala:446) at akka.actor.ActorCell.
>> receiveMessage(ActorCell.scala:527) at akka.actor.ActorCell.invoke_
>> aroundBody0(ActorCell.scala:496) at akka.actor.ActorCell$
>> AjcClosure1.run(ActorCell.scala:1) at org.aspectj.runtime.reflect.
>> JoinPointImpl.proceed(JoinPointImpl.java:149) at
>> akka.kamon.instrumentation.ActorMonitors$$anon$1.$
>> anonfun$processMessage$1(ActorMonitor.scala:63) at kamon.trace.Tracer$.
>> withContext(TracerModule.scala:58) at akka.kamon.instrumentation.
>> ActorMonitors$$anon$1.processMessage(ActorMonitor.scala:63) at
>> akka.kamon.instrumentation.ActorCellInstrumentation.
>> aroundBehaviourInvoke(ActorInstrumentation.scala:45) at
>> akka.actor.ActorCell.invoke(ActorCell.scala:489) 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 akka.dispatch.forkjoin.
>> ForkJoinTask.doExec(ForkJoinTask.java:260) at akka.dispatch.forkjoin.
>> ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at
>> akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at
>> akka.dispatch.forkjoin.ForkJoinWorkerThread.run(
>> ForkJoinWorkerThread.java:107)
>>
>
> see how it is used here: https://github.com/akka/akka/
> search?utf8=%E2%9C%93=TryToIdentifySingleton=
>
>
>
> --
> >> 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  -  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.


[akka-user] missing serialization-bindings for ClusterSingletonProxy$TryToIdentifySingleton$ [akka-cluster-2.5.3]

2017-11-02 Thread Christophe Pache
Hello everyone! 

I notice in our logs the following exception and would like to understand 
what is really happening:

java.io.NotSerializableException: No configured serialization-bindings for 
> class [akka.cluster.singleton.ClusterSingletonProxy$TryToIdentifySingleton
> $]


In my opinion, this message should not be sent remotely anyway, this is an 
internal message the ClusterSingletonProxy schedules to himself.  Might 
this be when ClusterSingletonProxy stops (doesn't seam to have graceful 
shutdown not scheduled message handling in case of MemberRemoved)? 

I'm pretty sure it's just a log issue as the whole system looks like 
working find, but would be really interested into getting a bit what's 
happening. Many thanks in advance!

Cheers,
Christophe

here is the complete stack trace:

>
> java.io.NotSerializableException: No configured serialization-bindings for 
> class 
> [akka.cluster.singleton.ClusterSingletonProxy$TryToIdentifySingleton$] at 
> akka.serialization.Serialization.serializerFor(Serialization.scala:236) at 
> akka.serialization.Serialization.findSerializerFor(Serialization.scala:212) 
> at akka.remote.MessageSerializer$.serialize(MessageSerializer.scala:44) at 
> akka.remote.EndpointWriter.$anonfun$serializeMessage$1(Endpoint.scala:889) 
> at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58) at 
> akka.remote.EndpointWriter.serializeMessage(Endpoint.scala:889) at 
> akka.remote.EndpointWriter.writeSend(Endpoint.scala:780) at 
> akka.remote.EndpointWriter$$anonfun$4.applyOrElse(Endpoint.scala:755) at 
> akka.actor.Actor.aroundReceive(Actor.scala:513) at 
> akka.actor.Actor.aroundReceive$(Actor.scala:511) at 
> akka.remote.EndpointActor.aroundReceive(Endpoint.scala:446) at 
> akka.actor.ActorCell.receiveMessage(ActorCell.scala:527) at 
> akka.actor.ActorCell.invoke_aroundBody0(ActorCell.scala:496) at 
> akka.actor.ActorCell$AjcClosure1.run(ActorCell.scala:1) at 
> org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) 
> at 
> akka.kamon.instrumentation.ActorMonitors$$anon$1.$anonfun$processMessage$1(ActorMonitor.scala:63)
>  
> at kamon.trace.Tracer$.withContext(TracerModule.scala:58) at 
> akka.kamon.instrumentation.ActorMonitors$$anon$1.processMessage(ActorMonitor.scala:63)
>  
> at 
> akka.kamon.instrumentation.ActorCellInstrumentation.aroundBehaviourInvoke(ActorInstrumentation.scala:45)
>  
> at akka.actor.ActorCell.invoke(ActorCell.scala:489) 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 
> akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at 
> akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) 
> at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at 
> akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
>

see how it is used here: 
https://github.com/akka/akka/search?utf8=%E2%9C%93=TryToIdentifySingleton=



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