Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

net.corda.client.rpc.RPCException: Cannot connect to server(s) #34

Open
morimora opened this issue Apr 11, 2021 · 0 comments
Open

net.corda.client.rpc.RPCException: Cannot connect to server(s) #34

morimora opened this issue Apr 11, 2021 · 0 comments

Comments

@morimora
Copy link

Hi
When you create nodes using Cordform, after building the project (through ./gradlew deployNodes) and running nodes (through ./build/nodes/runnodes) you can test APIs by running each server, e,g, runPartyAServer by command ./gradlew runPartyAServer.
But if you use Dockerform to create nodes, after building the project (through ./gradlew prepareDockerNodes) and running nodes (through docker-compose up), execution of command ./gradlew runPartyAServer encounters an error like the following:

I 21:36:25 1 RPCClient.logElapsedTime - Failed Startup took 259 msec
W 21:36:25 1 AnnotationConfigServletWebServerApplicationContext.refresh - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controller' defined in file [.../clients/build/classes/java/main/net/corda/samples/example/webserver/Controller.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeRPCConnection': Invocation of init method failed; nested exception is net.corda.client.rpc.RPCException: Cannot connect to server(s). Tried with all available servers.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant