org.springframework.beans.TypeMismatchException

Failed to convert property value of type [org.appfuse.dao.hibernate.UniversalDaoHibernat e] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert va lue of type [org.appfuse.dao.hibernate.UniversalDaoHibernate] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao': no matching ed itors or conversion strategy found

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web59

  • via Unknown by Andrew de Bruijn,
  • via Unknown by Jeff Caddel,
  • Stack trace

    • org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.appfuse.dao.hibernate.UniversalDaoHibernat e] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert va lue of type [org.appfuse.dao.hibernate.UniversalDaoHibernate] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao': no matching ed itors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)[talledLocalContainer] at java.security.AccessController.doPrivileged(Native Method)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)[talledLocalContainer] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)[talledLocalContainer] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)[INFO] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)[talledLocalContainer] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)[talledLocalContainer] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)[talledLocalContainer] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)[talledLocalContainer] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)[talledLocalContainer] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)[talledLocalContainer] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)[talledLocalContainer] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[talledLocalContainer] at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)[talledLocalContainer] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[talledLocalContainer] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)[talledLocalContainer] at org.apache.catalina.core.StandardService.start(StandardService.java:516)[talledLocalContainer] at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)[talledLocalContainer] at org.apache.catalina.startup.Catalina.start(Catalina.java:566)[talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597)[talledLocalContainer] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)[talledLocalContainer] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)[talledLocalContainer] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manager' defined in c lass path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchExceptio n: Failed to convert property value of type [org.appfuse.dao.hibernate.UniversalDaoHibernate] to required type [com.mycompany.app.dao.UniversalDao] fo r property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.appfuse.dao.hibernate.UniversalDaoHibernat e] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao': no matching editors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)[talledLocalContainer] at java.security.AccessController.doPrivileged(Native Method)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)[talledLocalContainer] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)[talledLocalContainer] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)[talledLocalContainer] at org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping.processBeans(Jsr181HandlerMapping.java:114)[talledLocalContainer] at org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping.initApplicationContext(Jsr181HandlerMapping.java:65)[talledLocalContainer] at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)[INFO] at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:69)[INFO] at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)[INFO] at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:70)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1329)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)[talledLocalContainer] ... 29 more Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.appfuse.dao.hi bernate.UniversalDaoHibernate] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao'; nested exception is java.lang.IllegalArgument Exception: Cannot convert value of type [org.appfuse.dao.hibernate.UniversalDaoHibernate] to required type [com.mycompany.app.dao.UniversalDao] for pr operty 'dao': no matching editors or conversion strategy found at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)[talledLocalContainer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1287)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1248)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)[INFO] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)[talledLocalContainer] ... 47 more Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [org.appfuse.dao.hibernate.UniversalDaoHiber nate] to required type [com.mycompany.app.dao.UniversalDao] for property 'dao': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:219)[talledLocalContainer] at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)[talledLocalContainer] at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)[talledLocalContainer] ... 51 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,