API Manager 2.0.0 网关工作人员在启动时出错 [英] ERROR on API Manager 2.0.0 gateway worker on start-up
问题描述
网关工作节点在启动时会记录以下错误.
The following ERROR is logged on the gateway worker nodes on start-up.
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.
Despite the error the gateway worker nodes startup and the environment can be used to successfully invoke a sample API.
所有 apim 节点,禁止流量管理器,但是报告这些警告
All the apim nodes, bar the traffic manager, however report these warnings
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...
环境:
- APIM 2.0.0 集群
- 发布者(默认配置文件)
- 商店(默认配置文件)
- gw 经理和 2 个 gw 工作人员(默认配置文件)
- 流量管理器(使用流量管理器配置文件)
- 数据库:MariaDB 服务器,wsrep_25.10.r4144
- 用户存储:读/写 LDAP
- JVM:java 版本1.8.0_92"
- 操作系统:CentOS Linux 版本 7.0.1406(核心)
- n.b.使用默认包设置未配置密钥管理器
推荐答案
最近遇到这个问题,问题是throttle#data#v1.war (repository/deployment/server/webapps/throttle#data#v1.war)在工作人员启动时尚未部署.如果您有分布式 AM 2.0 部署,请确保 Keymanager 已启动,并且在工作 srartup 之前将 throttle#data#v1.war 部署在 keymanager 中.
I encountered the issue recently and the issue was throttle#data#v1.war (repository/deployment/server/webapps/throttle#data#v1.war) hasn't been deployed at the time worker starts up. If you have a distributed AM 2.0 deployment make sure Keymanager is up and throttle#data#v1.war is deployed in keymanager before worker srartup..
这篇关于API Manager 2.0.0 网关工作人员在启动时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!