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.
Questions tagged [hyperledger-fabric-sdk-java]
34 questions
0
votes
1 answer
fabric-sdk-java How to implement the Network.addBlockListener method in my App.java
I am new to Hyperlegder-Fabric and already manage to connect to a network through the org.hyperledger.fabric.gateway package.
This is my App.java class:
//Fabric Imports
import org.hyperledger.fabric.gateway.*;
import…

Víctor Rosillo
- 47
- 5
0
votes
1 answer
How to get file-system wallet to use with the fabric-gateway-java sample
I have a blockchain deployed on IBM cloud. I implemented a Node.js client app that enrolls the Admin user for MyOrg and imports a wallet locally on the file system. Once the wallet is imported I can submit transactions on the chaincode to upload…

user2960174
- 49
- 6
0
votes
0 answers
Unable to update channel config using Fabric SDK Java: field "common.ConfigUpdate.channel_id" contains invalid UTF-8
Network setup:
The network is setup with 1 orderer + 2 organizations with 2 peers each (2 * 2 = 4 peers).
I don't think there's a problem with the network, nor with the crypto materials, the channel config transactions, since I've done similar…

Zenas Chen
- 471
- 4
- 14
0
votes
1 answer
Fabric sdk java upgrade 1.4 to 2.2 version
Am trying to upgrade my fabric sdk java from 1.4 to 2.2 version
Is see eventhub being removed from 2.x version
Now how should I register my events and how should I wait for chain code events in 2.2 version
Am new to hyperledger, can someone help me…

Anu
- 1
- 4
0
votes
1 answer
Hyperledger Fabric: Service discovery for private data collection
In Hyperledger Fabric, does service discovery support finding query peers for private data collection (PDC).
In a channel consisting of 2 orgs (org1 and org2), if I create a PDC for org1 only, only the peers in org1 hold the private data. If in PDC…

ning
- 731
- 1
- 4
- 15
0
votes
1 answer
Create Genesis Block and Channel Config Transaction using Java SDK
I am looking to create the Genesis Block and the channel config transaction using the Java SDK in Hyperledger Fabric. I know that we can use configtxgen to do this, but I am trying to avoid that since we have a requirement to create channels by the…

Srikumar S
- 46
- 3
0
votes
1 answer
No peers provided by network with hyperledger app on android
With the Commercial paper tutorial, I continue to try to implement the java application to an Android emulator.
On Issue.java, when call Network network = gateway.getNetwork("mychannel"); an error occur : IllegalArgumentException: No peers…

Hisao
- 25
- 6
0
votes
1 answer
Android Studio class not found on path DexPathList with hyperledger fabric
On the Commercial paper tutorial there is an application on java, it works well. Now, I try to implement with Android Studio as a tuto.
I modified some lines to launch on an emulator and followed the pom.xml as possible to get the dependencies. But…

Hisao
- 25
- 6
0
votes
1 answer
Getting Empty Buffer after Tx submission : Fabric 2.1 with fabric-network client
I am using fabric 2.1, with new client library fabric-network. I have configured network, created channel, installed chaincode, etc. I could invoke transactions through CLI.
Fabric Version: 2.1
fabric-network:2.1
I have defined Event Handler…

PAVAN
- 771
- 4
- 14
0
votes
0 answers
Hyperledger Fabric with Java: problems during the deployment of the Fabcar's sample chaincode
According to the documentation at https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html, I'm trying to deploy the Fabcar Chaincode by using Java. After run the network and created a channel, I used the command deployCC -l java to…

Pippo Pluto
- 151
- 3
0
votes
1 answer
How to revoke user in Hyperledger Fabric 2.0
I'm trying to revoke user by JAVA SDK
String crl = caClient.revoke(revoker, userToRevoke, "removefromcrl", true);
After executed the above line userToRevoke can still query and invoke normally. Why is it like that?
and what should I do next with…

Kanzt
- 135
- 1
- 6
- 13
0
votes
1 answer
HyperLedger fabric java sdk
I am using Hyperledger Fabric 1.4v, running one organisation with two peers(peer0,peer1) each running on separate vm in an native setup.Orderer also running on a separate vm. In a webclient, using java sdk the chaincodes are executed and each user…

pavi thra
- 19
- 3
0
votes
1 answer
Create REST API to access Fabric with Java SDK
I am planning to allow access to Smart Contract deployed into a Hyperledger Fabric blockchain network. I was able to create the network, install the contracts and use fabric-sdk-java to access the blockchain network (propose and submit…
0
votes
2 answers
How to enable discover role when joining a channel from a peer
I am having following error when trying to execute a transaction using the Discovery service from Fabric Java SDK
org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: The channel is not configured with any peers with the 'discover'…

icordoba
- 1,834
- 2
- 33
- 60
0
votes
1 answer
Hyperledger Fabric: Channel configuration has no channels defined
I got to the project that is based on BYFN sample, but limited to one organization only.
In the app when I call following code:
private Contract getContract(Gateway gw) {
return gw.getNetwork("mychannel").getContract("realchain");
}
following…

Ikar Pohorský
- 4,617
- 6
- 39
- 56