CordaRPCClient выдает ошибку при подключении к узлу, работающему внутри контейнера Docker - PullRequest
2 голосов
/ 13 мая 2019
Following error is being thrown, same client works fine with the node running as a java service on the system.
java.lang.NullPointerException: null
    at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:800) ~[artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.openTransportConnection(ClientSessionFactoryImpl.java:1046) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1086) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.establishNewConnection(ClientSessionFactoryImpl.java:1297) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:901) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:797) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.reconnectSessions(ClientSessionFactoryImpl.java:746) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.failoverOrReconnect(ClientSessionFactoryImpl.java:616) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.handleConnectionFailure(ClientSessionFactoryImpl.java:506) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.handleConnectionFailure(ClientSessionFactoryImpl.java:499) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connectionException(ClientSessionFactoryImpl.java:370) [artemis-core-client-2.6.3.jar!/:2.6.3]
    at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector$Listener$2.run(NettyConnector.java:1073) [artemis-core-client-2.6.3.jar!/:2.6.3]
...