hyperledger/fabric-chaincode-java

Can the java version chaincode deploy index?

csb123452010 opened this issue · 1 comments

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.

Couch DB indexes should work with Java chaincode in the same way as other chaincode languages. Make sure that the packaged chaincode contains the index in the correct location, relative to the root of the chaincode, not down inside any source folders. See these pages in the Fabric documentation: