启动时 API Manager 2.0.0 网关工作器上的错误 [英] ERROR on API Manager 2.0.0 gateway worker on start-up

查看:17
本文介绍了启动时 API Manager 2.0.0 网关工作器上的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下错误记录在启动时网关工作节点上.

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 manager 和 2 gw workers(默认配置文件)
  • 流量管理器(使用流量管理器配置文件)
  • 数据库: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)在 worker 启动时尚未部署.如果您有分布式 AM 2.0 部署,请确保 Keymanager 已启动,并且在 worker srartup 之前在 keymanager 中部署了 Throttle#data#v1.war.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆