当前位置:编程学习 > JAVA >>

急急急!!!webservice new RPCServiceClient()初始化时报错

错误信息:
ParameterIncludeImpl: Call Stack = DEBUG_FRAME = org.apache.axis2.util.JavaUtils.callStackToString(JavaUtils.java:564)
DEBUG_FRAME = org.apache.axis2.description.ParameterIncludeImpl.debugParameterAdd(ParameterIncludeImpl.java:352)
DEBUG_FRAME = org.apache.axis2.description.ParameterIncludeImpl.addParameter(ParameterIncludeImpl.java:128)
DEBUG_FRAME = org.apache.axis2.description.AxisDescription.addParameter(AxisDescription.java:108)
DEBUG_FRAME = org.apache.axis2.deployment.DescriptionBuilder.processParameters(DescriptionBuilder.java:569)
DEBUG_FRAME = org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:100)
DEBUG_FRAME = org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
DEBUG_FRAME = org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
DEBUG_FRAME = org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
DEBUG_FRAME = org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
DEBUG_FRAME = org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
DEBUG_FRAME = org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
DEBUG_FRAME = org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:251)
DEBUG_FRAME = org.apache.axis2.rpc.client.RPCServiceClient.<init>(RPCServiceClient.java:48)
DEBUG_FRAME = com.hcycom.iams.alarm.znxj.AMessageDeal.invokeWebService(AMessageDeal.java:245)
DEBUG_FRAME = com.hcycom.iams.alarm.znxj.AMessageDeal.sendMsg(AMessageDeal.java:184)
DEBUG_FRAME = com.hcycom.iams.alarm.znxj.AMessageDeal.execTask(AMessageDeal.java:133)
DEBUG_FRAME = com.hcycom.iams.alarm.znxj.MainTimer$2.run(MainTimer.java:70)
DEBUG_FRAME = java.util.TimerThread.mainLoop(Timer.java:512)
DEBUG_FRAME = java.util.TimerThread.run(Timer.java:462)

代码:
static RPCServiceClient serviceClient =  null;
public String invokeWebService(String xmlStr, String url, String method,
String nameSpace, int timeout) {
String xml = null;

try {
while (serviceClient==null){
try {
serviceClient = new RPCServiceClient();
} catch (Exception e) {
serviceClient=null;
Thread.sleep(5000);
}
}
Options options = serviceClient.getOptions();
EndpointReference targetEPR = new EndpointReference(url);
options.setTo(targetEPR);
options.setTimeOutInMilliSeconds(timeout);
QName opAddEntry = new QName(nameSpace, method);
Object[] opAddEntryArgs = new Object[] { xmlStr };
Class[] classes = new Class[] { String.class };
xml = (String) serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs, classes)[0];
} catch (Exception e) {
log.error("WEBSERVICE调用异常" + e);
}
return xml;
}


急求!! --------------------编程问答-------------------- 给的错误信息像是日志
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,