当使用节点驱动程序时,流中的notarisation会因握手失败而挂起



每当我尝试使用节点驱动程序进行测试时,我发现在注释时,我的流会挂起。

在检查了节点日志后,它显示公证人的消息代理无法访问:

〔信息〕09:33:26653〔nioEventLoopGroup-3-3〕(AMQPClient.kt:91(netty。AMQPClient.run-重试连接{}

[信息]09:33:26657[nioEventLoopGroup-3-4](AMQPClient.kt:76(netty。AMQPClient.operationComplete-已连接到localhost:10001{}

[信息]09:33:26658[nioEventLoopGroup-3-4](AMQPChannelHandler.kt:49(O=公证处,L=苏黎世,C=CH.channelActive-来自的新客户端连接db926eb8localhost/120.0.1:10001到/120.0.1:63781{}

[信息]09:33:26658[nioEventLoopGroup-3-4](AMQPClient.kt:86(netty。AMQPClient.operationComplete-已从localhost:10001断开连接{}

[错误]09:33:26658[nioEventLoopGroup-3-4](AMQPChannelHandler.kt:98(O=公证处,L=苏黎世,C=CH.userEventTriggered-握手失败SslHandshakeComplementEvent(java.nio.cahannels.ClosedChannelException({}

[信息]09:33:26659[nioEventLoopGroup-3-4](AMQPChannelHandler.kt:74(O=公证处,L=苏黎世,C=CH.channelInactive-关闭来自的客户端连接db926eb8localhost/120.0.1:10001到/120.0.1:63781{}

[信息]09:33:26659[nioEventLoopGroup-3-4](AMQPBridgeManager.kt:115(同行。DLF1ZmHt1DXc9HbxzDNm6VHduUABBbNsp7Mh4HoBs6ifd->localhost:10001:O=公证处,L=苏黎世,C=CH.已连接-网桥断开连接{}

当公证日志显示以下内容时:

〔信息〕13:24:21735〔main〕(ActiveMQServerImpl.java:540(core.server.internalStart-AMQ221001:Apache ActiveMQ Artemis消息Broker版本2.2.0[localhost,nodeID=7b3df3b8-98aa-11e8-83bd-ead493c8221e]{}

〔调试〕13:24:21735〔main〕(ArtemisRpcBroker.kt:51(rpc。ArtemisRpcBroker.start-Artemis RPC代理已启动。{}

[信息]13:24:21737[main](ArtemisMessagingClient.kt:28(内部的ArtemisMessagingClient.start-正在连接到消息代理:localhost:10001{}

[错误]13:24:22298[main](NettyConnector.java:713(core.client.createConnection-AMQ214016:无法创建netty连接{}java.nio.channels.ClosedChannelException:null在io.nety.handler.ssl.SslHandler.channelInactive(…((未知来源(~[nety-all-4.1.9.Final.jar:4.1.9.Final]

[DEBUG]13:24:22362[main](PersistentIdentity Service.kt:137(身份持久标识服务.verifyAndRegisterIdentity-注册身份O=公证处,L=苏黎世,C=CH{}

[警告]13:24:22363[main](附录OnlyPersistentMap.kt:79(公用事业AppendOnlyPersistentMapBase.set-在中双插入实体类的net.corda.node.utilities.AppendOnlyPersistentMap班net.corda.node.services.identity.PersistentIdentity Service$PersistentIdentity钥匙69ACAA32A0C7934D9454CB53EEA6CA6CCD8E4090B30C560A5A36EA10F3DC13E8,没有插入第二次{}

[错误]13:24:22368[min](NodeStartup.kt:125(内部。节点.run-节点启动期间出现异常{}org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException:AMQ119007:无法连接到服务器。已尝试所有可用服务器。网址:org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:787(~[arteis-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(AMQPBridgesManager.kt:195(~[corda-node-api-3.2-corda.jar:?]位于net.corda.nodeapi.internal.bridging.BridgeControlListener.start(BridgeControlLister.kt:35(~[corda-node-api-3.2-corda.jar:?]在net.corda.node.internal.node.startMessagingService(node.kt:301(~[corda-node-3.2-corda.jar:?]

如何修复此问题?

IntelliJ Ultimate附带Yourkit探查器,默认情况下,该探查器在IntelliJ启动时启动,并在端口100001(驱动程序中公证器的默认端口(上侦听。

你可以在这里找到这个配置,并根据这个将其更改为使用不同的端口

你的新配置行看起来像这样:

-agentlib:yjpagent=delay=10000,probe_disable=*,port=30000

最新更新