java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0 implementing (解决)
来源:互联网 发布:徐老师淘宝店衣服 编辑:程序博客网 时间:2024/05/18 22:53
异常信息:
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy11 implementing com.wyu.dao.ITestDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'com.wyu.dao.TestDao' for property 'testDao'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy11 implementing com.wyu.dao.ITestDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.wyu.dao.TestDao] for property 'testDao': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
... 11 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy11 implementing com.wyu.dao.ITestDao,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.wyu.dao.TestDao] for property 'testDao': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
... 17 more
原因:Spring在转换时,主要是将代理类转换成接口,反而不能转换成实际类。
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0 implementing (解决)
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy7 implem
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for property
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for propert
- Failed to convert property value of type [$Proxy0 implementing com.s2hs.dao.UserDAO
- java.lang.IllegalStateException: Cannot convert value of type
- 配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]
- 解决:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';
- nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframewo
- 【已解决】java.lang.IllegalArgumentException: No converter found for return value of type: class java.uti
- 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util
- 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util
- Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseSer
- 解决java.lang.IllegalArgumentException: No converter found for return value of type:
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
- Value of type java.lang.String cannot be converted to JSONObject 错误解决
- 如何编写代码块?
- 快速排序 quick sort
- Android中EditText控件横屏全屏模式时的控制
- CoconutKit ios开发必备
- 归并排序 merge sort
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0 implementing (解决)
- Linux网络管理员福利:Namp命令的29个实战例子
- [c++运用]-利用指针查看分配内存及后续连接的内存---ShinePans
- java.net.SocketException: java.net.BindException: Address already in use
- P次方数 英雄会 csdn 高校俱乐部
- hdu1251 统计难题(字典树)
- 数据结构复习笔记四:数组和广义表
- Working Practice-使用官方的实现
- OSX: 不要升级到ARD 3.7.1 Admin(续)