Hello,

I have built a docker image of my Ignite .NET application and am
instantiating this as a pod in my Kubernetes deployment. This all works as
expected and Ignite initializes fine.

However, I want my nodes to be discoverable so I am attempting to use the
Spring XML file located  here
<https://raw.githubusercontent.com/apache/ignite/master/modules/kubernetes/config/example-kube-persistence.xml>
  

I have also constructed my .NET code to include this in the configuration:

/            Console.WriteLine($"Starting Ignite.NET...");
            var config_url =
Environment.GetEnvironmentVariable("CONFIG_URI");

            if(String.IsNullOrEmpty(config_url))
            {
                config_url =
"https://raw.githubusercontent.com/apache/ignite/master/modules/kubernetes/config/example-kube-persistence.xml";;
            }

            Console.WriteLine($"Using config from [{config_url}]");

            var config = new IgniteConfiguration()
            {
                SpringConfigUrl = config_url,
                JvmOptions = new List<string>()
                {
                    "-DIGNITE_QUIET=false"
                }
            };

            Ignition.Start(config);
/

Also, I have the binary distribution of Ignite 2.7.6 in the /libs
subdirectory of my app folder.

When this runs I get the following error but there appears to be no
descriptive message as to whats causing it:

Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.apache.ignite.configuration.DataStorageConfiguration#4524411f' defined
in URL
[https://raw.githubusercontent.com/apache/ignite/master/modules/kubernetes/config/example-kube-persistence.xml]:
Cannot create inner bean
'org.apache.ignite.configuration.DataRegionConfiguration#544a2ea6' of type
[org.apache.ignite.configuration.DataRegionConfiguration] while setting bean
property 'defaultDataRegionConfiguration'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.ignite.configuration.DataRegionConfiguration#544a2ea6'
defined in URL
[https://raw.githubusercontent.com/apache/ignite/master/modules/kubernetes/config/example-kube-persistence.xml]:
Initialization of bean failed; nested exception is
java.lang.NullPointerException
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1537)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1284)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to