corda - CURRENT_RPC_CONTEXT.get() must not be null -


written integration test case testing corda flows through api class as:

val api=projectapi(mocknode1.rpcops) val message = "some input message" val resp: response=api.publishssi(message) assertequals(resp.status, 201,"failed publish ssi") 

but getting current_rpc_context.get() must not null exception while starting corda flow inside api.publishssi() method. cause?

you need use rpc client api connect node. can find more details here: https://docs.corda.net/tutorial-clientrpc-api.html


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -