Java RMI方式调用问题 but was actually of type [$Proxy7]
来源:互联网 发布:主播网络乞丐 编辑:程序博客网 时间:2024/06/04 01:14
配置文件不变:
<!-- 分类 -->
<bean id="commoCategoryServComponent" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<property name="serviceUrl" value="${ecos_commodity_remote.url}/ICommoCategoryServComponent"/>
<property name="serviceInterface" value="org.lazicats.ecos.commodity.service.component.ICommoCategoryServComponent"/>
</bean>
<!-- 运营分类 -->
<bean id="categoryServComponent" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<property name="serviceUrl" value="${ecos_commodity_remote.url}/IOperatingCategoryServComponent"/>
<property name="serviceInterface" value="org.lazicats.ecos.commodity.service.component.IOperatingCategoryServComponent"/>
</bean>
引用的java变动:
@Resource
private ICommoCategoryServComponent categoryServComponent;
but was actually of type [$Proxy7]
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productStockController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productStockViewComponentImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'categoryServComponent' must be of type [org.lazicats.ecos.commodity.service.component.ICommoCategoryServComponent], but was actually of type [$Proxy7]
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
下面就OK
@Resource
private ICommoCategoryServComponent commoCategoryServComponent;
- Java RMI方式调用问题 but was actually of type [$Proxy7]
- but was actually of type [$Proxy19]
- ......but was actually of type [sun.proxy.$Proxy8]
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- Bean named must be of type , but was actually of type
- Bean named '*' must be of type [*], but was actually of type [*] with root case
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- Bean named 'BService' is expected to be of type 'path1' but was actually of type 'path2'
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.su
- Bean named 'transactionAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of typ
- BeanNotOfRequiredTypeException 异常:but was actually of type 'com.sun.proxy.$Proxy17'
- 使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
- 使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
- but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
- Spring AOP事物异常 but was actually of type 'com.sun.proxy.$Proxy17
- C/C++中static的作用
- 解决cocos2d-X 2.0版本后创建的Android项目提示org.cocos2dx.lib.Cocos2dxActivity找不到问题
- 正则表达式
- hdu-4468-Spy-KMP+贪心
- 红帽未注册yum解决办法
- Java RMI方式调用问题 but was actually of type [$Proxy7]
- 动态存储方式与静态存储方式
- Android XML解析
- 从LM3S到LM4F TM4C ARM Cortex-M4 : Migrating Software Projects from StellarisWare® to TivaWare™
- 美国与中国思想观念的不同表现【转载】
- C#实现TreeView向XML的绝对转换类的小修改
- 排序算法
- 用ADB(Android Debug Bridge)实时监测Android程序的运行
- 【phpcms v9】使用phpcms v9系统一小时内完成的网站