Home  >  Forum  >  Spring
Post New Query

Method of bean has a non-boolean parameter - not supported as destroy method



Asked on April 21, 2013
Hi  All
Any suggestion for below error.

Caused by: org.springframework.beans.factory.support.BeanDefinitionValidationException: Method  of bean has a non-boolean parameter - not supported as destroy method at org.springframework.beans.factory.support.DisposableBeanAdapter.<init>(DisposableBeanAdapter.java:117)
    at org.springframework.beans.factory.support.AbstractBeanFactory.registerDisposableBeanIfNecessary(AbstractBeanFactory.java:1492)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:560)
    ... 11 more





Replied on April 21, 2013
The method provided to destroy-method is not the destroy method. destroy-method should not have any arguments. Check you destroy method is there any argument if yes remove it.

Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us