Fabric client-java Submit transaction problem


jeff.jo95z@...
 

hi ,

While doing a submit transaction from fabric client,below error is coming:

org.hyperledger.fabric.client.SubmitException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 4.998588382s. [closed=[], open=[[remote_addr=peer0.org1.com/10.11.6.9:7051]

What maybe the reason for this?

 

submit code part:

 

Contract contract = fabricCon.getNetwork().getContract(transactionRequest.getChaincodeName());
byte[] ccResponse = null; 

 // Submit transactions that store state to the ledger.
SubmittedTransaction commit = contract.newProposal(transactionRequest.getMethodName())
.addArguments(transactionRequest.getInputParameters())
.putTransient(transactionRequest.getTransientKey(), payloadData) .build() .
endorse() .submitAsync();

ccResponse = commit.getResult();


Andrew Coleman
 

Is there anything in the gateway peer log that gives any clues?


jeff.jo95z@...
 

In the peer log,at the time of transaction,no error is coming.
The call is even reaching the chaincode. I can see it in the chaincode logs.

But after sometime,in peer logs ,I can see this:

2022-11-03 05:17:54.707 UTC 036d WARN [gateway] Submit -> Error sending transaction to orderer txID=68dfad786926bd638305aa838aa13c66f03f2f70ee7d0edc32ed39be628501a0 endpoint=orderer1.org1orderer.com:8050 err="rpc error: code = DeadlineExceeded desc = context deadline exceeded"


Andrew Coleman
 

Can you look in the orderer1.org1orderer.com:8050 log at around this timestamp to see if there is an error there?


jeff.jo95z@...
 

at the time of transaction ,there is no error.
But I can see this in the orderer log:

2022-11-03 05:34:27.114 UTC 0073 ERRO [core.comm] ServerHandshake -> Server TLS handshake failed in 1.970291137s with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=10.11.6.9:47610
2022-11-03 08:11:39.997 UTC 0074 INFO [comm.grpc.server] 1 -> streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=23.102.44.129:50570 error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=4m59.998722172s
2022-11-03 10:14:32.755 UTC 0075 ERRO [core.comm] ServerHandshake -> Server TLS handshake failed in 2.787334708s with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=10.14.4.7:51632