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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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:20200reason: 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:20201reason: 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版本兼容
FISCO BCOS开发第一个区块链应用相关推荐
- 利用Hyperledger Fabric开发第一个区块链应用
利用Hyperledger Fabric开发第一个区块链应用 Fabric入门 Fabric 我们通过一个简单的示例程序来了解Fabric应用是如何运行的.在这个例子中使用的应用程序和智能合约(链码) ...
- Fisco开发第一个区块链应用
一.部署区块链 1. 环境准备 第一步:安装JDK 1.8版本. 第二步:下载fisco压缩包. 链接:https://pan.baidu.com/s/1_ivw1FeKVhbVZIAbzvdSQg ...
- FISCO BCOS搭建多机区块链网络
我使用两台虚拟机,IP地址分别是192.168.217.132,192.168.217.128,每台配置一个节点. 1.生成区块链网络配置文件 #根据自己的机器IP填写cat >> ipc ...
- 实战-动手开发第一个区块链投票DAPP
转载自https://www.imooc.com/article/25330 前言 我是一个菜鸟,所以在代码质量上可能不太好,欢迎指点. 阅读本文可能需要一定的基础,有疑问欢迎留言. 本篇文章,将带读 ...
- Fisco技术文档总结2---开发第一个区块链应用
开发第一个区块链应用 本文介绍合约编译以及如何部署到区块链,通过Java SDK实现对区块链上合约的调用访问. 本教程要求用户熟悉Linux操作环境,具备Java开发的基本技能,能够使用Gradle工 ...
- Linux下搭建第一个区块链网络(FISCO BCOS)
Linux下搭建第一个区块链网络(FISCO BCOS) 概述 搭建单群组FISCO BCOS联盟链 配置及使用控制台 部署及调用HelloWorld合约 概述 FISCO BCOS是由国内企业主导研 ...
- Ubuntu21.04搭建FISCO BCOS第一个区块链helloword
官方地址:搭建第一个区块链网络 - FISCO BCOS v2.7.2 文档 1. 搭建单群组FISCO BCOS联盟链 安装依赖curl sudo apt install -y openssl cu ...
- 利用Hyperledger Fabric开发你的第一个区块链应用
利用Hyperledger Fabric开发你的第一个区块链应用 本文示例源于fabric-samples中的fabcar https://github.com/hyperledger/fabric- ...
- Fisco技术文档总结1---搭建第一个区块链网络
前言 本文的记录与总结依照于FISCO BCOS 技术文档学习联盟链搭建的相关知识,详细搭建过程见文档,本文仅作参考 本文通过在单机上部署一条4节点的FISCO BCOS联盟链,掌握FISCO BCO ...
最新文章
- 不会这些搜索技巧,真别说你懂 GitHub!
- Spark RDD/Core 编程 API入门系列之动手实战和调试Spark文件操作、动手实战操作搜狗日志文件、搜狗日志文件深入实战(二)...
- Java学习笔记26
- C指针--通过二级指针往回拉数据
- 图片二:matplotlib、PIL、CV2操作图片
- 声明对象_计算机各语言数据类型及对象声明之区别
- AtCoder AGC001D Arrays and Palindrome (构造)
- Linux下安装oracle数据库步骤
- Java面向对象--小游戏2
- 没有php_pdo.dll,php_pdo.dll,下载,简介,描述,修复,等相关问题一站搞定_DLL之家
- 五、RabbitMQ管理与高可用集群
- 车牌识别系统开发记录(四) 国内车牌特点
- 含泪整理最优质鲜肉VRay材质球素材,你想要的这里都有
- mediapipe示例运行
- Jeecg Boot 2.2 首个里程碑版本发布,基于SpringBoot的低代码平台
- 无心剑中译奥修《错在您》
- 安川A1000变频器通过DriveWizard Plus设置加减速时间
- 计算机网络各层的协议
- SAP MM 事务代码VL10B对于有多个Delivery Schedule的STO item的处理
- 怎样把图片保存为html文件,在Word中通过把编辑的图片另存为HTML文件实现转换图片...