目前我们正在尝试通过WSO2 API管理器公开Axis2 web服务。然而,在某些情况下,服务不返回结果,查看WSO2 API管理器上的日志,我们看到如下
ERROR {org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler} - Unable to load throttling policy using key: gov:/apimgt/applicationdata/tiers.xml {org.wso2.carbon.apimgt.gateway.handlers.throttling.APIThrottleHandler} TID: [0] [AM] [2013-01-07 16:42:22,951]
INFO {org.apache.synapse.mediators.builtin.LogMediator} - To: /TestService/1.0.0, WSAction: urn:testOperation, SOAPAction: urn:testOperation, MessageID: urn:uuid:a8f94f58-5e2d-4d51-afc7-83182b51d173, Direction: request, STATUS = Executing default 'fault' sequence, ERROR_CODE = 0, ERROR_MESSAGE = Unable to load throttling policy using key: gov:/apimgt/applicationdata/tiers.xml, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><p:testOperation xmlns:p="http://example.com"><param>d1</param></p:testOperation></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}
对于配置,我使用默认的h2数据库作为注册表,mysql数据库作为用户和api管理器数据库。
这个问题是一个已知的问题[1],将在下一个AM版本中修复。在一个实例中,当我们尝试同时调用两个不同的api或在短时间内调用时,我们也遇到了这个问题。
谢谢;
[1] https://wso2.org/jira/browse/apimanager - 835