Hi Stéphane,

Thanks for the bug report, this issue is tracked in
https://issues.apache.org/jira/browse/IGNITE-14776

On Mon, Oct 18, 2021 at 1:55 PM Stéphane Gayet <stephane.ga...@misterfly.com>
wrote:

> Hi community,
>
> I'm trying to use thin client in a net5.0 project. When running the
> process, I get an error when calling StartClient().
>
> Exception":"System.ArgumentNullException: Value cannot be null. (Parameter
> 'logger')
>    at Apache.Ignite.Core.Impl.Common.IgniteArgumentCheck.NotNull(Object
> arg, String argName)
>    at Apache.Ignite.Core.Log.LoggerExtensions.Log(ILogger logger, LogLevel
> level, Exception ex, String message)
>    at Apache.Ignite.Core.Log.LoggerExtensions.Debug(ILogger logger,
> Exception ex, String message)
>    at Apache.Ignite.Core.Impl.Client.ClientFailoverSocket.GetIps(String
> host, Boolean suppressExceptions)
>    at
> Apache.Ignite.Core.Impl.Client.ClientFailoverSocket.<GetIpEndPoints>d__15.MoveNext()
>    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
>    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
>    at
> Apache.Ignite.Core.Impl.Client.ClientFailoverSocket..ctor(IgniteClientConfiguration
> config, Marshaller marsh, TransactionsClient transactions)
>    at
> Apache.Ignite.Core.Impl.Client.IgniteClient..ctor(IgniteClientConfiguration
> clientConfiguration)
>    at Apache.Ignite.Core.Ignition.StartClient(IgniteClientConfiguration
> clientConfiguration)
>    at MrFly.Flight.DsFeed.Infra.ThinClientDataStore..ctor(IMapper mapper,
> IOptions`1 settings, ILogger`1 logger) in
> /home/jenkins/agent/workspace/Connectivity/DataScience/C.Flight.DsFeed/src/DsFeed/Infra/ThinClientDataStore.cs:line
> 42
>    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
> arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
>    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite
> callSite, TArgument argument)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite
> callSite, RuntimeResolverContext context, ServiceProviderEngineScope
> serviceProviderEngine, RuntimeResolverLock lockType)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite
> singletonCallSite, RuntimeResolverContext context)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite
> callSite, TArgument argument)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite
> constructorCallSite, RuntimeResolverContext context)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite
> callSite, TArgument argument)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite
> transientCallSite, 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.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope
> scope)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type
> serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
>    at
> Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type
> serviceType)
>    at Worker.Program.Main(String[] args) in
> /home/jenkins/agent/workspace/Connectivity/DataScience/C.Flight.DsFeed/src/DsFeed/Worker/Program.cs:line
>
>
> Looking in the sources of the dotnet ignite core, I noticed that the
> constructor of ClientFailoverSocket calls the method  GetIpEndPoints which
> in turn calls the method GetIps.
> In the GetIps method, when a socket exception occurs, the method calls
> *_logger.Debug()* to log the error. But the *_logger *member is not yet
> setted in the *ClientFailoverSocket *constructor.
>
>
>
> Regards,
>
>
> * Stéphane Gayet *
>  Responsable Développement / Development Manager
> (+33) 1 70 38 70 74 +33 6 00 00 00 00
> stephane.ga...@misterfly.com
>
> ü *Adoptez l’éco-attitude ! N’imprimez cet email que si c’est nécessaire.*
>
> <https://cloud.letsignit.com/collect/bc/5e30230b86cfde000a68f219?p=N-KVKKZzU-R5MQajWFG1rumaWO1bjRIvmP2dSEoDap3sWQdP0QeRBQzDIoKmroxRd4vjnvQkM_06YDS7YWh3QrGqXcXWP1mXkvC1B8y0xQCg4mzSk0Tley3DoaXiHshHG8iiwWpr9mXN-W1wlrBAO01o_hPO7kidNmhwrfYDnN_YbnNCPa0noPV6v6alPZxS>
> <https://cloud.letsignit.com/collect/bc/5e30230b86cfde000a68f219?p=N-KVKKZzU-R5MQajWFG1rumaWO1bjRIvmP2dSEoDap3sWQdP0QeRBQzDIoKmroxRd4vjnvQkM_06YDS7YWh3QrGqXcXWP1mXkvC1B8y0xQBXR_zFsi0z1RvAGEb6QTON041W6si2GWBao51HHz1aLhfNaI1ZSyBWmUv7aCwtZWs=>
> <https://cloud.letsignit.com/collect/bc/5e30230b86cfde000a68f219?p=N-KVKKZzU-R5MQajWFG1rumaWO1bjRIvmP2dSEoDap3sWQdP0QeRBQzDIoKmroxRd4vjnvQkM_06YDS7YWh3QrGqXcXWP1mXkvC1B8y0xQBGrX6QsnrdmOXrsh3565OLEKflWogIAbBlwjnHc59KTLUEKxx1dEkIQQsuLHrbsUc=>
> <https://cloud.letsignit.com/collect/bc/5e30230b86cfde000a68f219?p=N-KVKKZzU-R5MQajWFG1rumaWO1bjRIvmP2dSEoDap3sWQdP0QeRBQzDIoKmroxRd4vjnvQkM_06YDS7YWh3QrGqXcXWP1mXkvC1B8y0xQAjJKqLE1xbPQaS9LjGgZ_JeJDwPwMmU8-GlQu93CZ477pQB_BnwsmB9BHqaavpUCY=>
> <https://cloud.letsignit.com/collect/bc/5e30230b86cfde000a68f219?p=N-KVKKZzU-R5MQajWFG1rumaWO1bjRIvmP2dSEoDap3sWQdP0QeRBQzDIoKmroxRd4vjnvQkM_06YDS7YWh3QrGqXcXWP1mXkvC1B8y0xQD9xkRhtuJJSWYc5zstAm7iDghTDkG27gvqGAli6kOrQw==>
>
>
>

Reply via email to