• Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert type fail in Spring 3.1 and Hibernate 4.1.0

chu the son
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day everybody.

I am trying integrate spring 3.1 and hibernate 4.1.0 (newest) to develop demo website. But when i use AOP in sping transaction management i got some problems with it. I don't want to use Annotation in JSF bean to indicate there is repository or anything else. I just only want to config in Spring and not any more. Here is a part of my DAO and BO files:

File DAO interface:

File DAO impl:

File BO Impl:

File BO interface:

applicationContext file:

And finally my exception when trying use AOP in Spring:
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy6 implementing sale.java.dao.IAccountDAO,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [sale.java.dao.impl.AccountDAOImpl] for property 'loginDAO': no matching editors or conversion strategy found

I saw some tutorials on the internet and they config like me. I don't understand why it doesn't work. Can someone suggest me?

Thanks in advance and sorry for my bad English
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!