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

加载pem账号文件时报错 #385

Open
pengbs opened this issue Aug 23, 2019 · 2 comments
Open

加载pem账号文件时报错 #385

pengbs opened this issue Aug 23, 2019 · 2 comments

Comments

@pengbs
Copy link

pengbs commented Aug 23, 2019

加载本地.pem文件时报错,报错信息如下:java.lang.ClassCastException: org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey cannot be cast to org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey at org.fisco.bcos.web3j.crypto.ECKeyPair.create(ECKeyPair.java:52) at org.fisco.bcos.web3j.crypto.Keys.createEcKeyPair(Keys.java:59)

使用的是最新版的web3sdk, maven的方式依赖的

@ywy2090
Copy link
Collaborator

ywy2090 commented Aug 23, 2019

加载本地.pem文件时报错,报错信息如下:java.lang.ClassCastException: org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey cannot be cast to org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey at org.fisco.bcos.web3j.crypto.ECKeyPair.create(ECKeyPair.java:52) at org.fisco.bcos.web3j.crypto.Keys.createEcKeyPair(Keys.java:59)

使用的是最新版的web3sdk, maven的方式依赖的

你看下你的依赖库的bcprov的版本,看看是不是版本冲突?

@pengbs
Copy link
Author

pengbs commented Aug 26, 2019

版本没有冲突,我是在一个tomcat容器里面运行两个项目,两个项目都引用了web3sdk的情况下就会出现

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

2 participants