Thank you Pavel. After the code you posted ran with 2.17 on all machines, including the production cluster, but not on the main dev box I tried one more thing I hadn’t done yet: Looks like the ignite binaries of the dev machine were possibly corrupted. At least a reinstall fixed the issue... Thanks again and Best Regards, Ethan
-----Original Message----- From: Pavel Tupitsyn <ptupit...@apache.org> Sent: Thursday, 3 April 2025 10:57 To: jay.et...@gmx.de Cc: user@ignite.apache.org; satyajit.man...@barclays.com Subject: Re: Ignite 2.17 .NET error on startup. Ethan, 1. Make sure IGNITE_HOME is not set anywhere. Reboot to be sure. 2. dotnet new console 3. dotnet add package Apache.Ignite --version 2.17.0 4. Add Apache.Ignite.Core.Ignition.Start() to the code 5. dotnet run This should work. The problem is most likely with IGNITE_HOME in your case. On Thu, Apr 3, 2025 at 11:03 AM <jay.et...@gmx.de> wrote: > > That's interesting. I did that yesterday as well and since then get: > > "ClassName":"Apache.Ignite.Core.Common.IgniteException","Message":"Java class > is not found (did you set IGNITE_HOME environment variable?): > org/apache/ignite/internal/processors/platform/PlatformIgnition","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" > at Apache.Ignite.Core.Impl.Unmanaged.Jni.Env.FindClass(String name)\r\n > at Apache.Ignite.Core.Impl.Unmanaged.Jni.MethodId..ctor(Env env)\r\n at > Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm..ctor(IntPtr jvmPtr)\r\n at > Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetOrCreate(IList`1 options)\r\n > at Apache.Ignite.Core.Impl.IgniteManager.CreateJvm(IgniteConfiguration cfg, > ILogger log)\r\n at > Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration > cfg, ILogger log)\r\n at > Apache.Ignite.Core.Ignition.Start(IgniteConfiguration > cfg)\r\n,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Apache.Ignite.Core","WatsonBuckets":null > > I get this whether I set IGNITE_HOME env var statically (OS), dynamically > (init code of the project), or remove it from the system altogether and not > set it at all. > Happens on clean projects too. > Using versions up to 2.16 everything still works. > Current Java version: openJDK-17.0.9.9 (w JAVA_HOME set correctly) > > Any idea? > > Ethan > > > -----Original Message----- > From: satyajit.mandal.barclays.com via user > Sent: Thursday, 3 April 2025 05:17 > To: user@ignite.apache.org; ptupit...@apache.org > Subject: RE: Ignite 2.17 .NET error on startup. > > Hi Pavel, > > I removed the old Nuget package 2.15 for Apache.Ignite and > Apache.Ignite.Linq from all projects and reinstall the 2.17 version. > Did clean build and it worked. > > Also as part of deployment removed the wal , storage ,archive and > installation folders and did a clean deployment in servers and it > worked fine. > > Regards > Satyajit > > > Restricted - External > -----Original Message----- > From: Pavel Tupitsyn <ptupit...@apache.org> > Sent: Wednesday, April 2, 2025 6:29 PM > To: Mandal, Satyajit: IT (PUN) <satyajit.man...@barclays.com> > Cc: user@ignite.apache.org > Subject: Re: Ignite 2.17 .NET error on startup. > > CAUTION: This email originated from outside our organization - > user-return-36679-Satyajit.Mandal=barclays....@ignite.apache.org Do not > click on links, open attachments, or respond unless you recognize the sender > and can validate the content is safe. > > ______________________________________________________________________ > Hi Satyajit, could you please share the steps you followed to resolve the > issue on your side? > > On Wed, Apr 2, 2025 at 2:19 PM <satyajit.man...@barclays.com> wrote: > > > > Hi Pavel, > > > > Below error is resolved now. > > > > Regards > > Satyajit > > > > > > Restricted - External > > -----Original Message----- > > From: Pavel Tupitsyn <ptupit...@apache.org> > > Sent: Wednesday, April 2, 2025 12:30 PM > > To: user@ignite.apache.org > > Subject: Re: Ignite 2.17 .NET error on startup. > > > > CAUTION: This email originated from outside our organization - > > user-return-36677-Satyajit.Mandal=barclays....@ignite.apache.org Do not > > click on links, open attachments, or respond unless you recognize the > > sender and can validate the content is safe. > > > > ______________________________________________________________________ > > Looks like you have Java binaries from 2.16 and .NET binaries from 2.17. > > > > - Make sure that the IGNITE_HOME environment variable is not set, so that > > correct binaries are used from the NuGet package. > > - Do a clean build of your app - ensure that old binaries are not > > cached in bin/Debug or bin/Release > > > > On Wed, Apr 2, 2025 at 9:10 AM <jay.et...@gmx.de> wrote: > > > > > > Same here. Cannot move to 2.17 because of it. > > > > > > Tested with: > > > > > > OpenJDK 11.0.18 > > > > > > OpenJDK 15.0.2 > > > > > > OpenJDK 17.0.9 > > > > > > All result in: JavaException: class > > > org.apache.ignite.binary.BinaryObjectException: Unexpected field > > > type > > > > > > Found no solution so far. > > > > > > > > > > > > Ethan > > > > > > > > > > > > > > > > > > From: satyajit.mandal.barclays.com via user <user@ignite.apache.org> > > > Sent: Wednesday, 2 April 2025 05:15 > > > To: ptupit...@apache.org > > > Cc: user@ignite.apache.org > > > Subject: Ignite 2.17 .NET error on startup. > > > > > > > > > > > > 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 > > > \B > > > arclays.EM.RealTime.Api.Cache.Service\ServiceCollectionExtension.cs: > > > li > > > ne 85 > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRunti > > > me Resolver.VisitRootCache(ServiceCallSite callSite, > > > RuntimeResolverContext context) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisit > > > or `2.VisitCallSite(ServiceCallSite callSite, TArgument argument) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRunti > > > me Resolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, > > > RuntimeResolverContext context) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRunti > > > me Resolver.VisitRootCache(ServiceCallSite callSite, > > > RuntimeResolverContext context) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisit > > > or `2.VisitCallSite(ServiceCallSite callSite, TArgument argument) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRunti > > > me Resolver.Resolve(ServiceCallSite callSite, > > > ServiceProviderEngineScope > > > scope) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServi > > > ce > > > Accessor(Type serviceType) > > > > > > at > > > System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey > > > key, Func`2 valueFactory) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService( > > > Ty pe serviceType, ServiceProviderEngineScope > > > serviceProviderEngineScope) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExten > > > si ons.GetRequiredService(IServiceProvider provider, Type > > > serviceType) > > > > > > at > > > Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExten > > > si ons.GetServices(IServiceProvider provider, Type serviceType) > > > > > > at > > > Barclays.EM.RealTime.Api.Cache.Service.WarmUpServiceStartUpTask.Exec > > > ut eAsync(CancellationToken cancellationToken) in > > > C:\RealTime.Api.Cache.Service\barclays.em.realtime.api.cache.service > > > \B > > > arclays.EM.RealTime.Api.Cache.Service\WarmUpServiceStartUpTask.cs:li > > > ne > > > 21 > > > > > > at > > > Barclays.EM.RealTime.Api.Cache.Service.TaskExecutingServer.<StartAsy > > > nc > > > >d__3`1.MoveNext() in > > > C:\RealTime.Api.Cache.Service\barclays.em.realtime.api.cache.service > > > \B arclays.EM.RealTime.Api.Cache.Service\TaskExecutingServer.cs:line > > > 24 > > > > > > at > > > Microsoft.AspNetCore.Hosting.GenericWebHostService.<StartAsync>d__37 > > > .M > > > oveNext() > > > > > > at > > > Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNex > > > t( > > > ) > > > > > > at > > > Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunA > > > sy > > > nc>d__4.MoveNext() > > > > > > at > > > Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunA > > > sy > > > nc>d__4.MoveNext() > > > > > > at > > > Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(I > > > Ho > > > st 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 > > > \B arclays.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.IgniteConfigura > > > ti > > > on) > > > > > > > > > > > > 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.checkFlagNoHand > > > le > > > s(BinaryReaderExImpl.java:1694) > > > > > > at > > > org.apache.ignite.internal.binary.BinaryReaderExImpl.readString(Bina > > > ry > > > ReaderExImpl.java:1058) > > > > > > at > > > org.apache.ignite.internal.processors.platform.utils.PlatformConfigu > > > ra > > > tionUtils.readIgniteConfiguration(PlatformConfigurationUtils.java:77 > > > 7) > > > > > > at > > > org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNet > > > Co > > > nfigurationClosure.processPrepareResult(PlatformDotNetConfigurationC > > > lo > > > sure.java:195) > > > > > > at > > > org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNet > > > Co > > > nfigurationClosure.prepare(PlatformDotNetConfigurationClosure.java:1 > > > 82 > > > ) > > > > > > at > > > org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNet > > > Co > > > nfigurationClosure.apply0(PlatformDotNetConfigurationClosure.java:11 > > > 0) > > > > > > at > > > org.apache.ignite.internal.processors.platform.PlatformAbstractConfi > > > gu > > > rationClosure.apply(PlatformAbstractConfigurationClosure.java:50) > > > > > > at > > > org.apache.ignite.internal.processors.platform.PlatformAbstractConfi > > > gu > > > rationClosure.apply(PlatformAbstractConfigurationClosure.java:27) > > > > > > at > > > org.apache.ignite.internal.processors.platform.PlatformAbstractBoots > > > tr > > > ap.start(PlatformAbstractBootstrap.java:40) > > > > > > at > > > org.apache.ignite.internal.processors.platform.PlatformIgnition.star > > > t( > > > 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. > > 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. > 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. >