You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by bhaskar <bh...@gmail.com> on 2018/06/19 18:21:46 UTC

Throwing error after enabling

Hi,
Iam trying o enable authentication by setting <property
name="authenticationEnabled" value="true"/>, but geting "class
org.apache.ignite.IgniteException: Failed to instantiate Spring XML
application context" , where is the missing part?

My default-config.xml
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd">
    
   
	<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
    
    <property name="dataStorageConfiguration">
        <bean
class="org.apache.ignite.configuration.DataStorageConfiguration">
            <property name="defaultDataRegionConfiguration">
                <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                    <property name="persistenceEnabled" value="true"/>
                </bean>
            </property>
        </bean>
    </property>

    
    <property name="authenticationEnabled" value="true"/>
   
  
 
    
</bean>
</beans>


The error log:

class org.apache.ignite.IgniteException: Failed to instantiate Spring XML
application context [springUrl=file:<path>/config/default-config.xml,
err=Error creating bean with name 'ignite.cfg' defined in URL
[file:<path>/config/default-config.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'authenticationEnabled' of bean class
[org.apache.ignite.configuration.IgniteConfiguration]: Bean property
'authenticationEnabled' 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.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:980)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
instantiate Spring XML application context
[springUrl=file:<path>/config/default-config.xml, err=Error creating bean
with name 'ignite.cfg' defined in URL
[file:<path>/config/default-config.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'authenticationEnabled' of bean class
[org.apache.ignite.configuration.IgniteConfiguration]: Bean property
'authenticationEnabled' 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.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:392)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:737)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:938)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:847)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:717)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:686)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'ignite.cfg' defined in URL
[file:<path>/config/default-config.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'authenticationEnabled' of bean class
[org.apache.ignite.configuration.IgniteConfiguration]: Bean property
'authenticationEnabled' 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.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1568)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
        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.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:381)
        ... 9 more
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
property 'authenticationEnabled' of bean class
[org.apache.ignite.configuration.IgniteConfiguration]: Bean property
'authenticationEnabled' 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:243)
        at
org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:437)
        at
org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:292)
        at
org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:280)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1564)
        ... 20 more
Failed to start grid: Failed to instantiate Spring XML application context
[springUrl=file:<path>/config/default-config.xml, err=Error creating bean
with name 'ignite.cfg' defined in URL
[file:<path>/config/default-config.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'authenticationEnabled' of bean class
[org.apache.ignite.configuration.IgniteConfiguration]: Bean property
'authenticationEnabled' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?]


thanks
Bhaskar



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

Re: Throwing error after enabling

Posted by vkulichenko <va...@gmail.com>.
Bhaskar,

It's still the same version - 2.2.0.

-Val



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

Re: Throwing error after enabling

Posted by bhaskar <bh...@gmail.com>.
Thanks Val,
I am on Ignite 2.4 and spark 2.2 . If I move to Ignite 2.5 what version of
spark is supported?

Thanks
Bhaskar



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

Re: Throwing error after enabling

Posted by vkulichenko <va...@gmail.com>.
Bhaskar,

Which version are you on? This configuration was added in 2.5.

-Val



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