You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two organization (Org1 and Org2 ) each Org has two peers(peer0 and peer1) , I have installed two chaincodes on it. one of them is fabcar which is in fabric sample. I am using fabric-gateway-java of version 2.1.1 with mvn dependency . if i am registering with org1 then createCar and queryAllCars is working fine. but when i am registering different user with org2 then createCar is working find but queryAllCars is giving following error in my spring boot application
org.hyperledger.fabric.gateway.ContractException: make sure the chaincode fabcar has been successfully defined on channel mychannel and try again: chaincode definition for 'fabcar' exists, but chaincode is not installed
i have check installed chaincode using peer commad.
my configtx.yaml file's organization section is
&Org1
DefaultOrg defines the organization which is used in the sampleconfig
Description
I have two organization (Org1 and Org2 ) each Org has two peers(peer0 and peer1) , I have installed two chaincodes on it. one of them is fabcar which is in fabric sample. I am using fabric-gateway-java of version 2.1.1 with mvn dependency . if i am registering with org1 then createCar and queryAllCars is working fine. but when i am registering different user with org2 then createCar is working find but queryAllCars is giving following error in my spring boot application
org.hyperledger.fabric.gateway.ContractException: make sure the chaincode fabcar has been successfully defined on channel mychannel and try again: chaincode definition for 'fabcar' exists, but chaincode is not installed
i have check installed chaincode using peer commad.
my configtx.yaml file's organization section is
&Org1
DefaultOrg defines the organization which is used in the sampleconfig
of the fabric.git development environment
Name: Org1MSP
ID to load the MSP definition as
ID: Org1MSP
MSPDir: ../../../crypto-config/peerOrganizations/org1.example.com/msp
Policies defines the set of policies at this level of the config tree
For organization policies, their canonical path is usually
/Channel/<Application|Orderer>//
Policies:
Readers:
Type: Signature
Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')"
Writers:
Type: Signature
Rule: "OR('Org1MSP.admin', 'Org1MSP.client')"
Admins:
Type: Signature
Rule: "OR('Org1MSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('Org1MSP.peer')"
leave this flag set to true.
AnchorPeers:
AnchorPeers defines the location of peers which can be used
for cross org gossip communication. Note, this value is only
encoded in the genesis block in the Application section context
Port: 7051
&Org2
DefaultOrg defines the organization which is used in the sampleconfig
of the fabric.git development environment
Name: Org2MSP
ID to load the MSP definition as
ID: Org2MSP
MSPDir: ../../../crypto-config/peerOrganizations/org2.example.com/msp
Policies defines the set of policies at this level of the config tree
For organization policies, their canonical path is usually
/Channel/<Application|Orderer>//
Policies:
Readers:
Type: Signature
Rule: "OR('Org2MSP.admin', 'Org2MSP.peer', 'Org2MSP.client')"
Writers:
Type: Signature
Rule: "OR('Org2MSP.admin', 'Org2MSP.client')"
Admins:
Type: Signature
Rule: "OR('Org2MSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('Org2MSP.peer')"
what is problem i am not getting .
can any one help me to get out of this? it would be grate help for me . thanks in advance
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: