Running the client via IntelliJ

Answered

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)

How to resolve this exception ?

0
1 comment

Hi. It looks like some kind of connectivity problem, I doubt it is IDE related.

Try asking at https://stackoverflow.com.

0

Please sign in to leave a comment.