• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Convert type fail in Spring 3.1 and Hibernate 4.1.0

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic