You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2022/08/25 03:58:00 UTC

[jira] (IGNITE-17299) .NET: The constructor to deserialize an object of type 'System.OrdinalCaseSensitiveComparer' was not found

    [ https://issues.apache.org/jira/browse/IGNITE-17299 ]


    Pavel Tupitsyn deleted comment on IGNITE-17299:
    -----------------------------------------

was (Author: ignitetcbot):
{panel:title=Branch: [pull/10214/head] Base: [master] : Possible Blockers (13)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}Cache 6{color} [[tests 0 TIMEOUT , Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=6746717]]

{color:#d04437}Platform .NET (Windows){color} [[tests 4|https://ci.ignite.apache.org/viewLog.html?buildId=6746781]]
* exe: CancellationTest.TestJavaTask - Test has low fail rate in base branch 0,0% and is not flaky
* exe: Serialization.JsonPropertyCollection) - History for base branch is absent.
* exe: BasicSerializableObjectsTest.TestAllSerializableSystemTypes(0) - History for base branch is absent.
* exe: BasicSerializableObjectsTest.TestAllSerializableSystemTypes((0, 0)) - History for base branch is absent.

{color:#d04437}Cache 5{color} [[tests 2 TIMEOUT , Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=6746716]]
* IgniteCacheTestSuite5: GridExchangeFreeCellularSwitchComplexOperationsTest.testComplexOperationsRecoveryOnCellularSwitch[Isolation = OPTIMISTIC, Concurrency = SERIALIZABLE, Started from = CLIENT] - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheTestSuite5: GridExchangeFreeCellularSwitchComplexOperationsTest.testComplexOperationsRecoveryOnCellularSwitch[Isolation = PESSIMISTIC, Concurrency = READ_COMMITTED, Started from = FAILED] - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Basic 1{color} [[tests 0 Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=6746703]]

{color:#d04437}Cache 12{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6746711]]
* IgniteCacheTestSuite12: GracefulShutdownTest.testRollingRestartEmulationReplicatedCache - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}PDS 4{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6746769]]
* IgnitePdsTestSuite4: IgnitePdsContinuousRestartTestWithSharedGroupAndIndexes.testRebalancingDuringLoad_1000_500_8_16 - Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Queries 1{color} [[tests 0 TIMEOUT , Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=6746782]]

{color:#d04437}Platform C++ CMake (Win x64 / Release){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6746777]]
* IgniteCoreTest: CacheTestSuiteNativePersistence: TestWal - Test has low fail rate in base branch 0,0% and is not flaky

{panel}
{panel:title=Branch: [pull/10214/head] Base: [master] : New Tests (465)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Platform .NET (Windows){color} [[tests 236|https://ci.ignite.apache.org/viewLog.html?buildId=6746781]]
* {color:#013220}exe: Int32,System.String]) - PASSED{color}
* {color:#013220}exe: Queue`1[System.Int64]) - PASSED{color}
* {color:#013220}exe: Single,System.Double]) - PASSED{color}
* {color:#013220}exe: String,System.String]) - PASSED{color}
* {color:#013220}exe: BasicSerializableObjectsTest.TestAllSerializableSystemTypes([0, 0]) - PASSED{color}
* {color:#013220}exe: KeyNotFoundException&lt;colon&gt; The given key was not present in the dictionary.) - PASSED{color}
* {color:#013220}exe: List`1[System.Single]) - PASSED{color}
* {color:#013220}exe: LinkedList`1[System.Int32]) - PASSED{color}
* {color:#013220}exe: Collections.DictionaryEntry) - PASSED{color}
* {color:#013220}exe: Collections.Comparer) - PASSED{color}
* {color:#013220}exe: HashSet`1[System.Int32]) - PASSED{color}
... and 225 new tests

{color:#00008b}Platform .NET (Core Linux){color} [[tests 229|https://ci.ignite.apache.org/viewLog.html?buildId=6746780]]
* {color:#013220}dll: TestAllSerializableSystemTypes(System.AccessViolationException - PASSED{color}
* {color:#013220}dll: RuntimeBinder.RuntimeBinderInternalCompilerException - PASSED{color}
* {color:#013220}dll: TestAllSerializableSystemTypes(System.AppDomainUnloadedException - PASSED{color}
* {color:#013220}dll: TestAllSerializableSystemTypes(System.AggregateException - PASSED{color}
* {color:#013220}dll: RuntimeBinder.RuntimeBinderException - PASSED{color}
* {color:#013220}dll: Collections.Hashtable) - PASSED{color}
* {color:#013220}dll: Stack`1[System.Int32]) - PASSED{color}
* {color:#013220}dll: Serialization.JsonPropertyCollection) - PASSED{color}
* {color:#013220}dll: Collection`1[System.Int32]) - PASSED{color}
* {color:#013220}dll: String,System.String]) - PASSED{color}
* {color:#013220}dll: Int32,System.String]) - PASSED{color}
... and 218 new tests

{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=6746812&amp;buildTypeId=IgniteTests24Java8_RunAll]

> .NET: The constructor to deserialize an object of type 'System.OrdinalCaseSensitiveComparer' was not found
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-17299
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17299
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.13
>         Environment: NET 5.0, Apache Ignite 2.13, Newtonsoft.Json 13.0.1
>            Reporter: Vadim Alekseev
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: .NET
>             Fix For: 2.14
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> We have a model created with Nswag. The model has additional properties, by which all unknown fields are parsed.
> {code:java}
> private System.Collections.Generic.IDictionary<string, object> _additionalProperties = new System.Collections.Generic.Dictionary<string, object>();
> [Newtonsoft.Json.JsonExtensionData]
> public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
> {
>     get { return _additionalProperties; }
>     set { _additionalProperties = value; }
> } {code}
> If the nested model is saved in additional properties, it is saved as KeyValuePair<string, object>. The object is a JArray containing a JObject.
> When writing data to the cache, everything is fine. But when retrieving data from the cache an error occurs: 
>  
> *The constructor to deserialize an object of type 'System.OrdinalCaseSensitiveComparer' was not found.*
>  
> Stack Trace:
> {code:java}
>  at Apache.Ignite.Core.Impl.Common.SerializableTypeDescriptor.get_SerializationCtorUninitialized()   at Apache.Ignite.Core.Impl.Binary.SerializableSerializer.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at Apache.Ignite.Core.Impl.Binary.SerializableSerializer.ReadSerializationInfo(BinaryReader reader, IEnumerable`1 fieldNames, Type type, ICollection`1 dotNetFields)   at Apache.Ignite.Core.Impl.Binary.SerializableSerializer.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at lambda_method1688(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at lambda_method1682(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at lambda_method1293(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryUtils.ReadArray[T](BinaryReader ctx, Boolean typed)   at lambda_method1294(Closure , BinaryReader , Boolean )   at Apache.Ignite.Core.Impl.Binary.BinaryUtils.ReadTypedArray(BinaryReader ctx, Boolean typed, Type elementType)   at Apache.Ignite.Core.Impl.Binary.BinarySystemHandlers.ReadArray(BinaryReader ctx, Type type)   at Apache.Ignite.Core.Impl.Binary.BinarySystemHandlers.TryReadSystemType[T](Byte typeId, BinaryReader ctx, T& res)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at Apache.Ignite.Core.Impl.Binary.SerializableSerializer.ReadSerializationInfo(BinaryReader reader, IEnumerable`1 fieldNames, Type type, ICollection`1 dotNetFields)   at Apache.Ignite.Core.Impl.Binary.SerializableSerializer.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at lambda_method1660(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryUtils.ReadArray[T](BinaryReader ctx, Boolean typed)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.<>c__66`1.<ReadArray>b__66_0(BinaryReader r)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.<>c__DisplayClass99_0`1.<Read>b__0()   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Read[T](Func`1 readFunc, Byte expHdr)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Read[T](Func`2 readFunc, Byte expHdr)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadField[T](String fieldName, Func`2 readFunc, Byte expHdr)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadArray[T](String fieldName)   at lambda_method1244(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadObject[T](String fieldName)   at lambda_method1178(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryUtils.ReadArray[T](BinaryReader ctx, Boolean typed)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.<>c__66`1.<ReadArray>b__66_0(BinaryReader r)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.<>c__DisplayClass99_0`1.<Read>b__0()   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Read[T](Func`1 readFunc, Byte expHdr)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Read[T](Func`2 readFunc, Byte expHdr)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadField[T](String fieldName, Func`2 readFunc, Byte expHdr)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadArray[T](String fieldName)   at lambda_method1170(Closure , Object , IBinaryReader )   at Apache.Ignite.Core.Impl.Binary.BinaryReflectiveSerializerInternal.Apache.Ignite.Core.Impl.Binary.IBinarySerializerInternal.ReadBinary[T](BinaryReader reader, IBinaryTypeDescriptor desc, Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadFullObject[T](Int32 pos, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.ReadBinaryObject[T](Boolean doDetach)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.TryDeserialize[T](T& res, Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.BinaryReader.Deserialize[T](Type typeOverride)   at Apache.Ignite.Core.Impl.Binary.Marshaller.Unmarshal[T](IBinaryStream stream, BinaryMode mode, BinaryObjectBuilder builder)   at Apache.Ignite.Core.Impl.Binary.Marshaller.Unmarshal[T](IBinaryStream stream, Boolean keepBinary)   at Apache.Ignite.Core.Impl.Client.Cache.CacheClient`2.UnmarshalNotNull[T](ClientResponseContext ctx)   at Apache.Ignite.Core.Impl.Client.Cache.CacheClient`2.<Get>b__14_0(ClientResponseContext ctx)   at Apache.Ignite.Core.Impl.Client.ClientSocket.DecodeResponse[T](BinaryHeapStream stream, Func`2 readFunc, Func`3 errorFunc)   at Apache.Ignite.Core.Impl.Client.ClientSocket.DoOutInOp[T](ClientOp opId, Action`1 writeAction, Func`2 readFunc, Func`3 errorFunc)   at Apache.Ignite.Core.Impl.Client.ClientFailoverSocket.DoOutInOpAffinity[T,TKey](ClientOp opId, Action`1 writeAction, Func`2 readFunc, Int32 cacheId, TKey key, Func`3 errorFunc)   at Apache.Ignite.Core.Impl.Client.Cache.CacheClient`2.DoOutInOpAffinity[T](ClientOp opId, TK key, Func`2 readFunc)   at Apache.Ignite.Core.Impl.Client.Cache.CacheClient`2.Get(TK key)   at ApacheIgniteTestConsoleApp.IgniteCacheProvider.GetCachedOrLoad[T](String tag, Object cacheKey, Func`1 cacheMissFunc, TimeSpan expirationTime, Int64 cacheSize) in    cache.Get(cacheKey); {code}
> is there a solution to this problem?
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)