How to solve org.springframework.beans.factory.BeanCreationException: Error creating bean?

The BeanCreationException happened cause we had a class that has properties but the setter and getter method were not available in the class.

It was throwing errors with the following message:

Bean property 'startProcessingWindow' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

 In this case those properties and getter and setter were not important at all. So by removing those properties solved the issue.

We had some apache camel routes that also depends on the application context. As it was throwing an exception running the application context the whole Camel routes were not firing.

So as soon as those properties were removed the camel routes also started firing nicely.

Comments