FISCO BCOS开发第一个区块链应用

1、wsl安装jdk

(96条消息) 【从零开始】在Windows中使用Linux——在WSL使用CLion、IDEA、PyCharm(安装到建立工程)——更新于2021.12_ymzhu385的博客-CSDN博客_idea wsl

2、在WSL使用IDEA

(96条消息) 【从零开始】在Windows中使用Linux——在WSL使用CLion、IDEA、PyCharm(安装到建立工程)——更新于2021.12_ymzhu385的博客-CSDN博客_idea wsl

然后打开idea,打开wsl目录下的项目即可。

下载wget https://github.com/FISCO-BCOS/LargeFiles/raw/master/tools/asset-app.tar.gz

解压tar -zxvf asset-app.tar.gz

报错

Exception in thread "main" org.springframework.beans.factory.BeanCreatio
nException: Error creating bean with name 'bcosSDK' defined in class pat
h resource [applicationContext.xml]: Bean instantiation via constructor 
failed; nested exception is org.springframework.beans.BeanInstantiationE
xception: Failed to instantiate [org.fisco.bcos.sdk.BcosSDK]: Constructo
r threw exception; nested exception is org.fisco.bcos.sdk.BcosSDKExcepti
on: create BcosSDK failed, error info: init channel network error!      
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.springframework.beans.factory.support.ConstructorResolver
.instantiate(ConstructorResolver.java:315)
        at org.springframework.beans.factory.support.ConstructorResolver
.autowireConstructor(ConstructorResolver.java:296)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.j
ava:1372)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.ja
va:1222)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582
)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) 
        at org.springframework.beans.factory.support.AbstractBeanFactory
.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)   
        at org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)  
        at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:583)
        at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:144)
        at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:85)
        at org.fisco.bcos.asset.client.AssetClient.initialize(AssetClien
t.java:33)
        at org.fisco.bcos.asset.client.AssetClient.main(AssetClient.java
:171)
Caused by: org.springframework.beans.BeanInstantiationException: Failed 
to instantiate [org.fisco.bcos.sdk.BcosSDK]: Constructor threw exception
; nested exception is org.fisco.bcos.sdk.BcosSDKException: create BcosSD
K failed, error info: init channel network error!
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtil
s.java:224)
        at org.springframework.beans.factory.support.SimpleInstantiation
Strategy.instantiate(SimpleInstantiationStrategy.java:117)
        at org.springframework.beans.factory.support.ConstructorResolver
.instantiate(ConstructorResolver.java:311)
        ... 16 more
Caused by: org.fisco.bcos.sdk.BcosSDKException: create BcosSDK failed, e
rror info: init channel network error!
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.BcosSDK.<init>(BcosSDK.java:108)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.
newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.
newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorI
mpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller
(Constructor.java:500)
        at java.base/java.lang.reflect.Constructor.newInstance(Construct
or.java:481)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtil
s.java:211)
        ... 18 more
Caused by: io.netty.channel.ChannelException: init channel network error
!
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.channel.ChannelImp.start(ChannelImp.java:9
6)
        at org.fisco.bcos.sdk.BcosSDK.<init>(BcosSDK.java:75)
        ... 24 more
Caused by: org.fisco.bcos.sdk.network.NetworkException: org.fisco.bcos.s
dk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.network.NetworkImp.start(NetworkImp.java:2
68)
        at org.fisco.bcos.sdk.channel.ChannelImp.start(ChannelImp.java:8
9)
        ... 25 more
Caused by: org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.network.NetworkImp.start(NetworkImp.java:2
32)
        ... 26 more
root@DESKTOP-R1QB6JE:~/fisco/asset-app/dist# bash asset_run.sh deploy
Exception in thread "main" org.springframework.beans.factory.BeanCreatio
nException: Error creating bean with name 'bcosSDK' defined in class pat
h resource [applicationContext.xml]: Bean instantiation via constructor 
failed; nested exception is org.springframework.beans.BeanInstantiationE
xception: Failed to instantiate [org.fisco.bcos.sdk.BcosSDK]: Constructo
r threw exception; nested exception is org.fisco.bcos.sdk.BcosSDKExcepti
on: create BcosSDK failed, error info: init channel network error!      
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.springframework.beans.factory.support.ConstructorResolver
.instantiate(ConstructorResolver.java:315)
        at org.springframework.beans.factory.support.ConstructorResolver
.autowireConstructor(ConstructorResolver.java:296)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.j
ava:1372)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.ja
va:1222)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582
)
        at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) 
        at org.springframework.beans.factory.support.AbstractBeanFactory
.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)   
        at org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)  
        at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:583)
        at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:144)
        at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:85)
        at org.fisco.bcos.asset.client.AssetClient.initialize(AssetClien
t.java:33)
        at org.fisco.bcos.asset.client.AssetClient.main(AssetClient.java
:171)
Caused by: org.springframework.beans.BeanInstantiationException: Failed 
to instantiate [org.fisco.bcos.sdk.BcosSDK]: Constructor threw exception
; nested exception is org.fisco.bcos.sdk.BcosSDKException: create BcosSD
K failed, error info: init channel network error!
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtil
s.java:224)
        at org.springframework.beans.factory.support.SimpleInstantiation
Strategy.instantiate(SimpleInstantiationStrategy.java:117)
        at org.springframework.beans.factory.support.ConstructorResolver
.instantiate(ConstructorResolver.java:311)
        ... 16 more
Caused by: org.fisco.bcos.sdk.BcosSDKException: create BcosSDK failed, e
rror info: init channel network error!
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.BcosSDK.<init>(BcosSDK.java:108)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.
newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.
newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorI
mpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller
(Constructor.java:500)
        at java.base/java.lang.reflect.Constructor.newInstance(Construct
or.java:481)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtil
s.java:211)
        ... 18 more
Caused by: io.netty.channel.ChannelException: init channel network error
!
org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.channel.ChannelImp.start(ChannelImp.java:9
6)
        at org.fisco.bcos.sdk.BcosSDK.<init>(BcosSDK.java:75)
        ... 24 more
Caused by: org.fisco.bcos.sdk.network.NetworkException: org.fisco.bcos.s
dk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/


        at org.fisco.bcos.sdk.network.NetworkImp.start(NetworkImp.java:2
68)
        at org.fisco.bcos.sdk.channel.ChannelImp.start(ChannelImp.java:8
9)
        ... 25 more
Caused by: org.fisco.bcos.sdk.network.NetworkException:
* TRACE INFORMATION:
----------------------------
====> STEP1: try to connect nodes with ecdsa context...
<==== STEP1-1: Load certificates for ecdsa context success...
<==== STEP1 Result: try to connect nodes with ecdsa context failed. reas
on:
Failed to connect to all the nodes!
* ssl handshake failed:/127.0.0.1:20200
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.
* ssl handshake failed:/127.0.0.1:20201
 reason: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert interna
l error. Please make sure the certificate are correctly configured and c
opied.

----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nod
es with sm-context...
<==== STEP2 Result: connect with sm context failed for cert missing.    
* Missed certificates:
[conf/gm/gmca.crt,conf/gm/gmsdk.crt,conf/gm/gmsdk.key,conf/gm/gmensdk.ke
y,conf/gm/gmensdk.crt,]
currentPath: /root/fisco/asset-app/dist
----------------------------
<====> Error: try to connect nodes with both ecdsa and sm context failed
 <====>
<====> Please refer to github issue: https://github.com/FISCO-BCOS/java-
sdk/issues/536
<====> Please refer to fisco-docs: https://fisco-bcos-documentation.read
thedocs.io/zh_CN/latest/docs/faq/connect.html
----------------------------
* FISCO BCOS Java SDK Version: 2.9.0
* Support secp256k1 : true
* Java Version : 12
* JDK Disabled NamedCurves : null
* JDK DisableNative Option : false
* OS Name : Linux
* OS Arch : amd64
* OS Version : 4.4.0-19041-Microsoft
* JVM Version : 12+33
* JVM Vendor : Oracle Corporation
* JVM Vendor URL : https://java.oracle.com/
        at org.fisco.bcos.sdk.network.NetworkImp.start(NetworkImp.java:232)
        ... 26 more

证书问题 |FISCO BCOS开发问题排查_FISCO_BCOS的博客-CSDN博客

jdk版本问题

react Native java JDK与Gradle版本不兼容 构建失败_Mr.D.的博客-CSDN博客_gradle与jdk版本兼容

猜你喜欢

转载自blog.csdn.net/weixin_40889839/article/details/126834705