-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Milestone
Description
I've found the strange problem. In tests if I set akka.test.calling-thread-dispatcher
as default dispatcher the default inmem
journal (along with any other) will fail to start.
Even if I use the default dispatcher but will send to journal some custom message for example like this:
Persistence.Instance.CreateExtension((ExtendedActorSystem)this.Sys).JournalFor(null).Tell("hello")
as the first test instruction it would fail to start.
I see this in logs:
2016-06-01 11:25:41.963 +03:00 [Debug] "Started (Akka.TestKit.Internal.InternalTestActor)"
2016-06-01 11:25:42.017 +03:00 [Debug] "now supervising akka://test/system/akka.persistence.journal.inmem"
2016-06-01 11:25:42.036 +03:00 [Error] "Object reference not set to an instance of an object."
[akka://test/system/akka.persistence.journal.inmem]: Akka.Actor.ActorInitializationException: Exception during creation ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Akka.Actor.Props.NewActor()
at Akka.Actor.ActorCell.CreateNewActorInstance()
at Akka.Actor.ActorCell.<>c__DisplayClass113_0.<NewActor>b__0()
at Akka.Actor.ActorCell.UseThreadContext(Action action)
at Akka.Actor.ActorCell.NewActor()
at Akka.Actor.ActorCell.Create(Exception failure)
--- End of inner exception stack trace ---
at Akka.Actor.ActorCell.Create(Exception failure)
at Akka.Actor.ActorCell.SystemInvoke(Envelope envelope)