问题描述:
当客户的EAS升级安全模式以后,原有的接口代码会抛出RMIException异常。
问题分析:
安全模式的原理可以参考:链接
在安全模式下,每次服务调用,均需要传递服务调用上下文信息,比如SessionId和Cookie,如果接口代码中不包含,将会引发服务调用异常。
解决办法
升级易对接EAS对接应用到最新版。易对接EAS对接应用已经完成对安全模式的支持,现有客户可以一键升级到 最新版。操作办法参考:对接应用管理
问题描述:
导出客户信息时报错,没有明确的错误提示:
接口:ormrpc/services/WSExportCustomerFacade
请求文件:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:SessionId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string"
xmlns:ns1="http://login.webservice.bos.kingdee.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">74996490-876e-463e-b8b2-551d9696e4fa</ns1:SessionId>
</soapenv:Header>
<soapenv:Body>
<ns2:exportCustomerData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://webservice.customer.ws.basedata.eas.kingdee.com">
<start href="#id0"/>
<rows href="#id1"/>
</ns2:exportCustomerData>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">25200</multiRef>
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">100</multiRef>
</soapenv:Body>
</soapenv:Envelope>
反馈 信息:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: com.kingdee.bos.webservice.WSInvokeException: com.kingdee.bos.BOSException: Server Component wrap a Throwable. Exception Type is [javax.ejb.EJBException]
Caused exception message is: Unexpected system failure, see server log for details. [Client -- String Serialize]
faultActor:
faultNode:
faultDetail:
{}com.kingdee.bos.webservice.WSInvokeException:null
{http://xml.apache.org/axis/}hostname:ecs-6b36
问题分析:
报错时发现客户正好为25200个,意味着本次请求将获取不到任何数据,在这个情况下会报错,当客户数量增加到25201时,这个错误消失。