WeBankBlockchain/WeCross

按照官方文档手动组网进行到路由配置时,出现Error

MagicTmac1 opened this issue · 3 comments

BUG描述
###三个报错如下
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.RouterLoginAccountContext]: Factory method 'newAdminContext' threw exception; nested exception is com.webank.wecross.exception.WeCrossException: routerLogin failed for: http request failed

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newAdminContext' defined in class path resource [com/webank/wecross/config/AdminContextConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.RouterLoginAccountContext]: Factory method 'newAdminContext' threw exception; nested exception is com.webank.wecross.exception.WeCrossException: routerLogin failed for: http request failed

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'p2PProcessorConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'routineManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HTLCManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newAdminContext' defined in class path resource [com/webank/wecross/config/AdminContextConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.RouterLoginAccountContext]: Factory method 'newAdminContext' threw exception; nested exception is com.webank.wecross.exception.WeCrossException: routerLogin failed for: http request failed

2022-04-04 19:40:58.537 [main] ERROR Service() - main, e:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weCrossHostConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'p2PProcessorConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'routineManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HTLCManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountManagerConfig': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newAdminContext' defined in class path resource [com/webank/wecross/config/AdminContextConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.wecross.account.RouterLoginAccountContext]: Factory method 'newAdminContext' threw exception; nested exception is com.webank.wecross.exception.WeCrossException: routerLogin failed for: http request failed
重现方式
重现 BUG 的操作步骤。
例如:

  1. cd ~/wecross-networks
  2. bash <(curl -sL https://github.com/WeBankBlockchain/WeCross/releases/download/resources/download_wecross.sh)
    3.cd ~/wecross-networks
    4.vim ipfile

在文件中键入以下内容

127.0.0.1:8250:25500
127.0.0.1:8251:25501
5.bash ./WeCross/build_wecross.sh -n payment -o routers-payment -f ipfile

成功输出如下信息

[INFO] Create routers-payment/127.0.0.1-8250-25500 successfully
[INFO] Create routers-payment/127.0.0.1-8251-25501 successfully
[INFO] All completed. WeCross routers are generated in: routers-payment/
6. ......一路按照官方文档直到启动路由bash start.sh出现以上报错。

截图
image
image
image
image

环境

  • 操作系统: [MACOS]
  • 环境java version "1.8.0_311",Gradle 7.4.1,mysql8.0+

希望大佬解答一下,为什么会出现以上错误,以及我需要如何解决这些错误

https://wecross.readthedocs.io/zh_CN/latest/docs/tutorial/env.html#id4

参考下这里,使用已经覆盖测试的jdk版本

我也是这个错误, 使用的是OracleJDK 1.8.0_251

请问一下解决了吗,我现在也遇到这个问题了