Corda:无法连接到服务器

Corda: Cannot connect to server(s)

我已经下载了 corda 示例项目:spring-observable-stream 并尝试从 IntelliJ 运行 它。启动服务器时,出现错误:

W 11:01:55 1 AnnotationConfigEmbeddedWebApplicationContext.refresh - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeRPCConnection' defined in file [C:\Corda\spring-observable-stream\server\out\production\classes\net\corda\server\NodeRPCConnection.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [net.corda.server.NodeRPCConnection]: Constructor threw exception; nested exception is ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]

您需要先启动节点,然后再启动服务器。请参阅此处的说明:https://docs.corda.net/tutorial-cordapp.html#running-the-example-cordapp.

我在 Mac 上遇到了与 cordapp-example 类似的问题。我发现 运行 无头模式下的 runnodes 命令按照这里的说明对我有用:https://docs.corda.net/docs/corda-os/4.4/tutorial-cordapp.html#running-the-example-cordapp-2