I am upgrading my Spring 3 to Spring 4, and was facing issue reported in OpenEntityManagerInViewInterceptor- No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call
Now to resolve it I am putting @Transactional in my controller entry method and when I do so I am getting below exception at deployment:
Caused by: java.lang.IllegalStateException: Cannot convert value of type 'com.sun.proxy.$Proxy47 implementing com.krawler.spring.accounting.payment.accPaymentDAO,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised,org.springframework.core.DecoratingProxy' to required type 'com.krawler.spring.accounting.payment.accPaymentImpl' for property 'accPaymentDAOobj': no matching editors or conversion strategy found
This class only has messageSource entry for bean injection. And it is separate class from the controller. When I remove the @Transactional from Controller method, I dont see this error. Please let me know what can be done.