问题描述
错误信息:ParameterIncludeImpl:CallStack=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)代码:staticRPCServiceClientserviceClient=null;publicStringinvokeWebService(StringxmlStr,Stringurl,Stringmethod,StringnameSpace,inttimeout){Stringxml=null;try{while(serviceClient==null){try{serviceClient=newRPCServiceClient();}catch(Exceptione){serviceClient=null;Thread.sleep(5000);}}Optionsoptions=serviceClient.getOptions();EndpointReferencetargetEPR=newEndpointReference(url);options.setTo(targetEPR);options.setTimeOutInMilliSeconds(timeout);QNameopAddEntry=newQName(nameSpace,method);Object[]opAddEntryArgs=newObject[]{xmlStr};Class[]classes=newClass[]{String.class};xml=(String)serviceClient.invokeBlocking(opAddEntry,opAddEntryArgs,classes)[0];}catch(Exceptione){log.error("WEBSERVICE调用异常"+e);}returnxml;}