调用 openmeetings提供的services方法:addNewUser出错。

小博 发布于 2011/07/13 10:52
阅读 816
收藏 0

我的代码如下:

        opAddEntry = new QName("http://services.axis.openmeetings.org", "addNewUser");
        Long addNewUser = (Long) serviceClient.invokeBlocking(opAddEntry, new Object[] { sid, "test_user", "test_user", "ha_ha", "ha_ha", "email", "additionalname", "street", "zip", "fax",
                1, "town", 11, "baseURL" }, new Class[] { Long.class })[0];
        System.out.println("********addNewUser********:" + addNewUser);

报如下错误:

 

Exception in thread "main" org.apache.axis2.AxisFault: unknown
 at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
 at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
 at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
 at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
 at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
 at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:101)
 at client.userservice.UserServiceRpcClient.main(UserServiceRpcClient.java:70)

请高人指点,谢谢了。

加载中
0
小博

red5.bat报:

ERROR 07-13 11:36:38.093 UserService.java 42172 147 org.openmeetings.axis.servic
es.UserService [http-0.0.0.0-5080-3] - setUserObject
java.lang.NullPointerException: null
        at org.openmeetings.axis.services.UserService.addNewUser(UserService.jav
a:128) [na:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0
_13]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39) [na:1.6.0_13]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25) [na:1.6.0_13]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_13]
        at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:194) [axis2-adb-1.3.jar:na]
        at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:98) [axis2-adb-1.3.jar:na]
        at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40) [axis2-kernel-1.3.jar:na]
        at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:96) [axis2-kernel-1.3.jar:na]
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) [axis
2-kernel-1.3.jar:na]
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275) [axis2-kernel-1.3.jar:na]
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
20) [axis2-kernel-1.3.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [javaee-
api-5.1.1.jar:5.1.1]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [javaee-
api-5.1.1.jar:5.1.1]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206) [catalina-6.0.24.jar:na]
        at org.openmeetings.servlet.outputhandler.ServletRequestExFilter.doFilte
r(ServletRequestExFilter.java:35) [openmeetings.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206) [catalina-6.0.24.jar:na]
        at org.red5.logging.LoggerContextFilter.doFilter(LoggerContextFilter.jav
a:87) [red5.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191) [catalina-6.0.24.jar:na]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:465) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127) [catalina-6.0.24.jar:na]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102) [catalina-6.0.24.jar:na]
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
555) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109) [catalina-6.0.24.jar:na]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298) [catalina-6.0.24.jar:na]
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:852) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9) [tomcat-coyote-6.0.24.jar:na]
        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_13]

0
小博

这个论坛太jb烂了啊。

返回顶部
顶部