報錯資訊如下:
org.apache.axis2.AxisFault: Internal Error
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
at com.baosight.bsbi.bs.rq.common.TestJob4.main(TestJob4.java:40)
代碼如下:
EndpointReference targetEPR = new EndpointReference(url);
options.setTo(targetEPR);
// options.setAction("urn:getPrice");
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMFactory fac = OMAbstractFactory.getOMFactory();
String tns = "";
// 命名空間
OMNamespace omNs = fac.createOMNamespace(tns, "");
OMElement method = fac.createOMElement("biws_job_p01", omNs);
OMElement jobid = fac.createOMElement("job_id", omNs);
OMElement log_id = fac.createOMElement("log_id", omNs);
jobid.addChild(fac.createOMText(jobid, "TEST1"));
log_id.addChild(fac.createOMText(log_id, "TEST1"));
method.addChild(jobid);
method.addChild(log_id);
method.build();
OMElement result = sender.sendReceive(method);
請問怎么解決
uj5u.com熱心網友回復:
建議打斷點除錯一下,判斷一下例外出錯位置轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/254191.html
標籤:Web 開發
上一篇:求助大神代碼解答!!!
下一篇:ambari安裝HDP報錯:Cannot match package for regexp name hadoop_${stack_version}-yarn
