vlingo-net / xoom-net-actors

Type safe Actor Model toolkit for reactive concurrency and resiliency using C# and other .NET languages.
Mozilla Public License 2.0
39 stars 18 forks source link

System.TypeLoadException: Method 'AndThenTo' does not have an implementation. #34

Closed tjaskula closed 5 years ago

tjaskula commented 5 years ago

This happens with the following line World.StartWithDefault("test-request-response-channel");

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Method 'AndThenTo' in type 'Vlingo.Common.ResultCompletes`1' from assembly 'Vlingo.Actors, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at Vlingo.Actors.Actor..ctor()
   at Vlingo.Actors.PrivateRootActor..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean skipCheckThis, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at Vlingo.Actors.ActorFactory.ActorFor(Stage stage, Actor parent, Definition definition, IAddress address, IMailbox mailbox, ISupervisor supervisor, ILogger logger)
   at Vlingo.Actors.Stage.CreateRawActor(Definition definition, Actor parent, IAddress maybeAddress, IMailbox maybeMailbox, ISupervisor maybeSupervisor, ILogger logger)
tjaskula commented 5 years ago

This works from UT in Actors but not in Wire any idea @zpbappi ?

tjaskula commented 5 years ago

Ok, I think this is because of version inconsistency on Vlingo.Common between Vlingo.Actors and Vlingo.Wire that is addressed in PR #35

zpbappi commented 5 years ago

@tjaskula yes, you are correct.

tjaskula commented 5 years ago

Resolved by #35