2017-09-07 27 views
0

一切正常工作....然後我決定更新到AKKA.NET 1.3.1.0 ...更新到1.3.1.0後Akka.Persistence問題

有許多問題,並解決它們,但是我似乎無法找到最後一個解決方案(我希望)。錯誤消息:

---> System.Reflection.TargetInvocationException:異常被調用的目標引發。 ---> System.MissingMethodException:未找到方法:'虛假 Akka.Persistence.Sql.Common.Snapshot.QueryConfiguration..ctor(System.String, System.String,System.String,System.String,System。字符串, System.String,System.String,System.TimeSpan)'。 在Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore..ctor(配置 配置)

請幫助。完整的日誌低於(更換IP與XX):

> [ERROR][9/7/2017 1:44:56 PM][Thread 0007][akka://ECHO3DEV/system/akka.persistence.snapshot-store.sql-server] Error while creating actor instance of type Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore with 1 args: ( class : "Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore, Akka.Persistence.SqlServer" 
    plugin-dispatcher : akka.actor.default-dispatcher 
    table-name : _SnapshotStore 
    schema-name : dbo 
    auto-initialize : on 
    connection-string : "Data Source=XX.XX.16.XX;Initial Catalog=ECHO3DEV;Integrated Security=True" 
) 
Cause: [akka://ECHO3DEV/system/akka.persistence.snapshot-store.sql-server#1885464091]: Akka.Actor.ActorInitializationException: Exception during creation ---> System.TypeLoadException: Error while creating actor instance of type Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore with 1 args: ( class : "Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore, Akka.Persistence.SqlServer" 
    plugin-dispatcher : akka.actor.default-dispatcher 
    table-name : _SnapshotStore 
    schema-name : dbo 
    auto-initialize : on 
    connection-string : "Data Source=XX.XX.16.XX;Initial Catalog=ECHO3DEV;Integrated Security=True" 
) ---> **System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void Akka.Persistence.Sql.Common.Snapshot.QueryConfiguration..ctor(System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.TimeSpan)**'. 
    at Akka.Persistence.SqlServer.Snapshot.SqlServerSnapshotStore..ctor(Config config) 
    --- End of inner exception stack trace --- 
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 
    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) 
    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) 
    at System.Activator.CreateInstance(Type type, Object[] args) 
    at Akka.Actor.Props.ActivatorProducer.Produce() 
    at Akka.Actor.Props.NewActor() 
    --- End of inner exception stack trace --- 
    at Akka.Actor.Props.NewActor() 
    at Akka.Actor.ActorCell.CreateNewActorInstance() 
    at Akka.Actor.ActorCell.<>c__DisplayClass109_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.SysMsgInvokeAll(EarliestFirstSystemMessageList messages, Int32 currentState) 
[ERROR][9/7/2017 1:44:56 PM][Thread 0007][akka://ECHO3DEV/system/akka.persistence.journal.sql-server] Error while creating actor instance of type Akka.Persistence.SqlServer.Journal.SqlServerJournal with 1 args: ( class : "Akka.Persistence.SqlServer.Journal.SqlServerJournal, Akka.Persistence.SqlServer" 
    plugin-dispatcher : akka.actor.default-dispatcher 
    connection-string : "Data Source=XX.XX.16.XX;Initial Catalog=ECHO3DEV;Integrated Security=True" 
    connection-timeout : 30s 
    schema-name : dbo 
    table-name : _EventJournal 
    auto-initialize : on 
    timestamp-provider : "Akka.Persistence.Sql.Common.Journal.DefaultTimestampProvider, Akka.Persistence.Sql.Common" 
    metadata-table-name : _Metadata 
) 
Cause: [akka://ECHO3DEV/system/akka.persistence.journal.sql-server#578824267]: Akka.Actor.ActorInitializationException: Exception during creation ---> System.TypeLoadException: Error while creating actor instance of type Akka.Persistence.SqlServer.Journal.SqlServerJournal with 1 args: ( class : "Akka.Persistence.SqlServer.Journal.SqlServerJournal, Akka.Persistence.SqlServer" 
    plugin-dispatcher : akka.actor.default-dispatcher 
    connection-string : "Data Source=XX.XX.16.XX;Initial Catalog=ECHO3DEV;Integrated Security=True" 
    connection-timeout : 30s 
    schema-name : dbo 
    table-name : _EventJournal 
    auto-initialize : on 
    timestamp-provider : "Akka.Persistence.Sql.Common.Journal.DefaultTimestampProvider, Akka.Persistence.Sql.Common" 
    metadata-table-name : _Metadata 
) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Void Akka.Persistence.Sql.Common.Journal.QueryConfiguration..ctor(System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.String, System.TimeSpan)'. 
    at Akka.Persistence.SqlServer.Journal.SqlServerJournal..ctor(Config journalConfig) 
    --- End of inner exception stack trace --- 
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 
    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 
    at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) 
    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) 
    at System.Activator.CreateInstance(Type type, Object[] args) 
    at Akka.Actor.Props.ActivatorProducer.Produce() 
    at Akka.Actor.Props.NewActor() 
    --- End of inner exception stack trace --- 
    at Akka.Actor.Props.NewActor() 
    at Akka.Actor.ActorCell.CreateNewActorInstance() 
    at Akka.Actor.ActorCell.<>c__DisplayClass109_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. 
SysMsgInvokeAll(EarliestFirstSystemMessageList messages, Int32 currentState) 

回答

0

它看起來像你使用Akka.Persistence.SqlServer,這是不是最新的與Akka.Persistence V1.3還沒有 - 你可以跟蹤進度here

而且升級後,將需要執行一個更新腳本,如新SerializerId欄將被添加,它會附着一旦Akka.Persistence.SqlServer的新版本將準備 - 瞭解更多詳情閱讀v1.3.1 release notes

+0

那麼現在我該怎麼做?我應該將所有的AKKA.NET庫還原到舊版本還是僅僅是持久性部分?還有哪個舊版本最健壯且有效?謝謝 – tk1977tk

+0

對於那些有同樣問題的人:轉到Nuget管理器並將AKKA.NET降級到1.2.3(它會降級所有依賴的包)。另外,如果您使用Hyperion串行器將其降級到0.92 – tk1977tk