Hi  Pavel,

We were upgrading  the Apache Ignite package to  2.17  and  we encountered  
below error.  This  is  not happening  with  Ignite 2.16 Nuget package.

Java version  installed  is  ( openjdk 11.0.16.1 2022-08-12 LTS
OpenJDK Runtime Environment Microsoft-40648 (build 11.0.16.1+1-LTS)
OpenJDK 64-Bit Server VM Microsoft-40648 (build 11.0.16.1+1-LTS, mixed mode)

<PackageReference Include="Apache.Ignite" Version="2.17.0" />
<PackageReference Include="Apache.Ignite.Linq" Version="2.17.0" />


Apache.Ignite.Core.Binary.BinaryObjectException
  HResult=0x80131500
  Message=Unexpected field type [pos=58, expected=String, actual=0]
  Source=Apache.Ignite.Core
  StackTrace:
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at 
Barclays.EM.RealTime.Api.Cache.Service.ServiceCollectionExtension.<>c.<AddIgniteCache>b__0_1(IServiceProvider
 sp) in 
C:\RealTime.Api.Cache.Service\barclays.em.realtime.api.cache.service\Barclays.EM.RealTime.Api.Cache.Service\ServiceCollectionExtension.cs:line
 85
   at 
Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite
 callSite, RuntimeResolverContext context)
   at 
Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite
 callSite, TArgument argument)
   at 
Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite
 enumerableCallSite, RuntimeResolverContext context)
   at 
Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite
 callSite, RuntimeResolverContext context)
   at 
Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite
 callSite, TArgument argument)
   at 
Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite
 callSite, ServiceProviderEngineScope scope)
   at 
Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type
 serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, 
Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type 
serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at 
Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider
 provider, Type serviceType)
   at 
Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices(IServiceProvider
 provider, Type serviceType)
   at 
Barclays.EM.RealTime.Api.Cache.Service.WarmUpServiceStartUpTask.ExecuteAsync(CancellationToken
 cancellationToken) in 
C:\RealTime.Api.Cache.Service\barclays.em.realtime.api.cache.service\Barclays.EM.RealTime.Api.Cache.Service\WarmUpServiceStartUpTask.cs:line
 21
   at 
Barclays.EM.RealTime.Api.Cache.Service.TaskExecutingServer.<StartAsync>d__3`1.MoveNext()
 in 
C:\RealTime.Api.Cache.Service\barclays.em.realtime.api.cache.service\Barclays.EM.RealTime.Api.Cache.Service\TaskExecutingServer.cs:line
 24
   at 
Microsoft.AspNetCore.Hosting.GenericWebHostService.<StartAsync>d__37.MoveNext()
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNext()
   at 
Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
   at 
Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost 
host)
   at Microsoft.AspNetCore.Builder.WebApplication.Run(String url)
   at Program.<Main>$(String[] args) in 
C:\RealTime.Api.Cache.Service\barclays.em.realtime.api.cache.service\Barclays.EM.RealTime.Api.Cache.Service\Program.cs:line
 85

  This exception was originally thrown at this call stack:
    Apache.Ignite.Core.Impl.Unmanaged.Jni.Env.ExceptionCheck()
    
Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils.IgnitionStart(Apache.Ignite.Core.Impl.Unmanaged.Jni.Env,
 string, string, bool, bool, long, bool)
    Apache.Ignite.Core.Ignition.Start(Apache.Ignite.Core.IgniteConfiguration)

Inner Exception 1:
JavaException: class org.apache.ignite.binary.BinaryObjectException: Unexpected 
field type [pos=58, expected=String, actual=0]
               at 
org.apache.ignite.internal.binary.BinaryReaderExImpl.checkFlagNoHandles(BinaryReaderExImpl.java:1694)
               at 
org.apache.ignite.internal.binary.BinaryReaderExImpl.readString(BinaryReaderExImpl.java:1058)
               at 
org.apache.ignite.internal.processors.platform.utils.PlatformConfigurationUtils.readIgniteConfiguration(PlatformConfigurationUtils.java:777)
               at 
org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetConfigurationClosure.processPrepareResult(PlatformDotNetConfigurationClosure.java:195)
               at 
org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetConfigurationClosure.prepare(PlatformDotNetConfigurationClosure.java:182)
               at 
org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetConfigurationClosure.apply0(PlatformDotNetConfigurationClosure.java:110)
               at 
org.apache.ignite.internal.processors.platform.PlatformAbstractConfigurationClosure.apply(PlatformAbstractConfigurationClosure.java:50)
               at 
org.apache.ignite.internal.processors.platform.PlatformAbstractConfigurationClosure.apply(PlatformAbstractConfigurationClosure.java:27)
               at 
org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:40)
               at 
org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:74)


Thanks
Satyajit



Restricted - External

Barclays Execution Services Limited registered in England. Registered No. 
1767980. Registered office: 1 Churchill Place, London, E14 5HP

Barclays Execution Services Limited provides support and administrative 
services across Barclays group. Barclays Execution Services Limited is an 
appointed representative of Barclays Bank UK plc and Barclays Bank plc. 
Barclays Bank UK plc and Barclays Bank plc are authorised by the Prudential 
Regulation Authority and regulated by the Financial Conduct Authority and the 
Prudential Regulation Authority. 

This email and any attachments are confidential and intended solely for the 
addressee and may also be privileged or exempt from disclosure under applicable 
law. If you are not the addressee, or have received this email in error, please 
notify the sender and immediately delete it and any attachments from your 
system. Do not copy, use, disclose or otherwise act on any part of this email 
or its attachments.

Internet communications are not guaranteed to be secure or virus-free. The 
Barclays group does not accept responsibility for any loss arising from 
unauthorised access to, or interference with, any internet communications by 
any third party, or from the transmission of any viruses. Replies to this email 
may be monitored by the Barclays group for operational or business reasons.

Any opinion or other information in this email or its attachments that does not 
relate to the business of the Barclays group is personal to the sender and is 
not given or endorsed by the Barclays group.

Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays.

Reply via email to