Failed to serialize remote message

I am trying to migrate Akka from 2.4.1 to 2.6.19 during this migration I am facing some serialization issues as follows.

akka.remote.MessageSerializer$SerializationException: Failed to serialize remote message [class] using serializer [class akka.remote.serialization.MessageContainerSerializer].
	at akka.remote.MessageSerializer$.serialize(MessageSerializer.scala:66)
	at akka.remote.EndpointWriter.$anonfun$serializeMessage$1(Endpoint.scala:1035)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:59)
	at akka.remote.EndpointWriter.serializeMessage(Endpoint.scala:1035)
	at akka.remote.EndpointWriter.writeSend(Endpoint.scala:895)
	at akka.remote.EndpointWriter$$anonfun$4.applyOrElse(Endpoint.scala:867)
	at akka.remote.EndpointActor.aroundReceive(Endpoint.scala:540)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270)
	at akka.dispatch.Mailbox.exec(Mailbox.scala:243)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(
	at java.base/java.util.concurrent.ForkJoinPool.scan(
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(
	at java.base/
Caused by: akka.serialization.DisabledJavaSerializer$JavaSerializationException: Attempted to serialize message using Java serialization while `` was disabled. Check WARNING logs for more details.

My current configuration is as follows.

akka {
	actor {
		provider = "akka.remote.RemoteActorRefProvider"
		warn-about-java-serializer-usage = true
		enable-additional-serialization-bindings = on
		serialize-messages = on

		serializers {
			proto = "akka.remote.serialization.ProtobufSerializer"

		serialization-bindings {
		    "" = none
        	"" = proto

	remote {
		artery.enabled = false
		classic {
             enabled-transports = ["akka.remote.classic.netty.tcp"]
             netty.tcp {
                 hostname = ""
                 port = 2552

I think you are trying to serialize a messag with Java serialization and that is disabled in 2.6. It’s sent via actorSelection.

Have you tried serialize-messages = off ?
That is only a trsting utility, which I would recommend against using.

Yes serialize-messages = on is just for testing locally. I have tried by disabling this as well.