FISCO-BCOS / FISCO-BCOS/java-sdk
netty或者ffi冲突的问题
- Dominant language
- Java
- Stars
- 58
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
Java-sdk 2.8.0程序,netty默认版本4.1.60
fisco-bcos-brower,netty默认版本4.1.53
先启动fisco-bcos-browser,再启动Java-sdk 2.8.0程序会报
java.lang.UnsatisfiedLinkError: com.webank.wedpr.crypto.NativeInterface.secp256k1GenKeyPair()Lcom/webank/wedpr/crypto/CryptoResult;
at com.webank.wedpr.crypto.NativeInterface.secp256k1GenKeyPair(Native Method)
at org.fisco.bcos.sdk.crypto.keypair.ECDSAKeyPair.generateKeyPair(ECDSAKeyPair.java:66)
at org.fisco.bcos.sdk.crypto.keypair.ECDSAKeyPair.(ECDSAKeyPair.java:31)
at org.fisco.bcos.sdk.crypto.CryptoSuite.initCryptoSuite(CryptoSuite.java:112)
at org.fisco.bcos.sdk.crypto.CryptoSuite.(CryptoSuite.java:100)
at org.fisco.bcos.sdk.amop.AmopImp.(AmopImp.java:55)
at org.fisco.bcos.sdk.amop.Amop.build(Amop.java:40)
at org.fisco.bcos.sdk.BcosSDK.(BcosSDK.java:100)
at cn.bitgx.unichaincenter.config.configBcos.afterPropertiesSet(configBcos.java:37)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782)
... 17 more
—————————————————————————————————————————————————————————
先启动java-sdk 2.8.0程序再启动fisco-bcos-browser则正常
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the NativeInterface.secp256k1GenKeyPair failure in ECDSAKeyPair.java, then trace initialization through CryptoSuite.java and the BcosSDK/Amop entry points shown in the stack trace. Reproduce both application startup orders with Java SDK 2.8.0 and fisco-bcos-browser, and identify the dependency or native-library conflict so both orders initialize successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100