ssh 有时候遇到的问题;


大概意思就是 说 不能把代理 转换为  什么service;关键字
[$Proxy14    
Cannot convert value of type  原因就是我在action 中 使用了 userservice 的时候没有用面向接口 ; 直接用的private userservice userserice;
该为private IUserService userservice 后 问题解决; 
主要标志

<li>Cannot convert value of type
 [$Proxy14 implementing com.ibeifeng.service.IUserService,com.ibeifeng.service.IService,org.springframework.aop.SpringProxy,org.springframework
aop
.framework.Advised]
to required type [com.ibeifeng.service.UserService] for property 'userService': no
matching editors or conversion strategy found</li>
<li>Failed to convert property value of type [$Proxy14 implementing com.ibeifeng
.service.IUserService,com.ibeifeng.service.IService,
org.springframework.aop.SpringProxy,org.springframework
.aop.framework.Advised] to required type [com.ibeifeng.service.UserService] for property 'userService';
 nested exception is java.lang.IllegalArgumentException: Cannot convert value of type
 [$Proxy14 implementing
com.ibeifeng.service.IUserService,com.ibeifeng.service.IService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.ibeifeng.service.UserService] for property
'userService': no matching editors or conversion strategy found</li>



解决上面问题后 ; 又 出现了下面的问题; 因为 我在userservice 用了set 方法; 主要
关键字
org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with modifiers "public"
jsonwriter不能 接近用public 修饰的代理;; 也就是get方法;



 <li>Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with modifiers "public"</li>
                        <li>java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with modifiers "public"</li>
                        <li>org.apache.struts2.json.JSONException: java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.interceptor.ExposeInvocationInterceptor$1 with modifiers "public"</li>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值