WSO2 APIM 4.3.0 使用 JDK 17 启动失败

问题描述 投票:0回答:1

我已经从wso2 github

下载了WSO2 APIM 4.3.0

WSO2 APIM:

4.3.0
Java:
JDK 17.0.12
操作系统:
Windows 11

并遵循同一页面中提到的先决条件。

  • 已安装
    JDK Version 17
  • JAVA_HOME
    环境变量已设置
  • 解压下载的zip文件并开始
    api-manager.bat

启动服务器时发现以下错误:

ERROR - APIUtil Failed to retrieve /internal/data/v1/application-policies from remote endpoint: Error while retrieving /internal/data/v1/application-policies. Received response with status code 404. Retry attempt 1 in 15 seconds.

错误日志:

[2024-09-24 22:36:46,416]  INFO - QpidServiceComponent Activating Andes Message Broker Engine...
[Broker] BRK-1001 : Startup : Version: 0.11 Build: 90784:90849
[Broker] MNG-1001 : Startup
[Broker] MNG-1004 : Ready : Using the platform JMX Agent
[Broker] BRK-1002 : Starting : Listening on TCP port 5672
[2024-09-24 22:36:47,370]  INFO - listening [Broker] BRK-1002 : Starting : Listening on TCP port 5672
[Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8672
[2024-09-24 22:36:47,382]  INFO - listening [Broker] BRK-1002 : Starting : Listening on TCP/SSL port 8672
[Broker] BRK-1004 : Qpid Broker Ready
[2024-09-24 22:36:47,415]  INFO - QpidServiceComponent AMQP Host Address : 0.0.0.0 Port : 5672
[2024-09-24 22:36:47,415]  INFO - QpidServiceComponent Successfully connected to AMQP server on port 5672
[2024-09-24 22:36:47,416]  INFO - QpidServiceComponent WSO2 Message Broker is started.
[2024-09-24 22:36:47,661]  INFO - BinaryDataReceiver Started Binary SSL Transport on port : 9711
[2024-09-24 22:36:47,663]  INFO - BinaryDataReceiver Started Binary TCP Transport on port : 9611
[2024-09-24 22:36:47,990]  INFO - ThriftServerStartupObserver  Thrift Data Receiver is disabled.
[2024-09-24 22:36:48,079]  INFO - PassThroughHttpListener Starting Pass-through HTTP Listener...
[2024-09-24 22:36:48,102]  INFO - PassThroughListeningIOReactorManager Pass-through HTTP Listener started on 0:0:0:0:0:0:0:0:8280
[2024-09-24 22:36:48,103]  INFO - PassThroughHttpMultiSSLListener Starting Pass-through HTTPS Listener...
[2024-09-24 22:36:48,128]  INFO - PassThroughListeningIOReactorManager Pass-through HTTPS Listener started on 0:0:0:0:0:0:0:0:8243
[2024-09-24 22:36:48,229]  INFO - certificate Connector [https-jsse-nio-9443], TLS virtual host [_default_], certificate type [UNDEFINED] configured from keystore [F:\WSO2_Learning\wso2am-4.3.0\wso2am-4.3.0\bin\../repository/resources/security/wso2carbon.jks] using alias [wso2carbon] with trust store [F:\WSO2_Learning\wso2am-4.3.0\wso2am-4.3.0\bin\../repository/resources/security/client-truststore.jks]
[2024-09-24 22:36:48,327]  INFO - TaskServiceImpl Task service starting in STANDALONE mode...
[2024-09-24 22:36:48,371]  INFO - RegistryEventingServiceComponent Successfully Initialized Eventing on Registry
[2024-09-24 22:36:48,512]  INFO - JMXServerManager JMX Service URL  : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
[2024-09-24 22:36:48,703]  WARN - CorrelationConfigManager Failed retrieving correlation configs. Retrying after 2 seconds...
[2024-09-24 22:36:48,703]  WARN - KeyManagerConfigurationDataRetriever Failed retrieving Key Manager Configurations from remote endpoint. Retrying after 4 seconds...
[2024-09-24 22:36:49,141] ERROR - APIUtil Failed to retrieve /internal/data/v1/application-policies from remote endpoint: Error while retrieving /internal/data/v1/application-policies. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:49,141] ERROR - APIUtil Failed to retrieve /internal/data/v1/subscription-policies from remote endpoint: Error while retrieving /internal/data/v1/subscription-policies. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:49,141] ERROR - APIUtil Failed to retrieve /internal/data/v1/api-policies from remote endpoint: Error while retrieving /internal/data/v1/api-policies. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:49,141] ERROR - APIUtil Failed to retrieve /internal/data/v1/application-key-mappings from remote endpoint: Error while retrieving /internal/data/v1/application-key-mappings. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:49,141] ERROR - APIUtil Failed to retrieve /internal/data/v1/applications from remote endpoint: Error while retrieving /internal/data/v1/applications. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:49,141] ERROR - APIUtil Failed to retrieve /internal/data/v1/apis from remote endpoint: Error while retrieving /internal/data/v1/apis. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:49,142] ERROR - APIUtil Failed to retrieve /internal/data/v1/subscriptions from remote endpoint: Error while retrieving /internal/data/v1/subscriptions. Received response with status code 404. Retry attempt 1 in 15 seconds.
[2024-09-24 22:36:50,721]  WARN - CorrelationConfigManager Failed retrieving correlation configs. Retrying after 4 seconds...
[2024-09-24 22:36:52,721]  WARN - KeyManagerConfigurationDataRetriever Failed retrieving Key Manager Configurations from remote endpoint. Retrying after 16 seconds...
[2024-09-24 22:36:54,737]  WARN - CorrelationConfigManager Failed retrieving correlation configs. Retrying after 8 seconds...
[2024-09-24 22:37:02,753]  WARN - CorrelationConfigManager Failed retrieving correlation configs. Retrying after 16 seconds...
[2024-09-24 22:37:04,157] ERROR - APIUtil Failed to retrieve /internal/data/v1/subscriptions from remote endpoint: Error while retrieving /internal/data/v1/subscriptions. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:04,157] ERROR - APIUtil Failed to retrieve /internal/data/v1/application-policies from remote endpoint: Error while retrieving /internal/data/v1/application-policies. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:04,158] ERROR - APIUtil Failed to retrieve /internal/data/v1/application-key-mappings from remote endpoint: Error while retrieving /internal/data/v1/application-key-mappings. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:04,158] ERROR - APIUtil Failed to retrieve /internal/data/v1/subscription-policies from remote endpoint: Error while retrieving /internal/data/v1/subscription-policies. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:04,158] ERROR - APIUtil Failed to retrieve /internal/data/v1/applications from remote endpoint: Error while retrieving /internal/data/v1/applications. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:04,159] ERROR - APIUtil Failed to retrieve /internal/data/v1/api-policies from remote endpoint: Error while retrieving /internal/data/v1/api-policies. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:04,160] ERROR - APIUtil Failed to retrieve /internal/data/v1/apis from remote endpoint: Error while retrieving /internal/data/v1/apis. Received response with status code 404. Retry attempt 2 in 30 seconds.
[2024-09-24 22:37:08,734]  WARN - KeyManagerConfigurationDataRetriever Failed retrieving Key Manager Configurations from remote endpoint. Retrying after 64 seconds...
[2024-09-24 22:37:18,763]  WARN - CorrelationConfigManager Failed retrieving correlation configs. Retrying after 32 seconds...
[2024-09-24 22:37:34,179] ERROR - APIUtil Failed to retrieve /internal/data/v1/applications from remote endpoint: Error while retrieving /internal/data/v1/applications. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:34,181] ERROR - APIUtil Failed to retrieve /internal/data/v1/subscription-policies from remote endpoint: Error while retrieving /internal/data/v1/subscription-policies. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:34,182] ERROR - APIUtil Failed to retrieve /internal/data/v1/application-key-mappings from remote endpoint: Error while retrieving /internal/data/v1/application-key-mappings. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:34,183] ERROR - APIUtil Failed to retrieve /internal/data/v1/apis from remote endpoint: Error while retrieving /internal/data/v1/apis. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:34,185] ERROR - APIUtil Failed to retrieve /internal/data/v1/api-policies from remote endpoint: Error while retrieving /internal/data/v1/api-policies. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:34,186] ERROR - APIUtil Failed to retrieve /internal/data/v1/subscriptions from remote endpoint: Error while retrieving /internal/data/v1/subscriptions. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:34,186] ERROR - APIUtil Failed to retrieve /internal/data/v1/application-policies from remote endpoint: Error while retrieving /internal/data/v1/application-policies. Received response with status code 404. Retry attempt 3 in 60 seconds.
[2024-09-24 22:37:50,786]  WARN - CorrelationConfigManager Failed retrieving correlation configs. Retrying after 64 seconds...

我尝试重新启动 wso2 apim 服务器几次并添加主机条目以及提到的就像这里

JDK 17 是否存在任何产品安装或兼容性问题?

wso2 wso2-api-manager java-17 startupscript
1个回答
0
投票

这个错误似乎是由数据库错误引起的。如果您使用不同的数据库,请在 APIM 4.3.0 包内的部署.toml 文件中配置它。

[database.apim]
type = "mysql" # or your database type
url = "jdbc:mysql://<db_host>:<db_port>/<db_name>"
username = "<db_user>"
password = "<db_password>"
© www.soinside.com 2019 - 2024. All rights reserved.