Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseSer
来源:互联网 发布:软件架构工程师 编辑:程序博客网 时间:2024/05/05 10:02
Struts Problem Report
Struts has detected an unhandled exception:
Messages:
- Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.xuyp.managize.service.impl.ArticleServiceImpl] for property 'articleServiceImpl': no matching editors or conversion strategy found
- Failed to convert property value of type 'com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'com.xuyp.managize.service.impl.ArticleServiceImpl' for property 'articleServiceImpl'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.xuyp.managize.service.impl.ArticleServiceImpl] for property 'articleServiceImpl': no matching editors or conversion strategy found
- Error creating bean with name 'articleAction' defined in file [D:\code\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\HwManagize\WEB-INF\classes\applicationContext-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'com.xuyp.managize.service.impl.ArticleServiceImpl' for property 'articleServiceImpl'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.xuyp.managize.service.impl.ArticleServiceImpl] for property 'articleServiceImpl': no matching editors or conversion strategy found
- Unable to instantiate Action, articleAction, defined for 'article-list' in namespace '/'Error creating bean with name 'articleAction' defined in file [D:\code\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\HwManagize\WEB-INF\classes\applicationContext-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'com.xuyp.managize.service.impl.ArticleServiceImpl' for property 'articleServiceImpl'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.xuyp.managize.service.impl.ArticleServiceImpl] for property 'articleServiceImpl': no matching editors or conversion strategy found
初学SSH,碰到这个问题。一直不知道这是什么错误,弄了大半天都没弄懂。找了好久,看到了http://zhouhaitao.iteye.com/blog/852225这个博主的博客,修改了applicationContext.xml 文件中 aop 标签中的 <aop:config proxy-target-class>属性 如下:
<span style="font-size:18px;"><aop:config <span style="color:#ff0000;">proxy-target-class="true"</span>><aop:pointcut expression="execution (* com.xuyp.managize.service.*.*(..))" id="pointcut"/><aop:advisor advice-ref="txAdvice" pointcut-ref="pointcut"/></aop:config></span>修改之后 重启服务器即可
1 0
- Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseSer
- Failed to convert property value of type [com.sun.proxy.$Proxy27 implementing com.ibeifeng.se
- Failed to convert property value of type 'com.sun.proxy.$Proxy8 implementing
- Failed to convert property value of type [$Proxy0 implementing com.s2hs.dao.UserDAO
- mybatis 5.0 报错 Cannot convert value of type ‘com.github.pagehelper.PageHelper’ to required type ‘org
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0 implementing (解决)
- java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to com.bbk.n002.service.Question
- java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to com.bbk.n002.service.Question
- 9.ClassCastException: com.sun.proxy.$Proxy24 cannot be cast to com.rchange.service.SysUser
- Java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to com.bjsxt.service.UserServiceI
- java.lang.ClassCastException: com.sun.proxy.$Proxy8 cannot be cast to com.bjsxt.service.UserServiceI
- Spring: Error Cannot convert value of type [$Proxy...] to required type
- Spring-aop: Error Cannot convert value of type [$Proxy...] to required type
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
- 解决must be of type [com.bysj.services.CompanyServiceImp], but was actually of type [com.sun.proxy.$Pr
- com.sun.proxy.$Proxy25 cannot be cast to com.levi.service.impl.ProductServiceImpl和proxy-target-class
- 一个通用的事件监听函数(转自寒冬winter大神的博客)
- onetoone
- 仿Android 5.0 侧滑菜单按钮动画 以及侧滑菜单联动
- 【ASP.NET】Requset和Reponse的区别
- 《Android源码设计模式解析》读书笔记——Android中你应该知道的设计模式
- Cannot convert value of type [com.sun.proxy.$Proxy11 implementing com.xuyp.managize.service.IBaseSer
- spring MultiActionController 简单配置
- 关于我做安卓微信支付3.0的总结,发给大家看看,让大家少走一些弯路
- CDN源站数据同步优化总结
- ArcGIS版本编辑流程
- css样式大全(整理版)
- mysql中替换字符串(正则) 模糊
- POJ1753——Robot Motion
- 职业生涯瓶颈期