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:
  1. 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
  2. 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
  3. 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
  4. 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
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 小米5王者荣耀卡怎么办 华为p9手机电池不耐用怎么办 华为g9青春版耗电快怎么办 华为手机摄像头坏了怎么办 华为p10摄像头玻璃划痕怎么办? 华为g9手机音量小怎么办 华为7pius太卡怎么办 华为畅享7plus卡怎么办 华为p9屏幕进水变颜色怎么办? 玩王者荣耀卡退怎么办 华为手机忘记开机密码怎么办 华为p9密码忘了怎么办 华为p9解锁密码忘了怎么办 华为手机不支持联通4g怎么办 酷派手机自动下载软件怎么办 小米5a不能开机怎么办 华为手机的视频找不到了怎么办 华为p8内存文件打不开怎么办 华为荣耀9网速慢怎么办 荣耀9手机网速慢怎么办 联想台式机不支持xp驱动怎么办 一体机尾插坏了怎么办 华为手机触屏失灵怎么办 华为p8max手机老是卡怎么办 手机屏碎了数据怎么办 华为p9屏碎了怎么办 华为p7一l09卡顿怎么办 华为p7打不开机怎么办 华为8主板坏了怎么办 华为手机主板坏了怎么办 华为p9文字变英文了怎么办 华为p9plus电池不耐用怎么办 华为mate8手机音量小怎么办 同花顺自选股更新不显示怎么办 华为麦芒定频了怎么办 用线刷宝刷机失败开不了机怎么办 红米手机拨号后黑屏怎么办 sim卡丢了激活码怎么办 电信sim卡未激活怎么办 小米5c老是黑屏怎么办 小米4x黑屏了怎么办