首页 文章

刚刚将RavenDB更新为rev . 转发2230 960并且在调用session.SaveChanges()时我有JsonSerialization异常

提问于
浏览
1

我有点急于测试Ayende刚刚上线的RavenDB的正式版本,在我的项目(link to Github)中更新之后,我被这个例外(长堆栈跟踪的sry)吓到了 . 有没有人知道可能导致它的原因?

从'System.Net.IPAddress'上的'ScopeId'获取值时出错 . 在Raven.Imports.Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(对象目标)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ DynamicValueProvider.cs:第108行在Raven .Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer,Object value,JsonObjectContract contract,JsonProperty member,JsonContainerContract collectionContract,JsonProperty containerProperty)in c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft .Json \ Serialization \ JsonSerializerInternalWriter.cs:位于c:\ Builds \的Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerProperty)的第364行RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:Raven.Imports.Newtonsoft.Json.Seriali第123行zation.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer,Object value,JsonObjectContract contract,JsonProperty member,JsonContainerContract collectionContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter中 . cs:第364行在Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerProperty)中c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft .Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer,Object value,JsonObjectContract contract,JsonProperty member,JsonContainerContract collectionContract,JsonProperty containerProperty)第123行在c:\ Builds \ RavenDB-Stable \ Imports \ Newton中soft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue的第364行(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerProperty )在Ra:.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer,Object)中的c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:第123行值,JsonObjectContract Contract ,JsonProperty成员,JsonContainerContract collectionContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:第364行Raven.Imports.Newtonsoft .Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty m ember,JsonContainerContract containerContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:第123行在Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter .SerializeObject(JsonWriter编写器,Object值,JsonObjectContract Contract ,JsonProperty成员,JsonContainerContract collectionContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:line 364在Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerProperty)中c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:Raven.Imports.Newtonsoft.Json.Serializati第123行on.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer,Object value,JsonObjectContract contract,JsonProperty成员,JsonContainerContract collectionContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter中 . cs:第364行Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty成员,JsonContainerContractcontainerContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:第123行在Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject( JsonWriter编写器,Object值,JsonObjectContract Contract ,JsonProperty成员,JsonContainerContract collectionContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:第364行在Raven .Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer,Object value,JsonContract valueContract,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerProperty)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft中.Json \ Serialization \ JsonSerializerInternalWriter.cs:Raven.Imports.Newtonsoft.Json.Serialization.JsonSerializerInternalWrit的第123行er.Serialize(JsonWriter jsonWriter,Object value)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ Serialization \ JsonSerializerInternalWriter.cs:第61行Raven.Imports.Newtonsoft.Json.JsonSerializer .SerializeInternal(JsonWriter jsonWriter,Object value)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ JsonSerializer.cs:第608行Raven.Imports.Newtonsoft.Json.JsonSerializer.Serialize( JsonWriter jsonWriter,Object value)在c:\ Builds \ RavenDB-Stable \ Imports \ Newtonsoft.Json \ Src \ Newtonsoft.Json \ JsonSerializer.cs:第580行在Raven.Json.Linq.RavenJToken.FromObjectInternal(Object o,JsonSerializer jsonSerializer) )在c:\ Builds \ RavenDB-Stable \ Raven.Abstractions \ Json \ Linq \ RavenJToken.cs:第80行,位于c:\ Builds \ RavenDB-中的Raven.Json.Linq.RavenJObject.FromObject(Object o,JsonSerializer jsonSerializer) Stable \ Raven.Abstractions \ Json \ Linq \ RavenJObject.cs:位于c:\ Builds \ RavenDB-S中Raven.Client.Document.EntityToJson.GetObjectAsJson(对象实体)的第156行table \ Raven.Client.Lightweight \ Document \ EntityToJson.cs:第63行,位于c:\ Builds \ RavenDB-Stable \ Raven.Client中的Raven.Client.Document.EntityToJson.ConvertEntityToJson(String key,Object entity,RavenJObject metadata) . 轻量级\ Document \ EntityToJson.cs:第35行,位于c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Document \ InMemoryDocumentSessionOperations.cs中的Raven.Client.Document.InMemoryDocumentSessionOperations.EntityChanged(Object entity,DocumentMetadata documentMetadata) 876 at Raven.Client.Document.InMemoryDocumentSessionOperations.b__10(KeyValuePair2 pair)in c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Document \ InMemoryDocumentSessionOperations.cs:line 739 at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext( )System.Linq.Buffer1..ctor(IEnumerable1 source)at System.Linq.Enumerable.ToArray [TSource](IEnumerable1 source)at Raven.Client.Document.InMemoryDocumentSessionOperations.PrepareForEntitiesPuts(SaveChangesData result)in c:\ Builds \ RavenDB - 稳定的\ Raven.Cl ient.Lightweight \ Document \ InMemoryDocumentSessionOperations.cs:第7行位于Raven.Client.Document.InMemoryDocumentSessionOperations.PrepareForSaveChanges()中的c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Document \ InMemoryDocumentSessionOperations.cs:第732行位于Raven .Client.Document.DocumentSession.SaveChanges()位于c:\ Builds \ RavenDB-Stable \ Raven.Client.Lightweight \ Document \ DocumentSession.cs:第483行,位于d:\ Github \中的Dem2Server.EntityRepository.StoreToDB(ServerClientEntity实体) Democracy-2.0 \ Dem2Server \ Dem2Server \ EntityRepository.cs:第二行:Dem2Server.EntityRepository.Add(ServerClientEntity实体)位于d:\ Github \ Democracy-2.0 \ Dem2Server \ Dem2Server \ EntityRepository.cs:第87行Dem2Model.User.LogInUser d:\ Github \ Democracy-2.0 \ Dem2Server \ Dem2Server \ user.cs中的字符串FBgraphJSON:d:\ Github \ Democracy-2.0 \ Dem2Server \ Dem2Server中Dem2Server.Dem2Hub.ResolveMessage(字符串消息,IWebSocketConnection套接字)的第171行\ Dem2Hub.cs:Dem2Server.dem2的第74行 . <> c__DisplayClass8 . <> c__ dCr中的DisplayClassa . <Main> b__7(字符串消息):Demine-2.0 \ Dem2Server \ Dem2Server \ dem2.cs:Fleck.WebSocketServer上的第100行 . <> c__DisplayClass8 . <OnClientConnect> b__4(String s)在Fleck . Handler.Hybi13Handler.ProcessFrame(FrameType frameType,Byte [] data,Action1 onMessage,Action onClose,Action1 onBinary)在Fleck.Handlers.Hybi13Handler . <> c__DisplayClassa . <Create> b__6(FrameType op,Byte [] data)在Fleck . Handler.Hybi13Handler.ReceiveData(List1数据,ReadState readState,Action2 processFrame)在Fleck.WebSocketConnection的Fleck.Handlers.Hybi13Handler . <> c__DisplayClassa . <Create> b__5(List1 d)在Fleck.Handlers.ComposableHandler.Receive(IEnumerable1数据)处 . <> c__DisplayClassb . <读取> b__a(Int32 r)在Fleck.SocketWrapper . <> c__DisplayClasse . <Receive> b__8(Task1 t)在System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()处于System.Threading.Tasks .Task.Execute()

1 回答

相关问题