Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Convert type fail in Spring 3.1 and Hibernate 4.1.0

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,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [] 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
Destroy anything that stands in your way. Except this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!