Announcement Announcement Module
Collapse
No announcement yet.
org.springframework.beans.factory.BeanCreationExce ption: Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.springframework.beans.factory.BeanCreationExce ption:

    Hi,
    Iam integrating Springs in Struts.

    In the action form i have given service interface properties

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '/admin/secure/requestReservation' defined in class path resource [applicationContextStruts.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.uprr.app.itr.springs.services.reservation.Rese rvationServiceImpl$$EnhancerByCGLIB$$dd7735d3] to required type [com.uprr.app.itr.springs.services.reservation.Rese rvationService] for property 'reservationService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.uprr.app.itr.springs.services.reservation.Rese rvationServiceImpl$$EnhancerByCGLIB$$dd7735d3] to required type [com.uprr.app.itr.springs.services.reservation.Rese rvationService] for property 'reservationService': no matching editors or conversion strategy found
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:480)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:283 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:881)
    at com.uprr.app.itr.testing.spring.integration.BeansT est.main(BeansTest.java:26)
    Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.uprr.app.itr.springs.services.reservation.Rese rvationServiceImpl$$EnhancerByCGLIB$$dd7735d3] to required type [com.uprr.app.itr.springs.services.reservation.Rese rvationService] for property 'reservationService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.uprr.app.itr.springs.services.reservation.Rese rvationServiceImpl$$EnhancerByCGLIB$$dd7735d3] to required type [com.uprr.app.itr.springs.services.reservation.Rese rvationService] for property 'reservationService': no matching editors or conversion strategy found
    at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:391)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.convertForProperty(Abst ractAutowireCapableBeanFactory.java:1288)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1249)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:472)
    ... 8 more
    Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [com.uprr.app.itr.springs.services.reservation.Rese rvationServiceImpl$$EnhancerByCGLIB$$dd7735d3] to required type [com.uprr.app.itr.springs.services.reservation.Rese rvationService] for property 'reservationService': no matching editors or conversion strategy found
    at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:219)
    at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:138)
    at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:386)
    ... 12 more
Working...
X