Ramya Magham created IGNITE-12838: ------------------------------------- Summary: Fails to start server with spring configuration with known host addresses Key: IGNITE-12838 URL: https://issues.apache.org/jira/browse/IGNITE-12838 Project: Ignite Issue Type: Bug Components: cassandra, spring Affects Versions: 2.8.1 Reporter: Ramya Magham
Fails to start server with spring configuration with known host addresses. I am trying to start Ignite cluster from a java class but get the following error. The version I am using is 2.8.0 ignite-core and ignite-cassandra-store. {code:java} Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'addresses' of bean class [org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder]: Bean property 'addresses' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'addresses' of bean class [org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder]: Bean property 'addresses' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:239){code} The configuration looks like below: {code:java} <?xml version="1.0" encoding="UTF-8"?> <!-- This file was generated by Ignite Web Console (02/04/2020, 17:53) --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <bean class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="igniteInstanceName" value="poc" /> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> <property name="addresses"> <list> <value>10.33.40.116:47500</value> <value>10.33.40.117:47500</value> <value>10.33.40.95:47500</value> </list> </property> </bean> </property> </bean> </property> ....... ......{code} The class TcpDiscoveryVmIpFinder has setAddresses method but not a getter. Is that the error it is throwing? Doesn't the class support to be able to instantiate from the Spring config xml? -- This message was sent by Atlassian Jira (v8.3.4#803005)