fablo icon indicating copy to clipboard operation
fablo copied to clipboard

feat: Add Java chaincode development mode support

Open OsamaRab3 opened this issue 7 months ago • 2 comments

This PR adds support for running Java chaincode in development mode #360

OsamaRab3 avatar May 29 '25 22:05 OsamaRab3

@dzikowski @umegbewe If everything looks good , I’ll proceed with writing the documentation for it.

OsamaRab3 avatar May 29 '25 22:05 OsamaRab3

We actually have a sample Java chaincode, but it's OK to have two - just please put it in the same directory: samples/chaincodes

Also please document it in this PR in README. We have a section Running chaincodes in dev mode. It would explain me how to run locally while doing a review.

Finally, please add also a relevant entry to the CHANGELOg file

dzikowski avatar May 30 '25 10:05 dzikowski

I replaced the simpleasset chaincode with PokeballContract.java. The chaincode builds and starts fine in dev mode, but it still fails with the following error: UNIMPLEMENTED: unknown service protos.ChaincodeSupport From the peer container logs, it looks like dev mode is enabled correctly, so the issue seems to be with the gRPC connection between the chaincode and the peer.

Still investigating this any suggestions are welcome.

OsamaRab3 avatar Jul 11 '25 07:07 OsamaRab3