幻影2015 2014-04-21 08:26
浏览 4653

多线程调用Axis客户端异常问题请教

相同版本程序大部分时间可以正常运行(一直为bug不规律出现烦恼,提升并发线程数量不会增加其出现频率,至今出现2次),

偶尔启动运行抛出以下异常(不存在参数个数不匹配问题)。下附异常信息与代码片段:
javax.xml.rpc.JAXRPCException: Number of parameters passed in (1) doesn't match the number of IN/INOUT

parameters (2) from the addParameter() calls
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:1828)
at com.ffcs.zteintf.SendRunnable.run(SendRunnable.java:122)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.rpc.JAXRPCException: Number of parameters passed in (1) doesn't match the number of

IN/INOUT parameters (2) from the addParameter() calls
at org.apache.axis.client.Call.getParamList(Call.java:2059)
at org.apache.axis.client.Call.invoke(Call.java:2364)
at org.apache.axis.client.Call.invoke(Call.java:1812)
... 2 more
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.xml.rpc.JAXRPCException: Number of parameters passed in (1) doesn't match the number of

IN/INOUT parameters (2) from the addParameter() calls
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.xml.rpc.JAXRPCException: Number of parameters passed in (1)

doesn't match the number of IN/INOUT parameters (2) from the addParameter() calls
at org.apache.axis.client.Call.getParamList(Call.java:2059)
at org.apache.axis.client.Call.invoke(Call.java:2364)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.ffcs.zteintf.SendRunnable.run(SendRunnable.java:122)
at java.lang.Thread.run(Thread.java:662)

run()方法中部分代码:
call = (Call) soapService.createCall();//soapService为单例,因为不规律报错,无法证实是此原因

call.setTargetEndpointAddress(soapService.getUrl());
call.setOperationName(new QName(soapService.getTargetObjectURI(),soapService.getMethodName()));
call.addParameter(new QName("http://***********/********/exchange", "parameters"), new QName

("http://***********/********/exchange", "parameters"), String.class, ParameterMode.IN);//

    call.setReturnType(XMLType.XSD_STRING);

response = (String) call.invoke(new Object[] { crmReq });

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
    • ¥15 C# datagridview 单元格显示进度及值
    • ¥15 thinkphp6配合social login单点登录问题
    • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 虚心请教几个问题,小生先有礼了
    • ¥30 截图中的mathematics程序转换成matlab