You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2021/11/15 17:55:00 UTC

[jira] [Commented] (IGNITE-15845) .NET: CreateCache fails - Invalid array specification

    [ https://issues.apache.org/jira/browse/IGNITE-15845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17444003#comment-17444003 ] 

Igor Sapego commented on IGNITE-15845:
--------------------------------------

[~ptupitsyn] looks good to me.

> .NET: CreateCache fails - Invalid array specification
> -----------------------------------------------------
>
>                 Key: IGNITE-15845
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15845
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>              Labels: .NET
>             Fix For: 2.13
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Ignition.Start fails with an exception:
> {code}
> Failure in Java callback Apache.Ignite.Core.Common.IgniteException: Invalid array specification: MassTransit.Initializers.PropertyConverters.MessageDataPropertyConverter+<MassTransit-Initializers-IPropertyConverter<MassTransit-MessageData<System-Byte\[\]>\,MassTransit-MessageData<System-String>>-Convert>d__4`1
>    at Apache.Ignite.Core.Impl.Binary.TypeNameParser.ParseArrayDefinition()
>    at Apache.Ignite.Core.Impl.Binary.TypeNameParser.Parse()
>    at Apache.Ignite.Core.Impl.Binary.TypeNameParser..ctor(String typeName, Int32& pos)
>    at Apache.Ignite.Core.Impl.Binary.TypeNameParser.Parse(String typeName)
>    at Apache.Ignite.Core.Binary.BinaryBasicNameMapper.GetTypeName(String name)
>    at Apache.Ignite.Core.Impl.Binary.TypeResolver.<>c__DisplayClass8_0.<FindType>b__0(Type x)
>    at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
>    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
>    at Apache.Ignite.Core.Impl.Binary.TypeResolver.FindType(Assembly asm, String typeName, IBinaryNameMapper mapper)
>    at Apache.Ignite.Core.Impl.Binary.TypeResolver.<>c__DisplayClass4_0.<ResolveNonGenericType>b__1(Assembly a)
>    at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
>    at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
>    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
>    at Apache.Ignite.Core.Impl.Binary.TypeResolver.ResolveNonGenericType(String assemblyName, String typeName, ICollection`1 assemblies, IBinaryNameMapper nameMapper)
>    at Apache.Ignite.Core.Impl.Binary.TypeResolver.ResolveType(String assemblyName, TypeNameParser typeName, ICollection`1 assemblies, IBinaryNameMapper nameMapper)
>    at Apache.Ignite.Core.Impl.Binary.TypeResolver.ResolveType(String typeName, String assemblyName, IBinaryNameMapper nameMapper)
>    at Apache.Ignite.Core.Impl.Binary.Marshaller.ResolveType(String typeName)
>    at Apache.Ignite.Core.Impl.Binary.Marshaller.GetDescriptor(Boolean userType, Int32 typeId, Boolean requiresType, String typeName, Type knownType)
>    at Apache.Ignite.Core.Impl.Binary.Marshaller.GetDescriptor(String typeName, Boolean requiresType)
>    at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.<>c__DisplayClass98_0.<BinaryTypeGet>b__0()
>    at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.SafeCall[T](Func`1 func, Boolean allowUnitialized)
> {code}
> 1. ResolveNonGenericType should skip all generic types when scanning assemblies
> 2. ParseArrayDefinition should be fixed
> *Workaround*
> Register SQL key and value types manually before starting the cache:
> {code}
> ignite.GetBinary().GetBinaryType(typeof(TKey));
> ignite.GetBinary().GetBinaryType(typeof(TValue));
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)