当前位置: 代码迷 >> J2EE >> 写ajax2 webwervice接口的[.receivers.RPCMessageReceiver] null
  详细解决方案

写ajax2 webwervice接口的[.receivers.RPCMessageReceiver] null

热度:64   发布时间:2016-04-22 00:20:45.0
写ajax2 webwervice接口的[.。.receivers.RPCMessageReceiver] null 在线等
今天写ajax2 webservice  接口   测试的时候遇到下面异常
[ERROR]-[2012-11-28 15:34:22] [org.apache.axis2.rpc.receivers.RPCMessageReceiver] null 
java.lang.IllegalArgumentException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)




code]




这是我的 配置[code=java]<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
default-autowire="byName">

<bean id="applicationContext" class="org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder" />
<!-- 用户登录接口 -->
<bean id="loginSrv" class="com.posun.webservice.system.LoginSrv"></bean>
<!-- 考勤接口 -->
<bean id="attendanceSrv" class="com.posun.webservice.system.AttendanceSrv"></bean>
<!-- 拜访接口 -->
<bean id="visitSrv" class="com.posun.webservice.system.VisitSrv"></bean>

</beans>


这里面总共有3个接口 ,其他2个接口没事,第3个接口测试的时候报错。
<?xml version="1.0" encoding="UTF-8" ?>
<serviceGroup>
<service name="loginSrv" targetNamespace="http://www.posun.cn/"
scope="application">
<description>用户登录</description>
<parameter name="ServiceObjectSupplier">
org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier
</parameter>
<parameter name="SpringBeanName">loginSrv</parameter>

<operation name="login">
<messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</operation>
<excludeOperations>
<operation>getLoginService</operation>
<operation>setLoginService</operation>
</excludeOperations>
</service>

<service name="attendanceSrv" targetNamespace="http://www.posun.cn/"
scope="application">
  相关解决方案