after deploy the maven environment and build the network, I reach the 4th step, Deploy and Instantiate the chaincode, then I meet the tricky problem,
java -cp blockchain-client.jar org.example.network.DeployInstantiateChaincode
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/Users/dongshengwang/Downloads/hf/blockchain/blockchain-application-using-fabric-java-sdk/network_resources/blockchain-client.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep. 06, 2019 5:00:34 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org1MSP admin
Sep. 06, 2019 5:00:35 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Sep. 06, 2019 5:00:35 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Sep. 06, 2019 5:00:35 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org2MSP admin
Sep. 06, 2019 5:00:35 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Sep. 06, 2019 5:00:35 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment SUCCESS
Sep. 06, 2019 5:00:35 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiate proposal request fabcar on channel mychannel with Fabric client Org2MSP admin
Sep. 06, 2019 5:00:35 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiating Chaincode ID fabcar on channel mychannel
Sep. 06, 2019 5:08:33 PM org.example.client.ChannelClient instantiateChainCode
INFO: Chaincode fabcar on channel mychannel instantiation java.util.concurrent.CompletableFuture@58670130[Completed exceptionally: java.lang.IllegalArgumentException: The proposal responses have 0 inconsistent groups with 4 that are invalid. Expected all to be consistent and none to be invalid.]
Sep. 06, 2019 5:08:33 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Sep. 06, 2019 5:08:33 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Sep. 06, 2019 5:08:33 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Sep. 06, 2019 5:08:33 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
then I type sudo dd if=/dev/zero
Password:
^
^C1715220+0 records in
1715219+0 records out
878192128 bytes transferred in 28.495019 secs (30819145 bytes/sec)
looks like the virtual memory has increased a lot, then I type:
java -cp blockchain-client.jar org.example.network.DeployInstantiateChaincode
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/Users/dongshengwang/Downloads/hf/blockchain/blockchain-application-using-fabric-java-sdk/network_resources/blockchain-client.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep. 06, 2019 10:37:59 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org1MSP admin
Sep. 06, 2019 10:37:59 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:37:59 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:37:59 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org2MSP admin
Sep. 06, 2019 10:37:59 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:37:59 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:37:59 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiate proposal request fabcar on channel mychannel with Fabric client Org2MSP admin
Sep. 06, 2019 10:37:59 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiating Chaincode ID fabcar on channel mychannel
Sep. 06, 2019 10:38:05 PM org.example.client.ChannelClient instantiateChainCode
INFO: Chaincode fabcar on channel mychannel instantiation java.util.concurrent.CompletableFuture@459f7aa3[Not completed]
Sep. 06, 2019 10:38:05 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation SUCCESS
Sep. 06, 2019 10:38:05 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation SUCCESS
Sep. 06, 2019 10:38:05 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation SUCCESS
Sep. 06, 2019 10:38:05 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation SUCCESS
Seems like the virtual memory contribute to this problem, then I just type:java -cp blockchain-client.jar org.example.network.DeployInstantiateChaincode
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.bouncycastle.jcajce.provider.drbg.DRBG (file:/Users/dongshengwang/Downloads/hf/blockchain/blockchain-application-using-fabric-java-sdk/network_resources/blockchain-client.jar) to constructor sun.security.provider.Sun()
WARNING: Please consider reporting this to the maintainers of org.bouncycastle.jcajce.provider.drbg.DRBG
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep. 06, 2019 10:38:40 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org1MSP admin
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:38:41 PM org.example.client.FabricClient deployChainCode
INFO: Deploying chaincode fabcar using Fabric client Org2MSP admin
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code deployment FAILURE
Sep. 06, 2019 10:38:41 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiate proposal request fabcar on channel mychannel with Fabric client Org2MSP admin
Sep. 06, 2019 10:38:41 PM org.example.client.ChannelClient instantiateChainCode
INFO: Instantiating Chaincode ID fabcar on channel mychannel
Sep. 06, 2019 10:38:41 PM org.example.client.ChannelClient instantiateChainCode
INFO: Chaincode fabcar on channel mychannel instantiation java.util.concurrent.CompletableFuture@f27ea3[Completed exceptionally: java.lang.IllegalArgumentException: The proposal responses have 0 inconsistent groups with 4 that are invalid. Expected all to be consistent and none to be invalid.]
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
Sep. 06, 2019 10:38:41 PM org.example.network.DeployInstantiateChaincode main
INFO: fabcar- Chain code instantiation FAILURE
then no matter how many times I type the same command, it just comes out FAILURE,
something happens inside the memory I guess.
My environment is: Majove 10.14.6 (18G87) 16 GB 1600 MHz DDR3
java version "12" 2019-03-19
Java(TM) SE Runtime Environment (build 12+33)
Java HotSpot(TM) 64-Bit Server VM (build 12+33, mixed mode, sharing)
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T06:00:29+11:00)
Java version: 12, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-12.jdk/Contents/Home
Default locale: en_AU, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "Mac"
Docker version 19.03.2, build 6a30dfc