- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
正在尝试连接 JOliver's EventStore与 RavenDB并遇到障碍。我在 Raven 中创建了一个名为 RavenEventStore 的新数据库。
以下是我的线路;
return Wireup.Init()
.UsingRavenPersistence("RavenEventStore")
.UsingAsynchronousDispatchScheduler()
.DispatchTo(new DelegateMessageDispatcher(DispatchCommit))
.Build();
调用Wireup.Init()时,RavenDb端出现此异常;
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 日志中看到异常;
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 上找到任何内容。
最佳答案
赖安,您正在使用旧服务器(888 之前)和新客户端(888 或更高版本)
关于c# - EventStore 和 RavenDB 持久化 JsonReaderException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10455823/
我正在使用 EventKit 的 EKEventStore,我想模拟它和 EKEvent。但是我不知道如何正确抽象EKEvent's init(eventStore: EKEventStore) 和其
我在我的应用程序中使用 EventStore,目前想部署在我们的一个产品环境中。当我在我的电脑上开发时,EventStore 启动时没有任何问题。当我想在我们的产品服务器上启动它时,问题就来了。 Ev
我正在尝试评估 EventStore就像服务器软件内部的可靠排队机制一样。 MSMQ 作为替代方案失败了,因为它不能支持部分排序,消息“对话”中的有序消息。并且由于它的 4MB 消息大小限制(可以
我已经开始在 .Net 中创建一个测试应用程序,它使用 Greg Young 的 EventStore 作为 CQRS/ES 的后备存储。 为了方便加载完整的聚合,我保存到一个名为“agg-123”的
我想问问您的意见,以及您认为使用 ElasticSearch 作为 EventStore 的利弊。 我想听听是否有人有使用 ElasticSearch 作为事件存储的经验,以及结果、可靠性以及是否存在
我已经关注 Event Store 一段时间了,困扰我的一件事是何时应该考虑编写投影?创建扁平投影是常见的做法吗? The setup here is using a stream per aggre
对于我的罪过,我负责存储个人身份信息和可能受 HIPAA 保护的数据的数据库。 因此,这些数据在传输过程中和静止时都需要加密存储。 我们目前使用 MSSQL Enterprise 和 TDE。 我们正
我们正在使用 axon 框架版本 3.4.2,并在我们的代码中发现了一个错误。该错误与未发布的缺失事件有关。解决方案是修复代码,但这不会修复事件存储和 View 。 我的问题是如何解决这个问题?我们考
我在看 2 个场景:A 没问题,B 不确定。 场景A:模拟提交后、分派(dispatch)前的应用程序重启 启动EventStore 提交更改 事件未发送 停止事件商店 启动事件存储 在第 5 步中再
如果我想根据存储在 ES 中的所有历史事件填充新的 Viewmodel,我该怎么做? 我可以看到 IPersistStreams.GetFrom(DateTime)但是一口气把它们全部搞定似乎有点吓人
任何人都可以解释为什么 EventStore 有 2 个实际版本(20.6.1 和 5.0.9)? 它们之间有什么区别? 我们应该为什么目标使用什么版本? 最佳答案 20.x 和 5.x 之间的主要区
也许这个问题很愚蠢,但我有点困惑。 假设我们想要利用这种模式: 企业应用程序中的事件存储范围究竟是什么? 事件存储是在多个进程之间共享,还是只是一个进程内概念? 当应用程序关闭时,事件会发生什么?它们
使用 JOliver EventStore 3.0 并从 NServiceBus 接收命令,处理并发异常的正确方法是什么?如果我有多个工作线程,这可能是一种常见的情况。 选项 1 try {
谁能给我指点EventStore带有源代码的示例应用程序? 我正在学习事件存储并想查看引用实现。 最佳答案 很多这样的东西似乎都缺乏功能齐全的示例项目。到目前为止,我发现的 EventStore/Co
顺便说一句,你如何创建一个流? I use AppendToStreamAsync directly, is this right or shall I create a stream first t
我目前正在开始使用 EventStore我正在关注 Getting Started指导。我只是卡在第一步,不知道我做错了什么...... 我现在使用的版本是 20.6.0 . 我正在尝试使用 .NET
如何访问 EventStore 中存储的所有事件以重建我的读取模型? 在问题 J Oliver EventStore V2.0 questions 中提到了一个名为 GetFrom 的方法,但我在 W
是否可以不通过 StreamId 而通过其他 Stream 属性来搜索流?例如,如果每个流的 header 中都有 CustomerId,我想搜索具有特定 CustomerId 的所有流。 最佳答案
我试图弄清楚我的事件存储和我的读取模型在实际具体实现方面是如何相关的。 我对事件存储的有限了解使我相信: 事件提交给事件存储 调度员运行 如果我使用队列,我会将消息发送到队列(比方说公共(public
关闭。这个问题是opinion-based .它目前不接受答案。 想要改进这个问题吗? 更新问题,以便 editing this post 提供事实和引用来回答它. 关闭 6 年前。 Improve
我是一名优秀的程序员,十分优秀!