Questions tagged [hyperledger-fabric-sdk-java]

For questions specific to the usage of the Java version of the Hyperledger Fabric Software Development Kit (SDK). When using this tag also include the more generic [hyperledger-fabric] tag.

34 questions
4
votes
3 answers

The channel is not configured with any peers with the 'discover' role

I am trying to do a transaction from java fabric SDK. I am able to query the data properly from the node but while doing a transaction I am getting the following error: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: The channel is…
Paradox
  • 327
  • 3
  • 19
4
votes
1 answer

Hyperledger fabric endorsement policy error using Java SDK

I am working on golang version of fabcar smart contract while seeking to implement a Java-SDK API which enrolls an admin, registers a user and performs query-update value operations based on…
2
votes
1 answer

Running hyperledger fabric java gateway example code throws The gateway identity must be set

I am trying to write a fabric gateway app on basic-network, my code looks like this. public static void main(String[] args) throws Exception { // Load a file system based wallet for managing identities. Path walletPath =…
2
votes
0 answers

Hyperledger Fabric's Idemix usage

I want to try the idemix feature introduced by Fabric 1.3 version. based on the repo. I did some changes in order to support idemix. But when I run java -cp blockchain-client.jar org.example.chaincode.invocation.InvokeChaincode ,btw, I omitted the…
1
vote
1 answer

How to insert the data into hyper-ledger fabric fabric network (block-chain) through REST APIs

I am planning to implement a block-chain based application for storing the electricity consumption records to a hyperledger fabric network. Is there any way to insert the data through REST APIs?
1
vote
1 answer

Fabric-java-sdk not found org.hyperledger.fabric.protos.peer.FabricProposalResponse

When I updated the fabric-java-sdk version from 1.4.1 to 2.0.0. The app can't be compiled. Those classes not…
Ethan Hu
  • 33
  • 3
1
vote
2 answers

How to get the parameters passed to the transaction for the historical states

I am trying to get the operation which is responsible for the new state. In simple words, I want to get the function name passed to the invoke method. When I am looking into the historical states I am able to fetch its value, timestamp, transaction…
1
vote
1 answer

Hyperledger Fabric: Async / parallel transaction using java-gateway-sdk

I'm trying to send async transaction to my Fabric network using the java gateway sdk but i receive the error Channel [CHANNEL NAME] has been shutdown. Here some example code: Gateway.Builder builder = Gateway.createBuilder() …
1
vote
1 answer

How do I force set the user context without a key value store or wallet?

For testing purposes, I already have the public key + private key + certificate on hand (can just hardcode it), and I can set up the CA through the connection profile, but how would I invoke a transaction without setting up the filesystem key value…
0
votes
1 answer

During setup of peer cli in hyperledger fabric, getting Endorsement failure error. Did anyone face this issue, how can this be resolved?

On executing 'peer chaincode invoke' as per the documentation for fabric, getting the error 'Error: endorsement failure during invoke. response: status:500 message:"Undefined contract called"'. I have checked packages and instantiated list: peer…
0
votes
0 answers

Suppressed: java.lang.UnsatisfiedLinkError: no io_grpc_netty_shaded_netty_tcnative in java.library.path

I,m trying to do a aws java 11 lambda fabric client using fabric-sdk-java 2.2.21 for amazon managed blockchain using hyperledger fabric 2.2, but when I run the lambda I got this error "Suppressed: java.lang.UnsatisfiedLinkError: no…
0
votes
0 answers

How Hyperledger Fabric java chaincode set peerAddresses and tlsRootCertFiles

I have a transaction that involves reading the implicit private data set of ORG1. I can use the following command in cli, where I specify peerAddresses and tlsRootCertFiles: peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride…
muxi
  • 1
0
votes
1 answer

Hyperledger Fabric2.4.7 testnetwork- how can I read an other Orgs implicit private data collection

Now, I am using the fabric 2.4.7 version of the test network on ubuntu20.04. This network has an order node and two peer nodes peer0.org1 and peer0.org2. I tried to use implicit private data collection, using the default configuration. According to…
0
votes
0 answers

Enrollment certificate of user does not have the attribute values assigned to it when registering it using Hyperledger-fabric-sdk-java

I want to use Access Based Control in my blockchain network and am assigning the user with attributes for this purpose. However, the enrollment certificate stored in my wallet does not have the attribute values present in it. My code snippet for…
0
votes
0 answers

Clarification Needed : Docker Containers are Not Releasing Memory

Our migration application is built in java for migrating data into hyperledger fabric 2.2 using Java SDk to connect to HLF Network. We are processing data in batches of 4000 records in a scheduler and scheduler runs after every 1 min interval. We…
1
2 3