无法为 ssl://10.10.183.27:9714 借用客户端。组织wso2.carbon.databridge.agent.exception

Cannot borrow client for ssl://10.10.183.27:9714. org.wso2.carbon.databridge.agent.exception

我正在尝试将我的 wso2 API 管理器连接到外部 LDAP/Active 目录。 LDAP 连接正常,但我在启动服务器时遇到此错误。

9714 是 SSL 端口

[2018-07-13 14:52:03,250] ERROR - JMSListener Unable to continue server startup as it seems the JMS Provider is not yet started. Please start the JMS provider now. [2018-07-13 14:52:03,251] ERROR - JMSListener Connection attempt : 5 for JMS Provider failed. Next retry in 320 seconds [2018-07-13 14:52:27,889] WARN - DataEndpointGroup No receiver is reachable at reconnection, will try to reconnect every 30 sec [2018-07-13 14:52:27,906] INFO - DataBridge user admin connected [2018-07-13 14:52:27,914] ERROR - AuthenticationServiceImpl Invalid User : admin [2018-07-13 14:52:27,915] ERROR - DataEndpointConnectionWorker Error while trying to connect to the endpoint. Cannot borrow client for ssl://10.10.183.27:9714. org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://10.10.183.27:9714. at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:134) at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.run(DataEndpointConnectionWorker.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to data receiver :/10.10.183.27:9714 at org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint.login(BinaryDataEndpoint.java:50) at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:128) ... 6 more

此错误通常是由于分析配置或限制配置引起的。

尝试在 api-manager.xml 文件中禁用 Analytics 发布者(如果已启用),或者查看 DASServerUrl 元素下的连接详细信息。

<Analytics>
    <!-- Enable Analytics for API Manager -->
    <Enabled>false</Enabled>

    <!-- Server URL of the remote DAS/CEP server used to collect statistics. Must
         be specified in protocol://hostname:port/ format.

         An event can also be published to multiple Receiver Groups each having 1 or more receivers. Receiver
         Groups are delimited by curly braces whereas receivers are delimited by commas.
         Ex - Multiple Receivers within a single group
         tcp://localhost:7612/,tcp://localhost:7613/,tcp://localhost:7614/

         Ex - Multiple Receiver Groups with two receivers each
         {tcp://localhost:7612/,tcp://localhost:7613},{tcp://localhost:7712/,tcp://localhost:7713/} -->
    <DASServerURL>{tcp://localhost:7612}</DASServerURL>
    <!--DASAuthServerURL>{ssl://localhost:7712}</DASAuthServerURL-->
    <!-- Administrator username to login to the remote DAS server. -->
    <DASUsername>${admin.username}</DASUsername>
    <!-- Administrator password to login to the remote DAS server. -->
    <DASPassword>${admin.password}</DASPassword>

您也可以尝试禁用或查看高级限制功能在 ReceiverUrlGroup 和 AuthUrlGroup 中的配置。

<ThrottlingConfigurations>
    <EnableAdvanceThrottling>false</EnableAdvanceThrottling>
    <DataPublisher>
        <Enabled>true</Enabled>
        <Type>Binary</Type>
        <ReceiverUrlGroup>tcp://${carbon.local.ip}:${receiver.url.port}</ReceiverUrlGroup>
        <AuthUrlGroup>ssl://${carbon.local.ip}:${auth.url.port}</AuthUrlGroup>
        <Username>${admin.username}</Username>
        <Password>${admin.password}</Password>

我遇到了同样的问题。检查流量管理器的日志,如果没有任何异常。 Kill & start 流量管理器帮助了我。