hyperledger / hyperledger/fabric-samples

Cannot deploy index in java version chaincode.

Open
#1,148 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
3.5k
Avg merge
3d 20h
Merged PRs (30d)
6

Description

When I deploy the java version asset-transfer-private-data chaincode in test-network, the index deployment was not successful. And the go version asset-transfer-private-data chaincode is OK.

Then, I want check the reason, but there are no java-version asset-transfer-ledger-quires chaincode. So I copied the index from go-version asset-transfer-ledger-quires chaincode to go-version asset-transfer-basic chaincode and java-version asset-transfer-basic chaincode. And I changed the field in the index.

The go-version asset-transfer-basic chaincode with index is OK. However, the java-version asset-transfer-basic chaincode with index was not successful as well.

There are some figs.:
The index in chaincode:
![The index in chaincode](https://github.com/hyperledger/fabric-samples/assets/97946841/dbd49dd8-2b0a-4335-951b-cde38abce11b)
Deployment of chaincode is OK, but cannot find the index:
![索引_basic_java_4](https://github.com/hyperledger/fabric-samples/assets/97946841/19f45ade-97ad-47f8-97ef-bcf905f22373)
There are no index in db as well:
![索引_basic_java_1](https://github.com/hyperledger/fabric-samples/assets/97946841/2d855a91-638f-4691-8180-82c23f32c1fa)
After I init the ledger, no index as well:
![索引_basic_java_2](https://github.com/hyperledger/fabric-samples/assets/97946841/102b8cea-6d2b-45c3-9405-b32f037d1228)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.