WeIdentity-v3.0.0-rc.1搭配 Build-Tools-v3.0.0-rc.1 配合 Sample-feature/reconstructio 在配置好相关环境之后启动sample的过程中提示错误如下
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.4.1)
2023-02-21 01:14:02.279 [main] INFO SampleApp(StartupInfoLogger.java:55) - Starting SampleApp using Java 1.8.0_322 on localhost.localdomain with PID 4809 (/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/app/weIdentity-sample-1.0.11.jar started by root in /root/wei-sample/WeIdentity-Sample-feature-reconstruction)
2023-02-21 01:14:02.292 [main] INFO SampleApp(SpringApplication.java:660) - No active profile set, falling back to default profiles: default
2023-02-21 01:14:03.549 [main] INFO TomcatWebServer(TomcatWebServer.java:108) - Tomcat initialized with port(s): 6100 (https) 6101 (http)
2023-02-21 01:14:03.571 [main] INFO Http11NioProtocol(DirectJDKLog.java:173) - Initializing ProtocolHandler ["https-jsse-nio-6100"]
2023-02-21 01:14:03.572 [main] INFO Http11NioProtocol(DirectJDKLog.java:173) - Initializing ProtocolHandler ["http-nio-6101"]
2023-02-21 01:14:03.582 [main] INFO StandardService(DirectJDKLog.java:173) - Starting service [Tomcat]
2023-02-21 01:14:03.582 [main] INFO StandardEngine(DirectJDKLog.java:173) - Starting Servlet engine: [Apache Tomcat/9.0.41]
2023-02-21 01:14:03.740 [main] INFO / - Initializing Spring embedded WebApplicationContext
2023-02-21 01:14:03.740 [main] INFO ServletWebServerApplicationContext(ServletWebServerApplicationContext.java:289) - Root WebApplicationContext: initialization completed in 1376 ms
2023-02-21 01:14:03.847 [main] INFO PropertiesUtils(PropertiesUtils.java:46) - loadProps finish...
2023-02-21 01:14:03.847 [main] INFO FileUtil(FileUtil.java:265) - Using the config fisco.properties from Build Tool
2023-02-21 01:14:03.848 [main] INFO FileUtil(FileUtil.java:265) - Using the config weidentity.properties from Build Tool
2023-02-21 01:14:03.850 [main] INFO FileUtil(FileUtil.java:208) - the encryptType = 0
2023-02-21 01:14:03.850 [main] INFO FileUtil(FileUtil.java:271) - Using the default config sdk.key in ./resources/
2023-02-21 01:14:03.850 [main] INFO FileUtil(FileUtil.java:271) - Using the default config sdk.crt in ./resources/
2023-02-21 01:14:03.851 [main] INFO FileUtil(FileUtil.java:271) - Using the default config ca.crt in ./resources/
2023-02-21 01:14:03.852 [main] INFO FileUtil(FileUtil.java:271) - Using the default config ecdsa_key in ./keys/priv/
2023-02-21 01:14:03.913 [main] INFO WeServerV2(WeServerV2.java:109) - [WeServer] begin load property.
2023-02-21 01:14:03.914 [main] INFO WeServerV2(WeServerV2.java:238) - [initAmopTopic] the amopId: 1
2023-02-21 01:14:03.915 [main] INFO WeServerV2(WeServerV2.java:256) - [initNetWork] the current nodes: [182.61.21.147:20200].
2023-02-21 01:14:03.915 [main] INFO WeServerV2(WeServerV2.java:267) - [initThreadPool] the threadPool: {maxBlockingQueueSize=1000, channelProcessorThreadSize=200, receiptProcessorThreadSize=200}.
2023-02-21 01:14:03.915 [main] INFO WeServerV2(WeServerV2.java:275) - path:resources/conf before
2023-02-21 01:14:03.915 [main] INFO WeServerV2(WeServerV2.java:286) - [initThreadPool] the cryptoMaterial: {certPath=resources/conf, useSMCrypto=1}.
2023-02-21 01:14:03.915 [main] INFO WeServerV2(WeServerV2.java:111) - [WeServer] begin init bcos sdk.
2023-02-21 01:14:03.916 [main] INFO WeServerV2(WeServerV2.java:293) - [WeServer] the WeServer class is locked.
2023-02-21 01:14:03.916 [main] INFO WeServerV2(WeServerV2.java:295) - [WeServer] the bcosSdk is null and build BcosSDK.
2023-02-21 01:14:03.921 [main] INFO ConfigProperty(ConfigProperty.java:123) - Load config from resources/conf/ca.crt failed, trying to load from the resourcePath /root/wei-sample/WeIdentity-Sample-feature-reconstruction/resources/
2023-02-21 01:14:03.922 [main] INFO ConfigProperty(ConfigProperty.java:123) - Load config from resources/conf/sdk.crt failed, trying to load from the resourcePath /root/wei-sample/WeIdentity-Sample-feature-reconstruction/resources/
2023-02-21 01:14:03.922 [main] INFO ConfigProperty(ConfigProperty.java:123) - Load config from resources/conf/sdk.key failed, trying to load from the resourcePath /root/wei-sample/WeIdentity-Sample-feature-reconstruction/resources/
2023-02-21 01:14:03.993 [main] INFO ConnectionManager(ConnectionManager.java:88) - all connections, size: 1, list: [ConnectionInfo{host='182.61.21.147', port=20200}]
2023-02-21 01:14:03.993 [main] INFO NetworkImp(NetworkImp.java:167) -
====> STEP1: try to connect nodes with ecdsa context...
2023-02-21 01:14:03.994 [main] WARN NetworkImp(NetworkImp.java:185) - <==== STEP1 Result: try to connect nodes with ecdsa context failed for cert missing
2023-02-21 01:14:03.994 [main] INFO NetworkImp(NetworkImp.java:207) - ----------------------------
====> STEP2: connect nodes with ecdsa context failed, try to connect nodes with sm-context...
2023-02-21 01:14:03.994 [main] INFO NetworkImp(NetworkImp.java:237) - <==== STEP2-1: Load certificates for sm context success...
2023-02-21 01:14:03.995 [main] INFO ConnectionManager(ConnectionManager.java:88) - all connections, size: 1, list: [ConnectionInfo{host='127.0.0.1', port=20200}]
2023-02-21 01:14:05.130 [main] WARN AnnotationConfigServletWebServerApplicationContext(AbstractApplicationContext.java:596) - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'demoIssuerController': Unsatisfied dependency expressed through field 'demoService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoServiceImpl' defined in URL [jar:file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/app/weIdentity-sample-1.0.11.jar!/com/webank/weid/demo/service/impl/DemoServiceImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.webank.weid.demo.service.impl.DemoServiceImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: io.netty.handler.ssl.OpenSslContext.(Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;I[Ljava/security/cert/Certificate;Lio/netty/handler/ssl/ClientAuth;[Ljava/lang/String;ZZ[Ljava/util/Map$Entry;)V
2023-02-21 01:14:05.135 [main] INFO StandardService(DirectJDKLog.java:173) - Stopping service [Tomcat]
2023-02-21 01:14:05.149 [main] INFO ConditionEvaluationReportLoggingListener(ConditionEvaluationReportLoggingListener.java:136) -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-02-21 01:14:05.174 [main] ERROR LoggingFailureAnalysisReporter(LoggingFailureAnalysisReporter.java:40) -
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
io.netty.handler.ssl.SMSslClientContext.<init>(SMSslClientContext.java:23)
The following method did not exist:
io.netty.handler.ssl.OpenSslContext.<init>(Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;I[Ljava/security/cert/Certificate;Lio/netty/handler/ssl/ClientAuth;[Ljava/lang/String;ZZ[Ljava/util/Map$Entry;)V
The method's class, io.netty.handler.ssl.OpenSslContext, is available from the following locations:
jar:file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar!/io/netty/handler/ssl/OpenSslContext.class
jar:file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-all-4.1.55.Final.jar!/io/netty/handler/ssl/OpenSslContext.class
The class hierarchy was loaded from the following locations:
io.netty.handler.ssl.OpenSslContext: file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar
io.netty.handler.ssl.ReferenceCountedOpenSslContext: file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar
io.netty.handler.ssl.SslContext: file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of io.netty.handler.ssl.OpenSslContext
2023-02-21 01:14:05.174 [main] ERROR LoggingFailureAnalysisReporter() -
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
io.netty.handler.ssl.SMSslClientContext.<init>(SMSslClientContext.java:23)
The following method did not exist:
io.netty.handler.ssl.OpenSslContext.<init>(Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;I[Ljava/security/cert/Certificate;Lio/netty/handler/ssl/ClientAuth;[Ljava/lang/String;ZZ[Ljava/util/Map$Entry;)V
The method's class, io.netty.handler.ssl.OpenSslContext, is available from the following locations:
jar:file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar!/io/netty/handler/ssl/OpenSslContext.class
jar:file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-all-4.1.55.Final.jar!/io/netty/handler/ssl/OpenSslContext.class
The class hierarchy was loaded from the following locations:
io.netty.handler.ssl.OpenSslContext: file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar
io.netty.handler.ssl.ReferenceCountedOpenSslContext: file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar
io.netty.handler.ssl.SslContext: file:/root/wei-sample/WeIdentity-Sample-feature-reconstruction/dist/lib/netty-handler-4.1.55.Final.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of io.netty.handler.ssl.OpenSslContext