Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotSerializableException in sqlserver dialect #512

Open
patriknw opened this issue Feb 2, 2024 · 0 comments
Open

NotSerializableException in sqlserver dialect #512

patriknw opened this issue Feb 2, 2024 · 0 comments
Labels
bug Something isn't working sqlserver

Comments

@patriknw
Copy link
Member

patriknw commented Feb 2, 2024

Noticed when running EventsBySlicePerfSpec

[2024-02-02 07:45:22,503] [ERROR] [akka.persistence.r2dbc.TestActors$Persister$] [akka://EventsBySlicePerfSpec] [] [EventsBySlicePerfSpec-akka.actor.default-dispatcher-8] - Supervisor StopSupervisor saw failure: Exception during recovery. Last known sequence number [32]. PersistenceId [TestEntity-2|p-34], due to: Exception during recovery. Last known sequence number [32]. PersistenceId [TestEntity-2|p-34], due to: Cannot find serializer with id [2030072832] (manifest []). The most probable reason is that the configuration entry akka.actor.serializers is not in sync between the two systems
akka.persistence.typed.internal.JournalFailureException: Exception during recovery. Last known sequence number [32]. PersistenceId [TestEntity-2|p-34], due to: Exception during recovery. Last known sequence number [32]. PersistenceId [TestEntity-2|p-34], due to: Cannot find serializer with id [2030072832] (manifest []). The most probable reason is that the configuration entry akka.actor.serializers is not in sync between the two systems.
	at akka.persistence.typed.internal.ReplayingEvents.onRecoveryFailure(ReplayingEvents.scala:278)
	at akka.persistence.typed.internal.ReplayingEvents.onJournalResponse(ReplayingEvents.scala:211)
	at akka.persistence.typed.internal.ReplayingEvents.onMessage(ReplayingEvents.scala:105)
	at akka.persistence.typed.internal.ReplayingEvents.onMessage(ReplayingEvents.scala:80)
	at akka.actor.typed.scaladsl.AbstractBehavior.receive(AbstractBehavior.scala:84)
	at akka.actor.typed.Behavior$.interpret(Behavior.scala:282)
	at akka.actor.typed.Behavior$.interpretMessage(Behavior.scala:238)
	at akka.actor.typed.internal.InterceptorImpl$$anon$2.apply(InterceptorImpl.scala:57)
	at akka.persistence.typed.internal.EventSourcedBehaviorImpl$$anon$1.aroundReceive(EventSourcedBehaviorImpl.scala:220)

Caused by: java.io.NotSerializableException: Cannot find serializer with id [2030072832] (manifest []). The most probable reason is that the configuration entry akka.actor.serializers is not in sync between the two systems.
	at akka.serialization.Serialization.$anonfun$deserialize$5(Serialization.scala:203)
	at scala.util.Try$.apply(Try.scala:210)
	at akka.serialization.Serialization.deserialize(Serialization.scala:198)
	at akka.persistence.r2dbc.journal.R2dbcJournal$.deserializeRow(R2dbcJournal.scala:56)
	at akka.persistence.r2dbc.journal.R2dbcJournal.$anonfun$asyncReplayMessages$1(R2dbcJournal.scala:219)
	at akka.persistence.r2dbc.journal.R2dbcJournal.$anonfun$asyncReplayMessages$1$adapted(R2dbcJournal.scala:218)

Looks like the read serializer id is wrong. As far as I can see, 2030072832 is not defined anywhere. Might be a bug in r2dbc-mssql?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sqlserver
Projects
None yet
Development

No branches or pull requests

1 participant