Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MagicTmac1 opened this issue Apr 4, 2022 · 3 comments
Open

Comments

@MagicTmac1
Copy link

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+

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

@ywy2090
Copy link
Contributor

ywy2090 commented Jun 9, 2022

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

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

@MerzCheung
Copy link

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

@simplecolding
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants