1.我从“git克隆https://github.com/corda/samples"”下载的
2.我从Intellij As页面打开项目(https://docs.corda.net/tutorial-cordapp.html#downloading-示例cordapp)显示
3.我选择了“运行示例CordApp-静态编程语言”,并开始调试
4.我从智能控制台得到一些例外
我访问“网址”,但它不起作用。
我猜服务器不工作。
我如何解决这个例外?
[INFO] 14:02:57,980 [driver-pool-thread-0] network.NodeInfoFilesCopier. - Now watching: /Users/shintakahashi/00_dev/Corda/Project/v4_0/samples/cordapp-example/build/node-driver/20190523-050248.830/NotaryService [INFO] 14:02:58,701 [driver-pool-thread-0] internal.DriverDSLImpl. - Starting out-of-process Node Notary Service, debug port is not enabled [INFO] 14:03:14,211 [driver-pool-thread-0] internal.RPCClient. - Startup took 2278 msec [INFO] 14:03:14,356 [driver-pool-thread-1] internal.DriverDSLImpl. - Node handle is ready. NodeInfo: NodeInfo(addresses=[localhost:10000], legalIdentitiesAndCerts=[O=Notary Service, L=Zurich, C=CH], platformVersion=4, serial=1558587790286), WebAddress: localhost:10003 [INFO] 14:03:14,397 [main] network.NodeInfoFilesCopier. - Now watching: /Users/shintakahashi/00_dev/Corda/Project/v4_0/samples/cordapp-example/build/node-driver/20190523-050248.830/PartyA [INFO] 14:03:14,405 [main] internal.DriverDSLImpl. - Starting out-of-process Node PartyA, debug port is not enabled [INFO] 14:03:14,432 [main] network.NodeInfoFilesCopier. - Now watching: /Users/shintakahashi/00_dev/Corda/Project/v4_0/samples/cordapp-example/build/node-driver/20190523-050248.830/PartyB [INFO] 14:03:14,437 [main] internal.DriverDSLImpl. - Starting out-of-process Node PartyB, debug port is not enabled [INFO] 14:03:14,461 [main] network.NodeInfoFilesCopier. - Now watching: /Users/shintakahashi/00_dev/Corda/Project/v4_0/samples/cordapp-example/build/node-driver/20190523-050248.830/PartyC [INFO] 14:03:14,466 [main] internal.DriverDSLImpl. - Starting out-of-process Node PartyC, debug port is not enabled [INFO] 14:03:46,220 [driver-pool-thread-0] internal.RPCClient. - Failed Startup took 51 msec [INFO] 14:03:46,220 [driver-pool-thread-0] internal.DriverDSLImpl. - Exception while connecting to RPC, retrying to connect at localhost:10013 net.corda.client.rpc.RPCException: Cannot connect to server(s). Tried with all available servers. at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:218) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:93) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:32) ~[corda-rpc-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:193) ~[corda-core-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:183) ~[corda-core-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:72) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:392) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:375) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:344) ~[corda-rpc-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:170) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:79) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.InternalTestUtilsKt$poll$task$1.run(InternalTestUtils.kt:206) ~[corda-node-driver-4.0.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] Caused by: org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all available servers. at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797) ~[artemis-core-client-2.6.2.jar:2.6.2] at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:216) ~[corda-rpc-4.0.jar:?] ... 18 more [INFO] 14:03:46,220 [driver-pool-thread-1] internal.RPCClient. - Failed Startup took 51 msec [INFO] 14:03:46,220 [driver-pool-thread-1] internal.DriverDSLImpl. - Exception while connecting to RPC, retrying to connect at localhost:10009 net.corda.client.rpc.RPCException: Cannot connect to server(s). Tried with all available servers. at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:218) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:93) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:32) ~[corda-rpc-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:193) ~[corda-core-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:183) ~[corda-core-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:72) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:392) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:375) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:344) ~[corda-rpc-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:170) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:79) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.InternalTestUtilsKt$poll$task$1.run(InternalTestUtils.kt:206) ~[corda-node-driver-4.0.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] Caused by: org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all available servers. at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797) ~[artemis-core-client-2.6.2.jar:2.6.2] at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:216) ~[corda-rpc-4.0.jar:?] ... 18 more [INFO] 14:03:46,635 [driver-pool-thread-0] internal.RPCClient. - Failed Startup took 3 msec [INFO] 14:03:46,635 [driver-pool-thread-0] internal.DriverDSLImpl. - Exception while connecting to RPC, retrying to connect at localhost:10005 net.corda.client.rpc.RPCException: Cannot connect to server(s). Tried with all available servers. at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:218) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:93) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:32) ~[corda-rpc-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:193) ~[corda-core-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:183) ~[corda-core-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:72) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:392) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:375) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:344) ~[corda-rpc-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:170) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:79) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.InternalTestUtilsKt$poll$task$1.run(InternalTestUtils.kt:206) ~[corda-node-driver-4.0.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] Caused by: org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all available servers. at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797) ~[artemis-core-client-2.6.2.jar:2.6.2] at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:216) ~[corda-rpc-4.0.jar:?] ... 18 more [INFO] 14:03:46,724 [driver-pool-thread-1] internal.RPCClient. - Failed Startup took 4 msec [INFO] 14:03:46,724 [driver-pool-thread-1] internal.DriverDSLImpl. - Exception while connecting to RPC, retrying to connect at localhost:10013 net.corda.client.rpc.RPCException: Cannot connect to server(s). Tried with all available servers. at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:218) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:93) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:32) ~[corda-rpc-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:193) ~[corda-core-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:183) ~[corda-core-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:72) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:392) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:375) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:344) ~[corda-rpc-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:170) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:79) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.InternalTestUtilsKt$poll$task$1.run(InternalTestUtils.kt:206) ~[corda-node-driver-4.0.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] Caused by: org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all available servers. at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797) ~[artemis-core-client-2.6.2.jar:2.6.2] at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:216) ~[corda-rpc-4.0.jar:?] ... 18 more [INFO] 14:03:47,139 [driver-pool-thread-1] internal.RPCClient. - Failed Startup took 3 msec [INFO] 14:03:47,139 [driver-pool-thread-1] internal.DriverDSLImpl. - Exception while connecting to RPC, retrying to connect at localhost:10005 net.corda.client.rpc.RPCException: Cannot connect to server(s). Tried with all available servers. at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:218) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:93) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:32) ~[corda-rpc-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:193) ~[corda-core-4.0.jar:?] at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:183) ~[corda-core-4.0.jar:?] at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:72) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:392) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:375) ~[corda-rpc-4.0.jar:?] at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:344) ~[corda-rpc-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:170) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.DriverDSLImpl$establishRpc$connectionFuture$1.invoke(DriverDSLImpl.kt:79) ~[corda-node-driver-4.0.jar:?] at net.corda.testing.node.internal.InternalTestUtilsKt$poll$task$1.run(InternalTestUtils.kt:206) ~[corda-node-driver-4.0.jar:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_211] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_211] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_211] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_211] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] Caused by: org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all available servers. at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:797) ~[artemis-core-client-2.6.2.jar:2.6.2] at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:216) ~[corda-rpc-4.0.jar:?] ... 18 more [INFO] 14:03:49,350 [driver-pool-thread-0] internal.RPCClient. - Startup took 2629 msec [INFO] 14:03:49,712 [driver-pool-thread-1] internal.RPCClient. - Startup took 2484 msec [INFO] 14:03:50,043 [driver-pool-thread-0] internal.RPCClient. - Startup took 693 msec [INFO] 14:03:50,759 [rpc-client-observation-pool-0] internal.DriverDSLImpl. - Node handle is ready. NodeInfo: NodeInfo(addresses=[localhost:10004], legalIdentitiesAndCerts=[O=PartyA, L=London, C=GB], platformVersion=4, serial=1558587823861), WebAddress: localhost:10007 [INFO] 14:03:50,780 [rpc-client-observation-pool-0] internal.DriverDSLImpl. - Node handle is ready. NodeInfo: NodeInfo(addresses=[localhost:10008], legalIdentitiesAndCerts=[O=PartyB, L=New York, C=US], platformVersion=4, serial=1558587823332), WebAddress: localhost:10011 [INFO] 14:03:50,801 [rpc-client-observation-pool-0] internal.DriverDSLImpl. - Node handle is ready. NodeInfo: NodeInfo(addresses=[localhost:10012], legalIdentitiesAndCerts=[O=PartyC, L=Paris, C=FR], platformVersion=4, serial=1558587823477), WebAddress: localhost:10015
节点应该仍在工作,这些错误是不幸的,可能应该进行调查。
话虽如此,您无法访问Web客户端的原因可能是由于您没有运行它们。
从示例页面:
每个Spring Boot服务器都需要在自己的终端/命令提示符下启动,用A、B和C替换X:
Unix/Mac OSX: ./gradlew runPartyXServer Windows: gradlew.bat runPartyXServer
或者在intellij中,您可以转到clients/build。gradle
,滚动到底部,然后客户端服务器配置旁边的run按钮。
这样做将运行web服务器,并允许您与节点进行交互。
我的问题是我想从Java代码(我的IntelliJ插件)运行shell命令: runtime.getruntime().exec(“ADB设备”) 但随后我收到IOException: 无法运行程序“adb”:错误=2,没有这样的文件或目录。 奇怪的是,当我在调试模式下运行它时,它正常工作,只有当我将插件部署到真正的Intellij时,它才会被破坏。该命令也可以从任何终端工作。现在唯一能起作用的是
null 我的代码是: 我尝试过创建Scala工作表,它工作了。
这是代码(我正在研究IntellijJava):我不知道是什么导致了它。 这是控制台:
我有一个带有TestNG的maven项目。我以前使用Eclipse,今天搬到了IntelliJ,我认为我配置正确。但是当我在IntelliJ中运行这个项目时,它不能在下面的错误信息下运行。当使用maven命令运行时,它没有任何问题。 但是当我从IntelliJ跑过来时,我得到: @w@C:\用户\sdymj\AppData\本地\Temp\idea_working_dirs_testng.tmp-
问题内容: 我是编程(和Python)新手。我无法在WinXP 64位笔记本电脑的命令提示符下运行任何python脚本。我分配了路径并通过输入set path确认了。我有Python32。我收到以下消息: 以下是我尝试的脚本: 问题答案: 你应该输入这个 在dos / cmd提示符下,而不是在Python解释器中
我刚刚下载了IDE,我想用它编辑我的第一个Java文件,我对创建整个项目不感兴趣,只是编辑单个文件。 因此,我使用Intellij IDEA从桌面上打开了该文件,因为我将其设置为打开。java文件的默认程序。 我写了一些代码,主运行和调试按钮是灰色的!我不能运行我的代码! 编辑:我也无法运行我的文件,无论它是否在一个项目中。