Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12838

Fails to start server with spring configuration with known host addresses

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1
    • Fix Version/s: None
    • Component/s: cassandra, spring
    • Labels:
      None
    • Ignite Flags:
      Docs Required, Release Notes Required

      Description

      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.

       

      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)

       

       

      The configuration looks like below:

       

      <?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>
      .......
      ......

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ramyamagham Ramya Magham
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: