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
Post a Comment