以下错误记录在启动时的网关工作节点上。
2016-08-23 12:32:42,344 [-] [Timer-5] ERROR KeyTemplateRetriever Exception when retrieving throttling data from remote endpoint
Unexpected character (<) at position 0.
at org.json.simple.parser.Yylex.yylex(Unknown Source)
at org.json.simple.parser.JSONParser.nextToken(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.json.simple.parser.JSONParser.parse(Unknown Source)
at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.retrieveKeyTemplateData(KeyTemplateRetriever.java:100)
at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWebService(KeyTemplateRetriever.java:111)
at org.wso2.carbon.apimgt.gateway.throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)尽管出现了错误,网关、工作节点、启动和环境仍然可以用来成功地调用示例API。
所有apim节点,除流量管理器外,都报告这些警告。
2016-08-22 16:40:56,652 [-] [Timer-5] WARN KeyTemplateRetriever Failed retrieving throttling data from remote endpoint: Connection refused. Retrying after 15 seconds...
2016-08-22 16:40:56,653 [-] [Timer-4] WARN BlockingConditionRetriever Failed retrieving Blocking Conditions from remote endpoint: Connection refused. Retrying after 15 seconds...环境:
发布于 2016-08-23 15:41:27
如果像下面这样在api-manager.xml中禁用高级节流,这个错误就会消失。如果启用该功能,则需要一个密钥管理器节点。
<EnableAdvanceThrottling>false</EnableAdvanceThrottling>发布于 2016-08-25 11:14:19
我最近遇到了这个问题,问题是在员工启动时还没有部署(repository/deployment/server/webapps/throttle#data#v1.war)。如果您有一个分布式的AM2.0部署,请确保密钥管理器已启动,并且在工作人员启动之前将throttle#data#v1.war部署在密钥管理器中。
https://stackoverflow.com/questions/39101064
复制相似问题