如何解决成功启动后,WSO2AM发生了奇怪的错误
我通过将下载的ZIP文件解压缩到/opt/wso2am/wso2am-3.2.0/
中,安装了WSO2AM 3.2.0的新版本。我还设置了两个数据库(db_am和db_shared),并且按照文档中的描述在文件deployment.toml
中使用它们。然后,我仅通过执行wso2server.sh
脚本来启动应用程序。它可以正常启动,并显示以下几行,告诉我该应用程序已成功启动。
TID: [-1234] [] [2020-10-26 15:59:14,710] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server : WSO2 API Manager-3.2.0
TID: [-1234] [] [2020-10-26 15:59:14,717] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 53 sec
TID: [-1] [] [2020-10-26 15:59:14,776] INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin connected
但是此后,它给了我以下错误:
TID: [-1234] [] [2020-10-26 15:59:15,600] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,903] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,932] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,933] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1234] [internal/data/v1] [2020-10-26 15:59:15,933] ERROR {org.wso2.carbon.user.core.common.AbstractUserStoreManager} - java.lang.NumberFormatException: For input string: "q0MHWf0UB+WyZD03ES/pzA=="
TID: [-1] [] [2020-10-26 15:59:15,651] ERROR {org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker} - Error while trying to connect to the endpoint. Cannot borrow client for ssl://<the servers local ip>:9711. org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://<the servers local ip>:9711.
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:145)
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 :/<the servers local ip>:9711
at org.wso2.carbon.databridge.agent.endpoint.binary.BinaryDataEndpoint.login(BinaryDataEndpoint.java:50)
at org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:139)
... 6 more
Caused by: org.wso2.carbon.databridge.commons.exception.AuthenticationException: org.wso2.carbon.identity.base.IdentityRuntimeException: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
然后,这些行会无限重复。我真的不明白这些错误是从哪里来的。
- 前几个错误中的字符串看起来像是密码或令牌,但我尚未在配置中的任何位置设置此字符串。
- 其他错误,告诉我有关借用一些客户的信息,对我来说不再有意义
这些错误来自哪里,我该如何解决它们,甚至找出导致它们的原因?
解决方法
对于数据库问题,请检查您的数据库服务器是否已启动并正在运行,并且在deployment.toml(用户名,密码,URL,端口)中是否正确配置了数据库配置,并且您已经按照以下步骤对数据库运行了正确的MySQL脚本:文档。 (也不要忘记包括JDBC驱动程序)
例如:deployment.toml配置
...
,
检查是否在其他网络接口(而不是 )上打开了端口9711。您可以通过执行以下命令来验证这一点。
sudo lsof -i -P -n
如果它对另一个网络接口开放,则关闭该端口,然后 然后再次启动APIM服务器。
否则,您可以更改APIM配置以配置新端口。
[[apim.throttling.url_group]]
traffic_manager_urls = ["tcp://<server_ip>:<port>","tcp://<server_ip>:<port>"]
traffic_manager_auth_urls = ["ssl://<server_ip>:<port>","ssl://<server_ip>:<port>"]
type = "failover"
下面是一个示例配置。
[[apim.throttling.url_group]]
traffic_manager_urls = ["tcp://localhost:9611","tcp://localhost:9611"]
traffic_manager_auth_urls = ["ssl://localhost:9711","ssl://localhost:9711"]
type = "failover"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。