Home  >  Forum  >  Spring
Post New Query

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


joined on
April 07,2013
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


joined on
March 16,2013
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



Sitewide-Feb4of4234x60





Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us