hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.81k stars 3.4k forks source link

Cannot deploy index in java version chaincode. #1148

Open csb123452010 opened 11 months ago

csb123452010 commented 11 months ago

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 Deployment of chaincode is OK, but cannot find the index: 索引_basic_java_4 There are no index in db as well: 索引_basic_java_1 After I init the ledger, no index as well: 索引_basic_java_2