WSO2 APIM 4.0:在网关中部署 api 时出错

WSO2 APIM 4.0 : Error Deploying api in Gateway

我已经设置了一个分布式 wso2 APIM 4.0.0 平台,如下所示:

1 个 ISKM、1 个 GW、1 个控制计划、1 个与控制计划分离的流量管理器

当我启动我的组件时,一切似乎都很好。 当我尝试发布 api 时,我看到它在发布者组件中被标记为“已发布”。 但我在网关日志中收到以下错误:

ERROR {org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer} - Error deploying 93691a7d-b4c4-4857-b51f-d033c3b5b86c in Gateway org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.exception.ArtifactSynchronizerException: Error deploying 93691a7d-b4c4-4857-b51f-d033c3b5b86c in Gateway
        at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.retrieveArtifact_aroundBody2(InMemoryAPIDeployer.java:130)
        at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.retrieveArtifact(InMemoryAPIDeployer.java:110)
        at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.deployAPI_aroundBody0(InMemoryAPIDeployer.java:87)
        at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.deployAPI(InMemoryAPIDeployer.java:82)
        at org.wso2.carbon.apimgt.gateway.listeners.GatewayJMSMessageListener.handleNotificationMessage_aroundBody2(GatewayJMSMessageListener.java:152)
        at org.wso2.carbon.apimgt.gateway.listeners.GatewayJMSMessageListener.handleNotificationMessage(GatewayJMSMessageListener.java:122)
        at org.wso2.carbon.apimgt.gateway.listeners.GatewayJMSMessageListener.onMessage_aroundBody0(GatewayJMSMessageListener.java:97)
        at org.wso2.carbon.apimgt.gateway.listeners.GatewayJMSMessageListener.onMessage(GatewayJMSMessageListener.java:73)
        at org.wso2.carbon.apimgt.common.jms.JMSTaskManager$MessageListenerTask.handleMessage(JMSTaskManager.java:656)
        at org.wso2.carbon.apimgt.common.jms.JMSTaskManager$MessageListenerTask.run(JMSTaskManager.java:555)
        at org.apache.axis2.transport.base.threads.NativeWorkerPool.run(NativeWorkerPool.java:172)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.exception.ArtifactSynchronizerException: {"code":900967,"message":"General Error","description":"Server Error Occurred","moreInfo":"","error":[]}Event-Hub status code is : 500
        at org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.DBRetriever.retrieveArtifact_aroundBody4(DBRetriever.java:115)
        at org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.DBRetriever.retrieveArtifact(DBRetriever.java:96)
        at org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.DBRetriever.retrieveArtifact_aroundBody2(DBRetriever.java:83)
        at org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.DBRetriever.retrieveArtifact(DBRetriever.java:67)
        at org.wso2.carbon.apimgt.gateway.InMemoryAPIDeployer.retrieveArtifact_aroundBody2(InMemoryAPIDeployer.java:119)
        ... 13 more

我还在流量管理器节点日志中收到以下错误:

[internal/data/v1] [2022-03-09 18:58:00,686] ERROR {org.wso2.carbon.apimgt.rest.api.util.exception.GlobalThrowableMapper} - Configured read only environment not found: Default

帮个兄弟=)

此致

我认为您也需要在流量管理器节点配置中添加 [[apim.gateway.environment]] 部分,让他知道 'Default' 环境名称

这已在新版本 4.1 中修复