Skip to content

Conversation

@OsamaRab3
Copy link
Contributor

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

Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
@OsamaRab3
Copy link
Contributor Author

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

@dzikowski
Copy link
Contributor

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

OsamaRab3 and others added 4 commits May 30, 2025 12:38
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
…ev mode

Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
Signed-off-by: Jakub Dzikowski <jakub.t.dzikowski@gmail.com>
OsamaRab3 added 4 commits May 31, 2025 12:18
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
update run.dev and add gradlew
OsamaRab3 and others added 4 commits June 16, 2025 12:24
Signed-off-by: Osama Rabea <osrab3@gmail.com>
Signed-off-by: Osama Rabea <osrab3@gmail.com>
Replace SimpleAsset with PokeballContract in Java chaincode
@OsamaRab3
Copy link
Contributor Author

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.

Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
@OsamaRab3 OsamaRab3 requested review from dzikowski and umegbewe July 22, 2025 21:26
OsamaRab3 and others added 3 commits July 24, 2025 22:34
Signed-off-by: Osama Rabea <159753803+OsamaRab3@users.noreply.github.com>
@dzikowski dzikowski merged commit 4b0fde7 into hyperledger-labs:main Aug 22, 2025
9 of 10 checks passed
@dzikowski dzikowski mentioned this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants