1

JOliver の EventStoreRavenDBと結び付けようとして、問題が発生しました。RavenEventStore という Raven で新しい DB を作成しました。

以下は私のワイヤーアップです。

return Wireup.Init()
           .UsingRavenPersistence("RavenEventStore")
             .UsingAsynchronousDispatchScheduler()
                .DispatchTo(new DelegateMessageDispatcher(DispatchCommit))
           .Build();

Wireup.Init() が呼び出されると、この例外は RavenDb 側で発生します。

Url: "/indexes/RavenCommitByDate" Newtonsoft.Json.JsonReaderException: 値の解析中に予期しない文字が検出されました: 。行 1、位置 1。d:\Development\Releases\Json\Working\Src\Newtonsoft.Json\JsonTextReader.cs: の Newtonsoft.Json.JsonTextReader.ParseValue(Char currentChar) で: Newtonsoft.Json.JsonTextReader.ReadInternal の 699 行目() in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json\JsonTextReader.cs:499行目 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, Type t, JsonConverter propertyConverter) in d:\ Development\Releases\Json\Working\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs: d の Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader リーダー、タイプ objectType) の 1072 行目:

RavenDB ログにも例外が表示されます。

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: . Line 1, position 1.   at Newtonsoft.Json.JsonTextReader.ParseValue(Char currentChar) in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json\JsonTextReader.cs:line 699 at Newtonsoft.Json.JsonTextReader.ReadInternal() in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json\JsonTextReader.cs:line 499 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, Type t, JsonConverter propertyConverter) in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 1072 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType) in d:\Development\Releases\Json\Working\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 118 at Raven.Database.Extensions.HttpExtensions.ReadJsonObject[T](IHttpContext context) in c:\Builds\raven\Raven.Database\Extensions\HttpExtensions.cs:line 57 at Raven.Database.Server.Responders.Index.Put(IHttpContext context, String index) in c:\Builds\raven\Raven.Database\Server\Responders\Index.cs:line 64 at Raven.Database.Server.Responders.Index.Respond(IHttpContext context) in c:\Builds\raven\Raven.Database\Server\Responders\Index.cs:line 49 at Raven.Database.Server.HttpServer.DispatchRequest(IHttpContext ctx) in c:\Builds\raven\Raven.Database\Server\HttpServer.cs:line 477 at Raven.Database.Server.HttpServer.HandleActualRequest(IHttpContext ctx) in c:\Builds\raven\Raven.Database\Server\HttpServer.cs:line 259

UsingAsynchronousDispatchScheduler() メソッドも削除して、すべての可能性を排除しようとしましたが、同じエラーが発生しました。私が使用しているコードは、 https ://github.com/joliver/EventStore/blob/master/doc/EventStore.Example/MainProgram.cs にある例に厳密に基づいています。

誰もこれを経験しましたか?Google でも何も見つかりませんでした。

4

2 に答える 2

5

ライアン、古いサーバー (888 より前) と新しいクライアント (888 以降) を使用しています。

于 2012-05-06T06:40:16.897 に答える
0

あなたの問題はこれに似ているかもしれません: EventStore + RavenDB、デシリアライズが正しくない

また、新しいバージョンの Raven に対して新しいリリースをリリースできるようになるまで、Oren が提案したように、Raven ビルド 888 (またはそれ以降) に対してカスタム ビルドを使用することを強くお勧めします。

于 2012-05-07T15:45:35.163 に答える