no matching editors or conversion strategy found

原创 2012年03月31日 13:38:48
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testAction' defined in file [E:\Workspace\JavaEE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\extjs001\WEB-INF\classes\applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'org.lx.dao.UserInfoDao' for property 'userInfoDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [org.lx.dao.UserInfoDao] for property 'userInfoDao': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'org.lx.dao.UserInfoDao' for property 'userInfoDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [org.lx.dao.UserInfoDao] for property 'userInfoDao': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:462)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:499)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:493)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1371)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1330)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
	... 26 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [org.lx.dao.UserInfoDao] for property 'userInfoDao': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447)
	... 32 more
2012-3-31 13:38:31 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testAction' defined in file [E:\Workspace\JavaEE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\extjs001\WEB-INF\classes\applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'org.lx.dao.UserInfoDao' for property 'userInfoDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [org.lx.dao.UserInfoDao] for property 'userInfoDao': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'org.lx.dao.UserInfoDao' for property 'userInfoDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [org.lx.dao.UserInfoDao] for property 'userInfoDao': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:462)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:499)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:493)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1371)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1330)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
	... 26 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy9 implementing org.lx.base.dao.GenericDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [org.lx.dao.UserInfoDao] for property 'userInfoDao': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447)
	... 32 more
2012-3-31 13:38:31 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2012-3-31 13:38:31 org.apache.catalina.core.StandardContext start
严重: Context [/extjs001] startup failed due to previous errors
2012-3-31 13:38:31 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2012-3-31 13:38:31 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/extjs001] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-3-31 13:38:31 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/extjs001] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@4e17f9]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
13:38:31,421  INFO DriverManagerConnectionProvider:170 - cleaning up connection pool: jdbc:sqlserver://127.0.0.1:1433;databaseName=master
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2012-3-31 13:38:31 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-3-31 13:38:31 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-3-31 13:38:31 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/16  config=null
2012-3-31 13:38:31 org.apache.catalina.startup.Catalina start
信息: Server startup in 2618 ms 


错误就出现在这里:

 <aop:config proxy-target-class="false">
     <aop:advisor advice-ref="txAdvice" pointcut="execution(public * org.lx.dao..*.*(..))"/>
    </aop:config>

Spring注入的是接口,关联的是实现类。 这里注入了实现类,所以报异常,

proxy-target-class="false"
这个是默认值如果注入的是类那么修改为true

在写Mybatis时遇到的问题:No constructor found in 包名+类名

刚学习mybatis知识,就遇到很多小问题。当然是特别小,但是足够让我花费很多时间 我在mysql中创建了users表,是人的,有id, name,age;然后运用mybatis知识在eclipse...
  • xiaogaxuanyao
  • xiaogaxuanyao
  • 2016年06月29日 11:27
  • 3689

windows git 环境搭建

git 官网下载地址(用迅雷下载更快,这算广告不,哈哈哈): http://git-scm.com/download/ 生成ssh公钥 $ git $2config --global $2use...
  • ITjianghuxiaoxiong
  • ITjianghuxiaoxiong
  • 2015年10月22日 17:42
  • 4312

单点登陆(SSO)-完整示例-含数据验证

http://www.kafeitu.me/sso/2010/11/05/sso-cas-full-course.html
  • flash8627
  • flash8627
  • 2013年12月04日 11:00
  • 2087

Linux下安装pyspider的详细过程和相关指令【无总结版】

下面是安装pyspider的详细过程及相关指令【纪实】 -----------------------------------------------------------------------...
  • myfancysky
  • myfancysky
  • 2015年10月01日 20:47
  • 3460

使用dubbo对外暴露接口,实现类同时实现两个接口后 @Autowire失败,提示expected single matching bean but found 2解决方案

当使用dubbo对外暴露接口时,为了方便继承和实现底层方法,另一方面专门对外提供一套接口方法,这时接口实现类同时实现了两个接口: @Service("ICentAccountInfoService")...
  • paradise003
  • paradise003
  • 2016年06月02日 17:06
  • 7974

用PyCharm远程调试来编写PaddlePaddle代码

0、前言和相关知识PaddlePaddle运行在Docker中,在这其中我有两个疑问: 1、怎么与Docker交互? paddlepaddle的book项目就是教程,里面有paddle的项目环境,...
  • qq_26819733
  • qq_26819733
  • 2017年07月22日 02:32
  • 1684

OpenStack服务器节点迁移(修改IP)后引发的nova-compute不启动

前些日子一直在忙活将OpenStack的那几台服务器从部门机房搬迁到集团的大机房去,由于要修改节点的public_ip,出现了许多问题,也是经过了2个不免之夜,终于将问题都解决了,在这里将过程记录一下...
  • networm3
  • networm3
  • 2013年02月19日 11:31
  • 3471

最小二乘拟合(矩阵)

最小二乘公式B=(XTX)−1XTY B = (X^TX)^{-1}X^TY 其中,其中, B:n×1B:n×1矩阵 X:m×nX:m×n矩阵,输入变量/特征 Y:m×1Y:m×1矩阵,输出...
  • tymatlab
  • tymatlab
  • 2017年12月30日 15:41
  • 35

shiro和ehcache结合时遇到的问题

Cannot convert value of type [org.apache.shiro.cache.ehcache.EhCacheManager] to required type [net.s...
  • baokx
  • baokx
  • 2016年01月06日 19:13
  • 8259

一个目前没找到原因的问题

用np.linalg.solve(a, b) 解方程的问题。 错误消息:  r = gufunc(a, b, signature=signature, extobj=extobj) TypeEr...
  • pengjc2001
  • pengjc2001
  • 2017年03月30日 10:28
  • 942
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:no matching editors or conversion strategy found
举报原因:
原因补充:

(最多只允许输入30个字)