事件存储区RavenDB持久性JsonReaderException [英] EventStore & RavenDB Persistence JsonReaderException

查看:142
本文介绍了事件存储区RavenDB持久性JsonReaderException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过 JOliver的EventStore rel ="nofollow"> RavenDB 并遇到一个障碍. 我在Raven中创建了一个名为RavenEventStore的新数据库.

Trying to wire up JOliver's EventStore with RavenDB and hit a snag. I created a new DB in Raven called RavenEventStore.

以下是我的报道;

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

调用Wireup.Init()时,此异常发生在RavenDb一侧;

When the Wireup.Init() is called, this exception is occuring on the RavenDb side;

网址:"/indexes/RavenCommitByDate" Newtonsoft.Json.JsonReaderException:解析值时遇到意外字符:.第1行,位置1. 在d:\ Development \ Releases \ Json \ Working \ Src \ Newtonsoft.Json \ JsonTextReader.cs:line 699中的Newtonsoft.Json.JsonTextReader.ParseValue(Char currentChar)中 在d:\ Development \ Releases \ Json \ Working \ Src \ Newtonsoft.Json \ JsonTextReader.cs:line 499中的Newtonsoft.Json.JsonTextReader.ReadInternal() 在d:\ Development \ Releases \ Json \ Working \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalReader.cs:line 1072中的Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader,Type t,JsonConverter propertyConverter)中 在d:\ Development \ Releases \ Json \ Working \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalReader.cs:line 118中的Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader,Type objectType)处 在c:\ Builds \ raven \ Raven.Database \ Extensions \ HttpExtensions.cs:line 57中的Raven.Database.Extensions.HttpExtensions.ReadJsonObject [T](IHttpContext上下文) 在Raven.Database.Server.Responders.Index.Put(IHttpContext上下文,字符串索引)在c:\ Builds \ raven \ Raven.Database \ Server \ Responders \ Index.cs:第64行 在Raven.Database.Server.Responders.Index.Respond(IHttpContext上下文)中的c:\ Builds \ raven \ Raven.Database \ Server \ Responders \ Index.cs:第49行 在c:\ Builds \ raven \ Raven.Database \ Server \ HttpServer.cs:line 477中的Raven.Database.Server.HttpServer.DispatchRequest(IHttpContext ctx) 在c:\ Builds \ raven \ Raven.Database \ Server \ HttpServer.cs:line 259的Raven.Database.Server.HttpServer.HandleActualRequest(IHttpContext ctx)中

Url: "/indexes/RavenCommitByDate" 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

我也可以在RavenDB日志中看到该异常;

I can see the exception in the RavenDB log as well;

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

I have attempted to eliminate all possibilities by removing the UsingAsynchronousDispatchScheduler() method as well and incur the same error. The code I am using is strictly from the Example located here: https://github.com/joliver/EventStore/blob/master/doc/EventStore.Example/MainProgram.cs

有人经历过吗?在Google上也找不到任何内容.

Has anyone experienced this? Have failed to find anything on Google as well.

推荐答案

Ryan, 您正在使用带有旧客户端(888之前的版本)和新客户端(888或更高版本)的服务器

Ryan, You are using an older server (pre 888) with a new client (888 or later)

这篇关于事件存储区RavenDB持久性JsonReaderException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆