Running the client via IntelliJ

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Running the client via IntelliJ



I am new to Corda and following this link. I am running from IntelliJ by selecting "Run Example RPC Client" from run configuration and click on green arrow. And I am getting the error on logs as below :


Exception in thread "main" ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:787)
at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:191)
at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:123)
at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:86)
at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:204)
at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:196)
at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:109)
at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:135)
at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:120)
at com.example.client.ExampleClientRPC.main(ExampleClientRPC.kt:31)
at com.example.client.ExampleClientRPCKt.main(ExampleClientRPC.kt:16)



Below is the screenshot after I have started "Run Example CorDapp - Kotlin".enter image description here



Also below is the screenshot of of client : Edit Configuration





I've updated the Example CorDapp to hardcode the ports used by the node driver and update the port used by the RPC client. Try pulling the latest changes and seeing if that fixes it.
– Joel
Aug 10 at 16:11




1 Answer
1



Actually,Port number that is coming in the configuration is 10006 it should be 10008 and I hope your nodes running correctly.



You can edit the run configuration for the com.example.client.ExampleClientRPC in the Intllij



Run -> edit configuration
edit "program Arguments" to 10008.It should work.enter image description here





it is still giving the same exception as in my question. I have also tried it from command line and again it is giving same errors.
– Riya Soni
Aug 10 at 6:31





i tried with same same code in github it has issue with intellij configuration as i mentioned above .Please make sure deployTask has run and corda nodes are running with same port you want to connect. It worked for me or you can share your code
– manish
Aug 10 at 7:18






I have added 2 screenshots in my question of console log after running "Run Example CorDapp - Kotlin" and edit configuration screen for Kotlin client.
– Riya Soni
Aug 10 at 9:26






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard