每当我尝试使用节点驱动程序进行测试时,我发现在公证时,我的流程会挂起。
检查节点日志后,它表明公证人的消息代理不可达:
[INFO] 09:33:26,653 [nioEventLoopGroup-3-3](AMQPClient.kt:91) netty.AMQPClient.run-重试连接{}
[INFO] 09:33:26,657 [nioEventLoopGroup-3-4](AMQPClient.kt:76) netty.AMQPClient.operationComplete-已连接到localhost:10001 {}
[INFO] 09:33:26,658 [nioEventLoopGroup-3-4] (AMQPChannelHandler.kt:49)O =公证服务,L =苏黎世, C = CH.channelActive-来自的新客户端连接db926eb8 localhost / 127.0.0.1:10001到/127.0.0.1:63781 {}
[INFO] 09:33:26,658 [nioEventLoopGroup-3-4](AMQPClient.kt:86) netty.AMQPClient.operationComplete-与本地主机断开连接:10001 {}
[错误] 09:33:26,658 [nioEventLoopGroup-3-4] (AMQPChannelHandler.kt:98)O =公证服务,L =苏黎世, C = CH.userEventTriggered-握手失败 SslHandshakeCompletionEvent(java.nio.channels.ClosedChannelException) {}
[INFO] 09:33:26,659 [nioEventLoopGroup-3-4] (AMQPChannelHandler.kt:74)O =公证服务,L =苏黎世, C = CH.channelInactive-来自以下位置的关闭的客户端连接db926eb8 localhost / 127.0.0.1:10001到/127.0.0.1:63781 {}
[INFO] 09:33:26,659 [nioEventLoopGroup-3-4](AMQPBridgeManager.kt:115) peers.DLF1ZmHt1DXc9HbxzDNm6VHduUABBbNsp7Mh4DhoBs6ifd-> 本地主机:10001:O =公证服务,L =苏黎世,C = CH.onSocketConnected- 网桥已断开{}
公证日志显示以下内容:
[INFO] 13:24:21,735 [main](ActiveMQServerImpl.java:540) core.server.internalStart-AMQ221001:Apache ActiveMQ Artemis消息 代理版本2.2.0 [本地主机, nodeID = 7b3df3b8-98aa-11e8-83bd-ead493c8221e] {}
[DEBUG] 13:24:21,735 [main](ArtemisRpcBroker.kt:51) rpc.ArtemisRpcBroker.start-Artemis RPC代理已启动。 {}
[INFO] 13:24:21,737 [main](ArtemisMessagingClient.kt:28) internal.ArtemisMessagingClient.start-连接到消息代理: 本地主机:10001 {}
[错误] 13:24:22,298 [主](NettyConnector.java:713) core.client.createConnection-AMQ214016:创建网络失败 连接{} java.nio.channels.ClosedChannelException:空 在io.netty.handler.ssl.SslHandler.channelInactive(...)(未知源)〜[netty-all-4.1.9.Final.jar:4.1.9.Final]
[DEBUG] 13:24:22,362 [main](PersistentIdentityService.kt:137) identity.PersistentIdentityService.verifyAndRegisterIdentity- 注册身份O =公证服务,L =苏黎世,C = CH {}
[WARN] 13:24:22,363 [main](AppendOnlyPersistentMap.kt:79) utilities.AppendOnlyPersistentMapBase.set-双重插入 实体类的net.corda.node.utilities.AppendOnlyPersistentMap 类 net.corda.node.services.identity.PersistentIdentityService $ PersistentIdentity 键69ACAA32A0C7934D9454CB53EEA6CA6CCD8E4090B30C560A5A36EA10F3DC13E8, 没有第二次插入{}
[错误] 13:24:22,368 [主](NodeStartup.kt:125)internal.Node.run- 节点启动{}期间发生异常 org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007:无法连接到服务器。尝试了所有可用 服务器。 在org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:787) 〜[artemis-core-client-2.2.0.jar:2.2.0] 在net.corda.nodeapi.internal.ArtemisMessagingClient.start(ArtemisMessagingClient.kt:39) 〜[corda-node-api-3.2-corda.jar :?] 在net.corda.nodeapi.internal.bridging.AMQPBridgeManager.start(AMQPBridgeManager.kt:195) 〜[corda-node-api-3.2-corda.jar :?] 在net.corda.nodeapi.internal.bridging.BridgeControlListener.start(BridgeControlListener.kt:35) 〜[corda-node-api-3.2-corda.jar :?] 在net.corda.node.internal.Node.startMessagingService(Node.kt:301)〜[corda-node-3.2-corda.jar:?]
我该如何解决?