markparz (Thu, 02 Feb 2017 23:32:28 GMT):
java-chaincode Implement java chaincode support in the fabric

mastersingh24 (Fri, 03 Feb 2017 00:49:59 GMT):
Has joined the channel.

salmanbaset (Fri, 03 Feb 2017 01:19:45 GMT):
Has joined the channel.

grapebaba (Fri, 03 Feb 2017 02:24:47 GMT):
Has joined the channel.

Ratnakar (Fri, 03 Feb 2017 02:52:05 GMT):
Has joined the channel.

didnotgetagoodname (Fri, 03 Feb 2017 03:58:49 GMT):
Has joined the channel.

rock_martin (Fri, 03 Feb 2017 05:21:48 GMT):
Has joined the channel.

ryokawajp (Fri, 03 Feb 2017 07:51:52 GMT):
Has joined the channel.

cca88 (Fri, 03 Feb 2017 08:21:15 GMT):
Has joined the channel.

jdockter (Fri, 03 Feb 2017 11:38:55 GMT):
Has joined the channel.

dante (Fri, 03 Feb 2017 13:11:12 GMT):
Has joined the channel.

silliman (Fri, 03 Feb 2017 13:57:02 GMT):
Has joined the channel.

gormand (Fri, 03 Feb 2017 14:42:59 GMT):
Has joined the channel.

ssaddem (Fri, 03 Feb 2017 15:51:39 GMT):
Has joined the channel.

rickr (Fri, 03 Feb 2017 17:35:07 GMT):
Has joined the channel.

marcusvcs (Fri, 03 Feb 2017 18:47:07 GMT):
Has joined the channel.

karkal (Fri, 03 Feb 2017 19:52:36 GMT):
Has joined the channel.

jiangyaoguo (Sat, 04 Feb 2017 01:31:28 GMT):
Has joined the channel.

bfuentes@fr.ibm.com (Sat, 04 Feb 2017 09:20:08 GMT):
Has joined the channel.

muralisr (Sat, 04 Feb 2017 14:48:56 GMT):
Has joined the channel.

sword_linux (Sat, 04 Feb 2017 15:24:07 GMT):
Has joined the channel.

yury (Sat, 04 Feb 2017 21:36:33 GMT):
Has joined the channel.

smfaizalkhan (Sun, 05 Feb 2017 05:23:14 GMT):
Has joined the channel.

guruprasath (Sun, 05 Feb 2017 06:15:46 GMT):
Has joined the channel.

smfaizalkhan (Sun, 05 Feb 2017 07:00:02 GMT):
Hello Markparz

schwentker2 (Sun, 05 Feb 2017 15:47:59 GMT):
Has joined the channel.

Jonny (Mon, 06 Feb 2017 08:12:57 GMT):
Has joined the channel.

Jonas.Hedin (Mon, 06 Feb 2017 09:47:32 GMT):
Has joined the channel.

david.peyronnin (Mon, 06 Feb 2017 09:52:32 GMT):
Has joined the channel.

mihaig (Mon, 06 Feb 2017 10:37:54 GMT):
Has joined the channel.

klorenz (Mon, 06 Feb 2017 16:05:12 GMT):
Has joined the channel.

pschnap (Mon, 06 Feb 2017 18:51:43 GMT):
Has joined the channel.

weeds (Mon, 06 Feb 2017 20:24:59 GMT):
Has joined the channel.

liutc (Tue, 07 Feb 2017 01:11:47 GMT):
Has joined the channel.

crmiles (Tue, 07 Feb 2017 01:36:04 GMT):
Has joined the channel.

ankitkamra (Tue, 07 Feb 2017 02:57:45 GMT):
Has joined the channel.

ArnabChatterjee (Tue, 07 Feb 2017 03:06:45 GMT):
Has joined the channel.

ArnabChatterjee (Tue, 07 Feb 2017 03:06:55 GMT):
Hi, I wish to debug Java chaincode on eclipse. Is there any way I can pass the following parameter while running chaincode.jar file in the docker image: java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n -jar chaincode.jar

zlliu (Tue, 07 Feb 2017 08:18:23 GMT):
Has joined the channel.

Rymd (Tue, 07 Feb 2017 09:29:36 GMT):
Has joined the channel.

choojoyq (Tue, 07 Feb 2017 09:36:34 GMT):
Has joined the channel.

brianeno (Tue, 07 Feb 2017 10:49:00 GMT):
Has joined the channel.

reachk.raj (Tue, 07 Feb 2017 14:15:12 GMT):
Has joined the channel.

cbf (Tue, 07 Feb 2017 15:13:39 GMT):
Has joined the channel.

umasuthan (Tue, 07 Feb 2017 16:04:18 GMT):
Has joined the channel.

robear (Tue, 07 Feb 2017 16:34:17 GMT):
Has joined the channel.

mohamoud.egal (Tue, 07 Feb 2017 17:11:45 GMT):
Has joined the channel.

nickmelis (Tue, 07 Feb 2017 17:13:54 GMT):
Has joined the channel.

tbrooke (Tue, 07 Feb 2017 20:21:31 GMT):
Has joined the channel.

beauson45 (Tue, 07 Feb 2017 20:57:31 GMT):
Has joined the channel.

Andy Zhang (Wed, 08 Feb 2017 03:00:14 GMT):
Has joined the channel.

ArulmuruganS (Wed, 08 Feb 2017 03:49:37 GMT):
Has joined the channel.

satheeshk (Wed, 08 Feb 2017 10:00:12 GMT):
Has joined the channel.

Percival Lucena (Wed, 08 Feb 2017 11:31:04 GMT):
Has joined the channel.

bur (Wed, 08 Feb 2017 13:29:55 GMT):
Has joined the channel.

s0rins (Wed, 08 Feb 2017 14:21:30 GMT):
Has joined the channel.

nickmelis (Wed, 08 Feb 2017 14:24:15 GMT):
is there a reason why the chaincode hash changes every time I deploy it even though there's no change?

nickmelis (Wed, 08 Feb 2017 14:24:54 GMT):
also I'm overriding getChaincodeID with a proper meaningful name but it doesn't get used as the ID anyway

o_drugan (Wed, 08 Feb 2017 14:27:08 GMT):
Has joined the channel.

jaziniho (Wed, 08 Feb 2017 14:30:17 GMT):
Has joined the channel.

satheeshk (Wed, 08 Feb 2017 16:16:00 GMT):
@ArnabChatterjee No way to pass the java invoke parameters while running the chaincode in network mode, however you can do that in DEV mode

satheeshk (Wed, 08 Feb 2017 16:17:30 GMT):
@nickmelis In non-dev mode, the chaincodeId is calculated based on the hash. Overriding with getChaincodeID is applicable only in DEV mode

jaziniho (Wed, 08 Feb 2017 16:27:08 GMT):
@satheeshk how is the hash calculated?

jaziniho (Wed, 08 Feb 2017 16:27:17 GMT):
it's not clear to us why we're getting a different hash for same chaincode

satheeshk (Wed, 08 Feb 2017 16:29:26 GMT):
hash is calculated based on the contents of the chaincode path given, and the deploy input parameters. If there is a change in the contents wrt to build files, you might get different hashes, when your project gets packaged.

satheeshk (Wed, 08 Feb 2017 16:29:26 GMT):
hash is calculated based on the contents of the chaincode path given, and the deploy input parameters. If there is a change in the contents like build files, you might get different hashes, when your project gets packaged.

satheeshk (Wed, 08 Feb 2017 16:30:24 GMT):
I presume you are running the v0.6

jaziniho (Wed, 08 Feb 2017 16:30:56 GMT):
yes, and it's the exact same git repo, checked out at the exact same path location

jaziniho (Wed, 08 Feb 2017 16:31:06 GMT):
but on 2 different machines :)

jaziniho (Wed, 08 Feb 2017 16:32:06 GMT):
so we couldn't really work out why the hash was different...

jkirke (Wed, 08 Feb 2017 16:33:25 GMT):
Has joined the channel.

satheeshk (Wed, 08 Feb 2017 16:41:33 GMT):
Can you try to remove the .git and other unrelated files/folders and try ? just a hunch though.

nickmelis (Wed, 08 Feb 2017 16:47:55 GMT):
@satheeshk as far as I can see the hash gets generated on the client side (Java SDK) and passed down to the peer. The related transaction contains that generated ID and the actual jar. And as you said the hash is based on location on the client + function + parameters

nickmelis (Wed, 08 Feb 2017 16:48:12 GMT):
so the whole thing doesn't make any sense :'(

satheeshk (Wed, 08 Feb 2017 16:48:50 GMT):
I didn't realize you are using SDK, I thought you are doing a CLI deploy..

nickmelis (Wed, 08 Feb 2017 16:50:45 GMT):
nope, Java SDK

nickmelis (Wed, 08 Feb 2017 16:51:00 GMT):
and v0.6

nickmelis (Wed, 08 Feb 2017 16:53:26 GMT):
so as far as I can see a Dockerfile gets created on the chaincode src folder on client side

nickmelis (Wed, 08 Feb 2017 16:54:10 GMT):
the whole directory gets tar-gz'ed and sent over to the peer, which unpacks it into a docker container and executes the steps inside the Dockerfile

nickmelis (Wed, 08 Feb 2017 16:54:34 GMT):
but the ChaincodeID comes straight from the client as far as I can see

satheeshk (Wed, 08 Feb 2017 17:01:51 GMT):
I will respond in a bit.. BRB

jaziniho (Wed, 08 Feb 2017 17:21:41 GMT):
thanks... @satheeshk

jaziniho (Wed, 08 Feb 2017 17:21:44 GMT):
looking at this code here:

jaziniho (Wed, 08 Feb 2017 17:21:45 GMT):
https://github.com/hyperledger/fabric-sdk-java/blob/master/src/main/java/org/hyperledger/fabric/sdk/helper/SDKUtil.java#L101

jaziniho (Wed, 08 Feb 2017 17:21:55 GMT):
where the hash is calculated, we suddenly wondered

jaziniho (Wed, 08 Feb 2017 17:22:12 GMT):
is that File walk of the directory going to include hidden folders...say for example, .git?

jaziniho (Wed, 08 Feb 2017 17:22:31 GMT):
so perhaps the .git directory which is in the chaincode dir is causing a difference in the hash, due to some git metadata ?

satheeshk (Wed, 08 Feb 2017 17:23:23 GMT):
Yes, it does include the .git hidden folder, thats why I wanted you guys to try after removing the .git other generated build files..

satheeshk (Wed, 08 Feb 2017 17:23:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=bkmGHzyntKEhqnTqg)

jaziniho (Wed, 08 Feb 2017 17:24:00 GMT):
haa :D

jaziniho (Wed, 08 Feb 2017 17:24:13 GMT):
maybe we did read it and subliminally realised

jaziniho (Wed, 08 Feb 2017 17:55:36 GMT):
for reference, removing the .git folder certainly helped. we now get the same ID

jaziniho (Wed, 08 Feb 2017 17:56:01 GMT):
maybe this hashing method is somethign to review in v1.0 or v1.0++ :)

jaziniho (Wed, 08 Feb 2017 17:56:06 GMT):
seems an easy trap to fall into

jaziniho (Wed, 08 Feb 2017 17:58:06 GMT):
thanks for the help, it is appreciated.

nickmelis (Wed, 08 Feb 2017 18:04:58 GMT):
ok apparently the problem was that the SDK was getting the hash of ALL the files in the chaincode source folder, including .git folder (which changes every time you check out)

Basug (Wed, 08 Feb 2017 21:18:03 GMT):
Has joined the channel.

Basug (Wed, 08 Feb 2017 21:19:00 GMT):
HI All - I have setup based on https://hyperledger-fabric.readthedocs.io/en/latest/gettingstarted/

Basug (Wed, 08 Feb 2017 21:19:18 GMT):
is there a way to get java sdk working with this setup ?

Basug (Wed, 08 Feb 2017 21:51:45 GMT):
I have asked about this in all of the java chat rooms, looks like I have to try it else where

mastersingh24 (Wed, 08 Feb 2017 22:07:35 GMT):
my initial answer is that the Java SDK is still a bit behind the NodeSDK at this point even in terms of the stuff we did for the getting started last week. @rick - can you confirm or deny?

Basug (Wed, 08 Feb 2017 22:14:18 GMT):
@mastersingh24 thank you. I will continue with node for now

adc (Thu, 09 Feb 2017 13:57:22 GMT):
Has joined the channel.

adc (Thu, 09 Feb 2017 13:59:14 GMT):
Hi, who is working on the chaincode java shim?

theathibm (Thu, 09 Feb 2017 18:43:17 GMT):
Has joined the channel.

theathibm (Thu, 09 Feb 2017 18:45:30 GMT):
I'm looking into using java chaincode for a v1.0 project. Any examples of using nodesdk client to drive java chaincode using v1.0 channels would be appreciated.

tim0k (Thu, 09 Feb 2017 20:14:44 GMT):
Has joined the channel.

mdozturk (Thu, 09 Feb 2017 21:59:18 GMT):
Has joined the channel.

lfeagan (Fri, 10 Feb 2017 03:33:38 GMT):
Has joined the channel.

carlosarturoq (Fri, 10 Feb 2017 04:57:28 GMT):
Has joined the channel.

bfuentes@fr.ibm.com (Fri, 10 Feb 2017 08:56:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=yQaRSaySvmGrTDQoF) @theathibm I believe it is a little bit early to start working on V1.0 with Java

sachikoy (Sun, 12 Feb 2017 02:03:02 GMT):
Has joined the channel.

Shroog AlSaquabi (Sun, 12 Feb 2017 21:52:07 GMT):
Has joined the channel.

Ashish (Mon, 13 Feb 2017 02:58:40 GMT):
Has joined the channel.

lfeagan (Mon, 13 Feb 2017 06:05:28 GMT):
Last week we tried to use the Java chaincode capabilities in 1.0 and were unsuccessful. Went back to using go for customer projects.

zwsyjj (Mon, 13 Feb 2017 13:01:44 GMT):
Has joined the channel.

satheeshk (Mon, 13 Feb 2017 14:06:12 GMT):
@lfeagan I submitted a patch recently wrt java chaincode on 1.0.. https://gerrit.hyperledger.org/r/#/c/5859/ Please test and try if you can.

dayubian (Tue, 14 Feb 2017 02:20:30 GMT):
Has joined the channel.

daudahmad (Wed, 15 Feb 2017 09:25:13 GMT):
Has joined the channel.

PatisP (Wed, 15 Feb 2017 13:39:10 GMT):
Has joined the channel.

nickmelis (Wed, 15 Feb 2017 14:14:15 GMT):
@all is there a way to test the Java chaincode with some sort of mock ChaincodeStub?

bfuentes@fr.ibm.com (Wed, 15 Feb 2017 14:14:50 GMT):
@nickmelis use Mockito

nickmelis (Wed, 15 Feb 2017 14:14:52 GMT):
I'm not talking about unit tests, I'm talking about simulating how the real chaincode behaves in a real environment

nickmelis (Wed, 15 Feb 2017 14:15:12 GMT):
@bfuentes@fr.ibm.com ^^ see above :)

nickmelis (Wed, 15 Feb 2017 14:15:38 GMT):
some sort of integration test without having to deploy chaincode on a real environment

nickmelis (Wed, 15 Feb 2017 14:16:04 GMT):
a bit like the JS smart contract compiler in Ethereum

nickmelis (Wed, 15 Feb 2017 14:16:04 GMT):
a bit like the JS smart contract compiler in Ethereum (for those who are familiar with it)

o.o. (Wed, 15 Feb 2017 14:28:29 GMT):
Has joined the channel.

donaldsbell (Wed, 15 Feb 2017 14:42:50 GMT):
Has joined the channel.

zerppen (Wed, 15 Feb 2017 14:58:41 GMT):
Has joined the channel.

zerppen (Wed, 15 Feb 2017 15:00:10 GMT):
May I ask a question?java-chaincode how to use method setEvent of chaincodeEvent like go-chaincode SetEvent of fabric-sdk-java v0.6

nickmelis (Wed, 15 Feb 2017 15:38:28 GMT):
how would you implement a unique id generator (possibly for an incrementing sequence number) within the chaincode? I was thinking about using a variable in the state to keep track of the latest sequence number but how would you ensure it is read/written in an atomic way across nodes?

satheeshk (Wed, 15 Feb 2017 16:28:59 GMT):
@zerppen I added events support to java chaincode on 0.6, since we were moving to 1.0 arch quickly it did not get merged. You are free to cherry pick and try that however. https://gerrit.hyperledger.org/r/#/c/2975/

zerppen (Wed, 15 Feb 2017 16:29:49 GMT):
@satheeshk thank u very much!

knagware9 (Thu, 16 Feb 2017 09:30:26 GMT):
Has joined the channel.

wutongtree (Thu, 16 Feb 2017 09:49:54 GMT):
Has joined the channel.

rrader (Thu, 16 Feb 2017 15:09:30 GMT):
Has joined the channel.

bobbiejc (Thu, 16 Feb 2017 20:56:35 GMT):
Has joined the channel.

mcoblenz (Thu, 16 Feb 2017 20:56:55 GMT):
Has joined the channel.

ylsGit (Fri, 17 Feb 2017 02:28:46 GMT):
Has joined the channel.

yury (Mon, 20 Feb 2017 12:36:35 GMT):
hi, can I call qscc from java sdk?

yury (Mon, 20 Feb 2017 12:36:51 GMT):
I get following error: chainID qscc provided for a chainless syscc

yury (Mon, 20 Feb 2017 12:51:56 GMT):
Has left the channel.

kleman (Mon, 20 Feb 2017 13:38:09 GMT):
Has joined the channel.

nickmelis (Mon, 20 Feb 2017 14:25:29 GMT):
@all: I started getting this message today when deploying Java chaincode: > vp0_1 | 14:23:50.565 [dockercontroller] deployImage -> ERRO 188 Error building images: Tag latest not found in repository docker.io/hyperledger/fabric-javaenv

nickmelis (Mon, 20 Feb 2017 14:25:41 GMT):
what has changed?

jimthematrix (Mon, 20 Feb 2017 16:13:18 GMT):
Has joined the channel.

zerppen (Tue, 21 Feb 2017 07:01:03 GMT):
@all Hi,I am testing my code basing on fabric-sdk-java-0.6-SNAPSHOT.jar.I changed the configuration of pom.xml,and compiled by maven so that I can invoke methods in fabric-sdk-java-0.6-SNAPSHOT.jar. But, when I deployed my java-chaincode,the docker logs told "cannot find symbol"

schwentker2 (Tue, 21 Feb 2017 07:03:54 GMT):
@nickmelis @zerppen please use at all handle with care. It pings everyone on this channel. The channel is being moderated daily. Make sense?

zerppen (Tue, 21 Feb 2017 07:11:05 GMT):
sorry,I just want to find a way to handle my problem about the project fabric-sdk-java.

nickmelis (Tue, 21 Feb 2017 09:34:27 GMT):
@schwentker2 yes makes sense. Sorry

nickmelis (Tue, 21 Feb 2017 09:36:31 GMT):
@zerppen have you got the full logs?

zerppen (Tue, 21 Feb 2017 09:50:39 GMT):
I can find it

mmani99 (Wed, 22 Feb 2017 03:20:12 GMT):
Has joined the channel.

omkardash (Wed, 22 Feb 2017 05:41:59 GMT):
Has joined the channel.

cbf (Wed, 22 Feb 2017 13:59:09 GMT):
Has left the channel.

psa (Wed, 22 Feb 2017 15:56:23 GMT):
Has joined the channel.

stanacton (Wed, 22 Feb 2017 18:08:39 GMT):
Has joined the channel.

stanacton (Wed, 22 Feb 2017 18:12:34 GMT):
@nickmelis Hi, I'm not sure if you had your question answered, but I had the same problem I had to pull the hyperledger/fabric-javaenv:x86_64-0.6.1-preview image and tag it to hyperledger/fabric-javaenv:latest and that did the trick for me

nickmelis (Thu, 23 Feb 2017 09:38:11 GMT):
@stanacton that's the answer I was given. I had to do it manually

srm (Thu, 23 Feb 2017 13:30:52 GMT):
Has joined the channel.

mcoblenz (Thu, 23 Feb 2017 15:12:22 GMT):
Could someone please point me to some info on how access control could work? For example, in the "marbles" example, how could we make it so that only a marble's owner can offer it for trade?

mcoblenz (Thu, 23 Feb 2017 15:12:54 GMT):
That example already talks about users, but the notion of "user" seems to just be one of the arguments. I'm looking for a way to make sure that users are who they say they are.

mcoblenz (Thu, 23 Feb 2017 15:13:35 GMT):
(I'm asking here because I'm primarily interested in how this works in Java chaincode, but a Go example would be welcome too)

weeds (Thu, 23 Feb 2017 19:16:33 GMT):
@dshuffma Hi David- do you think you can help @mcoblenz Thanks!

dshuffma (Thu, 23 Feb 2017 19:16:33 GMT):
Has joined the channel.

rnair@itbit.com (Thu, 23 Feb 2017 21:50:08 GMT):
Has joined the channel.

zerppen (Sun, 26 Feb 2017 01:39:28 GMT):
@nickmelis hi,the docker logs is :* Where: Build file '/root/core/chaincode/shim/java/build.gradle' line: 28 * What went wrong: Error resolving plugin [id: 'com.google.protobuf', version: '0.8.0'] > Could not GET 'https://plugins.gradle.org/api/gradle/2.12/plugin/use/com.google.protobuf/0.8.0'. > Remote host closed connection during handshake

zerppen (Sun, 26 Feb 2017 01:41:49 GMT):
when docker Run core/chaincode/shim/java/javabuild.sh

zerppen (Sun, 26 Feb 2017 04:11:07 GMT):
I solved this problem. Thanks @nickmelis nickmelis

zerppen (Sun, 26 Feb 2017 05:11:33 GMT):
Excuse me.I bumped a problem.I would use the source code of the fabric v0.6 implementation of the SimpleSample no problem; changed core / chaincode / shim / java / src / main / java / org / hyperledger / Java / shim following a few code, make clean and then make peer no reported abnormal (build.gradle added dependencies) But the test SimpleSample to the problem. The first query when prompted "Error: Error querying chaincode: rpc error: code = 2 desc = Error: Failed to launch chaincode spec (premature execution - chaincode (27cb2925013a5e8f27b41be748e6767c3fbc7bfdfe2453c2640f9069e75c4db38735fa3b6b8cac78e212a1c97193f3bfb2f9b810ce0a11f437a96b330d508fbd) is being launched)," Here is my understanding that chaincode Run, after a few times to perform the query also get the corresponding results. After about 2 minutes, suggesting that "Error: Error querying chaincode: rpc error: code = 2 desc = Error: Failed to launch chaincode spec (Could not get deployment transaction for 27cb2925013a5e8f27b41be748e6767c3fbc7bfdfe2453c2640f9069e75c4db38735fa3b6b8cac78e212a1c97193f3bfb2f9b810ce0a11f437a96b330d508fbd - LedgerError - ResourceNotFound: ledger: resource not found) "See peer node logs show" 12: 45: 36.183 [chaincode] Launch -> ERRO 01a launchAndWaitForRegister failed Timeout expired while starting chaincode 27cb2925013a5e8f27b41be748e6767c3fbc7bfdfe2453c2640f9069e75c4db38735fa3b6b8cac78e212a1c97193f3bfb2f9b810ce0a11f437a96b330d508fbd (networkid: dev, peerid: jdoe, tx: 27cb2925013a5e8f27b41be748e6767c3fbc7bfdfe2453c2640f9069e75c4db38735fa3b6b8cac78e212a1c97193f3bfb2f9b810ce0a11f437a96b330d508fbd) "repeatedly, all the result

bkvellanki (Mon, 27 Feb 2017 21:57:19 GMT):
Has joined the channel.

seand20tech (Mon, 27 Feb 2017 22:51:32 GMT):
Has joined the channel.

satheeshk (Wed, 01 Mar 2017 10:30:50 GMT):
@zerppen Were you able to get past that problem ?

zerppen (Wed, 01 Mar 2017 11:32:41 GMT):
no

zerppen (Wed, 01 Mar 2017 11:33:47 GMT):
I excuted rm -rf /var/hyperledger/production/* and make peer

zerppen (Wed, 01 Mar 2017 11:34:26 GMT):
problem is updated in here https://jira.hyperledger.org/browse/FAB-2527

harrijk (Wed, 01 Mar 2017 12:29:44 GMT):
Has joined the channel.

wheelsinar (Wed, 01 Mar 2017 13:25:05 GMT):
Has joined the channel.

Donald Liu (Thu, 02 Mar 2017 01:28:45 GMT):
Has joined the channel.

icordoba (Thu, 02 Mar 2017 12:05:16 GMT):
Has joined the channel.

ElliScharlin (Fri, 03 Mar 2017 10:40:54 GMT):
Has joined the channel.

ElliScharlin (Fri, 03 Mar 2017 10:40:58 GMT):
Hi! I'm newer to the world of Hyperledger. I am making a Java project to be simply like giving out pieces of gum. I wrote a file that handles the initialization and the transferring and the deleting and the different actions that can happen to the gum, but I'm confused with where to go from here. Can someone help me?

weeds (Fri, 03 Mar 2017 13:30:51 GMT):
@ElliScharlin I'm wondering if it might be easier to use the composer tool at this point? https://fabric-composer.github.io/overview/overview.html

weeds (Fri, 03 Mar 2017 13:32:21 GMT):
Basically Composer allows you to model assets, participants, transactions…it gives you content assist, syntax checking AND standalone execution (which is pretty cool) and then if I understand correctly will help you also do some initial deployment to a test environment

weeds (Fri, 03 Mar 2017 13:32:45 GMT):
It's just a suggestion as a team came forward demonstrating it at the last Hackfest and are taking forward for incubation as open source.

weeds (Fri, 03 Mar 2017 13:33:38 GMT):
It has a model definition file, A set of Javascript processors, and Access Control List

weeds (Fri, 03 Mar 2017 13:33:49 GMT):
Anyways- the team that worked on it created a channel up here called fabric-composer

weeds (Fri, 03 Mar 2017 13:34:32 GMT):
where if that is direction you want to go, you can work with them. I know they have been reaching out as they are moving to version 1.0 as we speak.. but I saw a the Hackfest event people get things up in running in less than an hour on 0.6

dshuffma (Fri, 03 Mar 2017 14:38:09 GMT):
Has left the channel.

ElliScharlin (Fri, 03 Mar 2017 18:39:04 GMT):
Thanks! Do you happen to have any Java examples working with bluemix blockchain?

ElliScharlin (Fri, 03 Mar 2017 18:40:43 GMT):
(I've read most of the Java ones on Github)

weeds (Fri, 03 Mar 2017 19:22:27 GMT):
@ElliScharlin not at this point for Bluemix,.. I do know that they plan to build up a couple of apps for 1.0

kelvinzhong (Mon, 06 Mar 2017 07:18:57 GMT):
Has joined the channel.

ElliScharlin (Mon, 06 Mar 2017 09:02:56 GMT):
also @weeds, I am looking for Java, not javascript any similar helpful links for Java?

Jonas.Hedin (Mon, 06 Mar 2017 11:17:58 GMT):
Has left the channel.

Basug (Tue, 07 Mar 2017 13:57:44 GMT):
Hi - is it possible to api of a different rules engine within java chain code. Does the chain code run as a process or does it get loaded each time a transaction comes in ?

weeds (Tue, 07 Mar 2017 15:31:49 GMT):
@bmoss299 ^^ there is a java sdk test running in the ci now- can you point @ElliScharlin to it please? Mayb able to help on the java side at this point if not enough in the specification right now.

icordoba (Wed, 08 Mar 2017 00:45:33 GMT):
Hello, I wonder if there is an alternative approach to deploying a SmartContract and calling init method with String parameters (ctorMsg args). I mean passing a complex JSON payload as single parameter. Of course, I can pass all properties of that JSON as args parameters to the jsonrpc request but may be there is a simpler way (I will execute that from a Java application and already have the object, so it would be very simple to pass a JSON format of the object as a single parameter). thanks for any guide on this.

Rymd (Wed, 08 Mar 2017 09:19:42 GMT):
Has left the channel.

icordoba (Wed, 08 Mar 2017 11:28:01 GMT):
Hello again... maybe I am a bit lost...I have followed some guides and deployed a first chain code in docker images v0.6.1 using Postman directly into docker port 7050... what is the function of fabric-sdk-java? Can it be used as a client to execute those JSON REST requests to deploy, execute and query about transactions? i see it is v1.0... can I use it with docker images 0.6.1 or it won't work? thanks for any clarifications.

samdeir (Wed, 08 Mar 2017 15:09:09 GMT):
Has joined the channel.

Suma (Wed, 08 Mar 2017 15:43:19 GMT):
Has joined the channel.

dknochen (Wed, 08 Mar 2017 16:13:11 GMT):
Has joined the channel.

weeds (Thu, 09 Mar 2017 17:12:34 GMT):
@ElliScharlin I think you mabe able to look here: https://jenkins.hyperledger.org/ and see the CI that is run against the fabric

KoolChain (Thu, 09 Mar 2017 19:23:19 GMT):
Has joined the channel.

KoolChain (Fri, 10 Mar 2017 01:35:26 GMT):
does anyone know if it's possible to have a look at the java doc of 1.0 ?

KoolChain (Fri, 10 Mar 2017 01:40:57 GMT):
and also a real life app ? like the car lease but in java?

JatinderBali (Fri, 10 Mar 2017 15:44:19 GMT):
Has joined the channel.

Basug (Fri, 10 Mar 2017 23:57:00 GMT):
Does the Java Chain code work with 1.0 or we have to just go with 0.6 for now ?

muralisr (Sat, 11 Mar 2017 01:33:40 GMT):
@Basug there are some active CRs in java chaincode (for example https://gerrit.hyperledger.org/r/#/c/7089/) ... so the hope is that it will be in usable state near future

Basug (Sat, 11 Mar 2017 23:10:36 GMT):
@muralisr - thank you

Basug (Sun, 12 Mar 2017 06:02:55 GMT):
All - how to pass additional properties to java chaincode ?

Basug (Sun, 12 Mar 2017 06:03:02 GMT):
this is for 0.6

Basug (Sun, 12 Mar 2017 06:03:41 GMT):
I see the generated script says ```# Add default JVM options here. You can also use JAVA_OPTS and CHAINCODE_EXTERNAL_TEST_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS=""

dorrakhribi (Mon, 13 Mar 2017 09:45:57 GMT):
Has joined the channel.

jjohnst (Mon, 13 Mar 2017 12:34:40 GMT):
Has joined the channel.

eric.wall (Mon, 13 Mar 2017 14:42:11 GMT):
Has joined the channel.

JonathanTan (Tue, 14 Mar 2017 04:44:53 GMT):
Has joined the channel.

kelvinzhong (Tue, 14 Mar 2017 08:46:42 GMT):
Hi all, I wonder if the couchDB need to manually create a view, or the view would create by the peer automatically while executing a query string?

kelvinzhong (Tue, 14 Mar 2017 08:46:42 GMT):
Hi all, I wonder if the couchDB need to manually create a view, or the view would be created by the peer automatically while executing a query string?

debrajo (Tue, 14 Mar 2017 13:31:06 GMT):
Has joined the channel.

Basug (Wed, 15 Mar 2017 01:01:01 GMT):
hi - is there an example with 0.6 that shows multiple participants - written in Java ?

LoupTheron (Wed, 15 Mar 2017 09:31:45 GMT):
Has joined the channel.

balashevich (Wed, 15 Mar 2017 12:33:50 GMT):
Has joined the channel.

dorrakhribi (Wed, 15 Mar 2017 14:49:23 GMT):
hello, is true that java chaincode can't be successfully deployed with security enabled

dorrakhribi (Wed, 15 Mar 2017 14:50:01 GMT):
and if it's true, what should i do concerning the authentification of members in the network

cshields (Thu, 16 Mar 2017 15:07:47 GMT):
Has joined the channel.

RahulBagaria (Fri, 17 Mar 2017 04:02:50 GMT):
Has joined the channel.

Basug (Fri, 17 Mar 2017 13:10:14 GMT):
does java chaincode work now with 1.0 ?

nickmelis (Fri, 17 Mar 2017 14:15:09 GMT):
I would hope so!

Basug (Fri, 17 Mar 2017 14:38:32 GMT):
@nickmelis thank you. Last interaction I had with folks here, they said it wasn't working

nickmelis (Fri, 17 Mar 2017 14:39:15 GMT):
really? Well it works with v0.6, maybe it was just a temporary failure...

dorrakhribi (Sun, 19 Mar 2017 22:59:54 GMT):
hi , how can i start a non-validating peer on docker-compose ?

tbrooke (Sun, 19 Mar 2017 23:38:09 GMT):
Where are docs explaining Java Chaincode? I have read the API Docs and I have seen about deploying but I don't understand the mechanism of executing the code - it looks to me like a transaction is sent to init the code and then I assume that the peer would have to have a jvm to run the code. Is the code stored in the Ledger? On Github?

muralisr (Sun, 19 Mar 2017 23:52:42 GMT):
there's https://gerrit.hyperledger.org/r/#/c/7089/ that should help with java chaincode ... will leave it to @satheeshk and @sanchezl for details

sanchezl (Sun, 19 Mar 2017 23:52:42 GMT):
Has joined the channel.

zerppen (Tue, 21 Mar 2017 03:56:57 GMT):
Hi~ I am testing java-Chaincode v0.6.I merged and tested all methods in fabric-sdk-java about chaincode, most of them are good except setEvent. Satheesh @satheeshk said that can't merge here https://gerrit.hyperledger.org/r/#/c/2975/ but I really want to test event for sending event to app,especially in v1.0

Godwin (Tue, 21 Mar 2017 06:43:25 GMT):
Has joined the channel.

magg (Tue, 21 Mar 2017 17:55:21 GMT):
Has joined the channel.

magg (Tue, 21 Mar 2017 17:55:28 GMT):
hello

icordoba (Tue, 21 Mar 2017 23:29:53 GMT):
Hi. I am trying to deploy java chaincode in vp0 as explained in http://fabric-docs-test.readthedocs.io/en/latest/Setup/JAVAChaincode/

icordoba (Tue, 21 Mar 2017 23:30:17 GMT):
I have mounted the project dir in /chaincode in vp0 docker so I execute:

icordoba (Tue, 21 Mar 2017 23:31:20 GMT):
peer chaincode deploy -l java -p /chaincode/MyProject -c '{"Args": ["ini... after some time (not too much) I see that all dockers in the network successfully build the gradle build file... ok so far... but right after it is build I get:

icordoba (Tue, 21 Mar 2017 23:31:20 GMT):
peer chaincode deploy -l java -p /chaincode/MyProject -c '{"Args": ["ini... i don't see gradle building the java chaincode project... I have include logs in http://stackoverflow.com/questions/42948841/cant-deploy-java-chaincode-in-hyperledger-0-6-but-no-error-shown Thanks

icordoba (Tue, 21 Mar 2017 23:31:27 GMT):
vp3_1 | cp: cannot stat ‘/root/chaincode/build/chaincode.jar’: No such file or directory

icordoba (Tue, 21 Mar 2017 23:31:36 GMT):
(in all 3 nodes vp1, vp2, vp3...)

icordoba (Tue, 21 Mar 2017 23:39:14 GMT):
Any idea of what may be wrong in my gradle-build or docker-compose files (for my vp's)?

agiledeveloper (Wed, 22 Mar 2017 15:48:31 GMT):
Has joined the channel.

icordoba (Wed, 22 Mar 2017 23:31:39 GMT):
New error trying to deploy java chaincode (using peer command from vp0): vp0_1 | 23:24:45.925 [dockercontroller] deployImage -> ERRO 84b Error building images: API error (500): {"message":"The Dockerfile (Dockerfile) cannot be empty"} Thanks for any help.

icordoba (Wed, 22 Mar 2017 23:35:56 GMT):
Logs at http://stackoverflow.com/questions/42964624/the-dockerfile-dockerfile-cannot-be-empty-error-deploying-java-code-in-hyper

anik (Thu, 23 Mar 2017 08:48:38 GMT):
Has joined the channel.

matanyahu (Thu, 23 Mar 2017 10:54:50 GMT):
Has joined the channel.

Wenyang Liu (Thu, 23 Mar 2017 18:11:07 GMT):
Has joined the channel.

AvN (Thu, 23 Mar 2017 21:16:03 GMT):
Has joined the channel.

icordoba (Thu, 23 Mar 2017 22:22:51 GMT):
Hello... how should I log in Java Chain code? Y see log code but in docker-compose console they are not shown. I just see fabric logs. Thanks

ranjan008 (Fri, 24 Mar 2017 06:51:45 GMT):
Has joined the channel.

AvN (Fri, 24 Mar 2017 17:53:40 GMT):
Hi is there a Hello World equivalent of getting started. I am just getting started and dont really know where to begin

AvN (Fri, 24 Mar 2017 19:10:41 GMT):
I am trying to get the default Docker image up and running. fabric-sdk-java-master/src/test/fixture/src docker-compose up -d --force-recreate WARNING: The CORE_PEER_NETWORKID variable is not set. Defaulting to a blank string. Pulling ca (hyperledger/fabric-ca:latest)... ERROR: manifest for hyperledger/fabric-ca:latest not found

AvN (Fri, 24 Mar 2017 19:11:13 GMT):
Any idea how to fix this ?

GaneshBagalur (Fri, 24 Mar 2017 20:15:25 GMT):
Has joined the channel.

rickr (Sat, 25 Mar 2017 01:19:41 GMT):
https://chat.hyperledger.org/channel/fabric-sdk-java?msg=nRxmPrtZ7iErp6syq

rrader (Sun, 26 Mar 2017 13:51:55 GMT):
Is there a way to disable reading from Hyperledger for a period of time?

rrader (Sun, 26 Mar 2017 13:52:08 GMT):
I need this to allow only to write in hyperledger for a period of time, after this to allow only reading from hyperledger.

conor (Mon, 27 Mar 2017 00:37:51 GMT):
Has joined the channel.

chrisguoado (Mon, 27 Mar 2017 00:49:51 GMT):
Has joined the channel.

dorrakhribi (Tue, 28 Mar 2017 20:55:12 GMT):
hi evrybody, does java chaincode support the invokechaincode function, is there anyone who run a chaincode using this function? i've programmed a chaincode that invokes two other chaincodes and i run it without any problem in dev mode but in the net mode it doesn't work, i'm wondering what can be the issue. can anyone help ? thanks in advance

dorrakhribi (Wed, 29 Mar 2017 15:30:17 GMT):
hi, i've been working with fabric 0.6 and i've been disabling the security env_variable because i've been told that the java chaincode does not work with security anbled , now i'm starting to read about fabric 1.0 , i want to know if the java chaincode support security and if i am able to work with certificates

nickmelis (Wed, 29 Mar 2017 15:43:00 GMT):
I've just had a look at https://jira.hyperledger.org/browse/FAB-37 and especially the roadmap at https://jira.hyperledger.org/secure/attachment/10627/Fabric%20Roadmap%20March2017-v6.pptx. It shows Java chaincode will be only included in June (v1 GA). Does it mean there's no chance to run Java chaincode with v1 before then?

dorrakhribi (Wed, 29 Mar 2017 16:27:06 GMT):
hi @nickmelis , did you try running java chaincode with V0.6? and if you did , did you have a problem on deploying you chaincodes with security enabled ?

nickmelis (Wed, 29 Mar 2017 16:27:36 GMT):
I am running Java chaincode with v0.6 but don't have security enabled

nickmelis (Wed, 29 Mar 2017 16:28:12 GMT):
what exactly is security in this context? Is it the need for transaction certificates when submitting transactions?

dorrakhribi (Wed, 29 Mar 2017 16:28:55 GMT):
yes

dorrakhribi (Wed, 29 Mar 2017 16:29:17 GMT):
and changing assets ownership

dorrakhribi (Wed, 29 Mar 2017 16:29:25 GMT):
and logging in to the network

nickmelis (Wed, 29 Mar 2017 16:29:49 GMT):
well I can log in to the network even without security enabled

nickmelis (Wed, 29 Mar 2017 16:30:05 GMT):
and what do you mean with "changing assets ownership" ?

dorrakhribi (Wed, 29 Mar 2017 16:35:00 GMT):
for example if i have a marble, i want to change his owner from client1 to client2 , i was thinking that changing the ownership should be done with users certificates that get once logged to the network.

dorrakhribi (Wed, 29 Mar 2017 16:35:23 GMT):
or am i misunderstanding this point ?

dorrakhribi (Wed, 29 Mar 2017 16:35:31 GMT):
thanks in advance for you answer

icordoba (Wed, 29 Mar 2017 19:51:16 GMT):
@dorrakhribi I can confirm I am running 0.6 with security enabled and I can deploy java chain code, even using fabric-sdk-java (not using REST interface anymore) i can deploy java code, enrolled users, invoke and query transactions. The configuration is : - CORE_SECURITY_ENABLED=true in environment:

icordoba (Wed, 29 Mar 2017 19:51:16 GMT):
@dorrakhribi I can confirm I am running 0.6 with security enabled and I can deploy java chain code, even using fabric-sdk-java (not using REST interface anymore) i can deploy java code, enroll users, invoke and query transactions. The configuration is : - CORE_SECURITY_ENABLED=true in environment:

nickmelis (Wed, 29 Mar 2017 19:52:14 GMT):
@icordoba that's very interesting. What Java SDK branch are you running on?

nickmelis (Wed, 29 Mar 2017 19:53:05 GMT):
and how do you get tcerts? I was under the impression it wasn't implemented in v0.6 Java SDK

icordoba (Wed, 29 Mar 2017 19:53:34 GMT):
My gradle dependency is: 'me.reactiv.fabric-java-sdk:fabric-java-sdk:0.6.6',

icordoba (Wed, 29 Mar 2017 19:55:29 GMT):
To be honest, I don't do anything special for the TCerts. I do have to delete the FileKeyValStore file every time I restart the peers or it won't work.

nickmelis (Wed, 29 Mar 2017 19:55:52 GMT):
where does it come from? What's me.reactiv?

nickmelis (Wed, 29 Mar 2017 19:56:12 GMT):
my one is org.hyperledger.fabric-sdk-java:fabric-sdk-java:0.6

nickmelis (Wed, 29 Mar 2017 19:56:20 GMT):
which is the only official available one

nickmelis (Wed, 29 Mar 2017 19:56:20 GMT):
which is the only official available one on Maven

nickmelis (Wed, 29 Mar 2017 19:56:20 GMT):
which is the only official available one on Maven central

icordoba (Wed, 29 Mar 2017 19:56:30 GMT):
I don't that will work. I lost a lot of time trying to make it work.

icordoba (Wed, 29 Mar 2017 19:56:30 GMT):
I don't think that one will work. I lost a lot of time trying to make it work.

icordoba (Wed, 29 Mar 2017 19:56:58 GMT):
Sorry I don't use maven but dependencies are the same when using gradle.

nickmelis (Wed, 29 Mar 2017 19:57:00 GMT):
in fact I run without security enabled

nickmelis (Wed, 29 Mar 2017 19:57:13 GMT):
I use gradle too

nickmelis (Wed, 29 Mar 2017 19:57:28 GMT):
but pulling artifacts from Maven central

nickmelis (Wed, 29 Mar 2017 19:57:51 GMT):
what are your repositories?

icordoba (Wed, 29 Mar 2017 19:58:29 GMT):
I tested without security but it worked with it. You need to add CORE_SECURITY_ENROLLID and CORE_SECURITY_ENROLLSECRET to every vpX (validating peers) environment

icordoba (Wed, 29 Mar 2017 19:58:51 GMT):
No special repositories. Just replace your dependency with this one I based and gradle will get it.

icordoba (Wed, 29 Mar 2017 19:58:51 GMT):
No special repositories. Just replace your dependency with this one I pasted and gradle will get it.

icordoba (Wed, 29 Mar 2017 20:00:21 GMT):
not the named it fabric-java-sdk, and not fabric-sdk-java. I missed it and also lost days figuring out what was wrong with the dependency

icordoba (Wed, 29 Mar 2017 20:00:21 GMT):
Also note the named it fabric-java-sdk, and not fabric-sdk-java. I missed it and also lost days figuring out what was wrong with the dependency

icordoba (Wed, 29 Mar 2017 20:00:21 GMT):
Also note they named it fabric-java-sdk, and not fabric-sdk-java. I missed it and also lost days figuring out what was wrong with the dependency

nickmelis (Wed, 29 Mar 2017 20:02:33 GMT):
    This is a fork of Hyperledger Fabric fabric-sdk-java. Compatible Fabric V0.6.1-preview

nickmelis (Wed, 29 Mar 2017 20:03:06 GMT):
it's not the official one, that's why I couldn't find it

nickmelis (Wed, 29 Mar 2017 20:04:08 GMT):
> I do have to delete the FileKeyValStore file every time I restart the peers or it won't work.

nickmelis (Wed, 29 Mar 2017 20:04:19 GMT):
I suspect this is because you also restart/reset the membersrvc

nickmelis (Wed, 29 Mar 2017 20:04:27 GMT):
how do you run peers/membersrvc? docker-compose?

icordoba (Wed, 29 Mar 2017 20:14:53 GMT):
yes, I use docker compose

icordoba (Wed, 29 Mar 2017 20:24:46 GMT):
The only problem I am having with docker-compose is that if I restart validating peers, I can't restart the Java chain code dockers, so need to start all over (destroying everything and deploying again the chaincode). Maybe some one here can help on that.

dorrakhribi (Wed, 29 Mar 2017 21:21:40 GMT):
ok, now i want understand what should i do when it comes to my chaincode, if i want to have a set of accounts and each account should be visible and manipulated by its owner, what should i do ? since every couple of (key,value) is visible by every peer in the network, i'm thinking about storing the identity of the owner which should correspond to the identity with witch a user/client logged in to the network in the account or to set the key field to the identifier of the user and the value to its account , if my thinking is right, i want to know what should be the identifier stuff here? when i connect to the network as a peer i associate to it an enrollement id + a pwd using the fabric java sdk and i got a kind of certificate in a file that i specify its path so the certificates of the logged in users are stored in it, now if i want to do this identification thing with accounts what should i do ??????

icordoba (Wed, 29 Mar 2017 22:15:36 GMT):
@dorrakhribi Why don't you pass that so called certificate to the chaincode as and argument and bind it to every entry set in the chain? When you perform a query, check that the passed certificate is the same as the one stored in the chaincode. Don't return the object if that fails. As both parts are in the chaincode, they can't be altered unless you deploy a new chaincode.

xiangyw (Thu, 30 Mar 2017 03:04:51 GMT):
Has joined the channel.

xiangyw (Thu, 30 Mar 2017 03:09:07 GMT):
hello,my version is alpha,i am trying to instantiate a java chaincode (SimpleExample in code under examples) from cli to peer0 ,but he process is hanging 10 mins now , no error throw out

xiangyw (Thu, 30 Mar 2017 03:12:57 GMT):
i got the error info form container dev-peer0-simplesample-1.0 log ,how can i fix this error?

xiangyw (Thu, 30 Mar 2017 03:13:12 GMT):

Message Attachments

xiangyw (Thu, 30 Mar 2017 03:39:22 GMT):

Message Attachments

ArnabChatterjee (Thu, 30 Mar 2017 05:30:35 GMT):
Hello everyone. Can you please confirm if I can mix query and invoke calls in a single chaincode invocation? Unlike in v0.6, where we could not commit a txn in a query call. Or cannot return data in an invoke call. Now in v1.0, is this feasible?

dorrakhribi (Thu, 30 Mar 2017 08:50:36 GMT):
thanks @icordoba

dorrakhribi (Thu, 30 Mar 2017 08:55:19 GMT):
have anyone of you worked with a chaincode that invokes another chaincode with the 'invokechaincode' function and it worked in the net mode ?? i've implemented a chaincode calling two other chaincodes and it works perfectly in dev mode but when i try to query/invoke it in the net mode it didn't work

dorrakhribi (Thu, 30 Mar 2017 09:04:19 GMT):

Message Attachments

dorrakhribi (Thu, 30 Mar 2017 09:04:23 GMT):
@icordoba this is i'm calling

dorrakhribi (Thu, 30 Mar 2017 09:04:35 GMT):
this is what i'm calling certificates*

dorrakhribi (Thu, 30 Mar 2017 09:05:45 GMT):
i'm using the fabric java sdk and once i enroll a member to my chain it stores in this file the user certificate to recognize the user if he is enrolled again to the network

dorrakhribi (Thu, 30 Mar 2017 09:06:21 GMT):
u suggest to add theese certificates in my chaincode args ?

icordoba (Thu, 30 Mar 2017 22:20:41 GMT):
@dorrakhribi I am not sure you can later check them and I don't think that is needed. You execute he invoke() method using Member.invoke(). That Member instance has to be enrolled or it would not be allowed to execute the chain code, so you can just pass the username assuming that that username has privileges to execute or query the chain code. Just store the username as part of the transaction and perform the check in the chain code. Of course, please correct me if you think I am missing something and my proposal is insecure.

dorrakhribi (Thu, 30 Mar 2017 22:23:49 GMT):
i think it's ok as a solution and i will try it, @icordoba do you have an idea about how to start a non validating peer ?

dorrakhribi (Thu, 30 Mar 2017 22:24:03 GMT):
in a docker network

icordoba (Thu, 30 Mar 2017 22:52:54 GMT):
No idea, TBH... I haven't had to worry about that yet. You are having an error starting it or you don't know how to do it... if it is the first... tell us what you are doing so we learn :-)

muralisr (Fri, 31 Mar 2017 02:37:56 GMT):
@sanchezl is https://gerrit.hyperledger.org/r/#/c/7089 work in progress or ready to role ? Thinking getting this in would help java chaincode users in 1.0

muralisr (Fri, 31 Mar 2017 02:37:56 GMT):
@sanchezl is https://gerrit.hyperledger.org/r/#/c/7089 work in progress or ready to roll ? Thinking getting this in would help java chaincode users in 1.0

sanchezl (Fri, 31 Mar 2017 02:39:17 GMT):
It's ready. Requires https://gerrit.hyperledger.org/r/#/c/6959

muralisr (Fri, 31 Mar 2017 02:40:11 GMT):
the changes to bddtests ... do we need to coordinate with @jeffgarratt ?

jeffgarratt (Fri, 31 Mar 2017 02:40:12 GMT):
Has joined the channel.

sanchezl (Fri, 31 Mar 2017 02:44:32 GMT):
It's just a re-gen of the protos (no wire level changes). I've added Jeff as a reviewer.

zhangchao (Fri, 31 Mar 2017 08:55:27 GMT):
Has joined the channel.

dorrakhribi (Fri, 31 Mar 2017 09:33:30 GMT):
@icordoba i've used docker-compose to up peer using -CORE_PEER_VALIDATOR_ENABLED = false to override core.yaml but the problem is that it still shows that this peer is a validator in the terminal when i run docker-compose.yml file

dorrakhribi (Fri, 31 Mar 2017 09:44:22 GMT):
@icordoba are you working with V0.6 and fabric java sdk ?

dorrakhribi (Fri, 31 Mar 2017 09:56:38 GMT):
i'm implementing java chaincodes and i'm using fabric 0.6, when i deploy my chaincode with security enabled and then try to query it just in console, the query does not work, when i disable the security it works, now i want to know the impact of security enabled and disabled in the blockchain process. now using the fabric java sdk, i can deploy chaincodes because i can view the init function in run but it keeps on returning an error message 'deploy request is submitted but not completed'. what should i do ??

akashmar (Fri, 31 Mar 2017 17:54:50 GMT):
Has joined the channel.

akashmar (Fri, 31 Mar 2017 17:55:32 GMT):
there are two implementation of chaincode shim for java, one under fabric and one under fabric-sdk-java. which one are we supposed to use?

icordoba (Fri, 31 Mar 2017 19:54:17 GMT):
@dorrakhribi Yes, im really hoping I can deploy java in v1.0 but I keep on reading it is not ready yet, maybe I'm wrong. I am using x86_64-0.6.1-preview images

icordoba (Fri, 31 Mar 2017 19:56:01 GMT):
@dorrakhribi About your last question, are the docker chain code instances started? Every chain code deployed will start a docker per peer. They have a very long docker Image id, something like: dev-vp0-facf296baeab1c63a60dc2ed440f5e5f2f7405ef9c8e0364346e08dc425b520e

icordoba (Sat, 01 Apr 2017 17:31:43 GMT):
Hello, anybody can clarify if CouchDB is supported for fabric-java-chaincode? I mean, I guess we are usually using LevelDB to perform ID based invoke and query method on the chain... if I setup CouchDB can I perform more complex JPA style queries from java chain code?

aybekbuka (Mon, 03 Apr 2017 07:44:25 GMT):
Has joined the channel.

dharmjit (Tue, 04 Apr 2017 03:40:05 GMT):
Has joined the channel.

dorrakhribi (Tue, 04 Apr 2017 14:56:26 GMT):
@icordoba it's been a while since i didn't try to deploy a chaincode with security enabled, i'll try it then i'll tell you , did you by the way use the invokechaincode and querychaincode in your java chaincodes, if you did then did they correctly work, i mean did you successfully deploy your chaincode and query it? i' having a problem in devmode my chaincode that includes the invokechaincode and querychaincode functions works but in netmode i couldn't deploy it, do you have any idea ???

akashmar (Tue, 04 Apr 2017 14:58:54 GMT):
I'm getting this error when instantiating java chaincode: ``` Error: Error endorsing chaincode: rpc error: code = 2 desc = Timeout expired while starting chaincode resource-publisher:1.0(networkid:org1peer1,peerid:org1peer1,tx:38fdbd983cd6f55d6a6946b452ecbec6bec5ff028d0847bc3e3afd9abacf91f2) ``` I'm getting this error when instantiating java chaincode: ``` Error: Error endorsing chaincode: rpc error: code = 2 desc = Timeout expired while starting chaincode resource-publisher:1.0(networkid:org1peer1,peerid:org1peer1,tx:38fdbd983cd6f55d6a6946b452ecbec6bec5ff028d0847bc3e3afd9abacf91f2) ``` Does this mean that I didn't receive enough endorsements?

dorrakhribi (Tue, 04 Apr 2017 15:14:17 GMT):
@akashmar are you instatiating java chaincodes ?

akashmar (Tue, 04 Apr 2017 15:14:27 GMT):
yes

akashmar (Tue, 04 Apr 2017 15:15:10 GMT):
here's the command I'm using: ``` CORE_PEER_MSPCONFIGPATH=fabric/crypto-config/peerOrganizations/peerOrg1/peers/peerOrg1Peer1 \ CORE_PEER_ADDRESS=10.13.218.181:7051 \ CORE_PEER_LOCALMSPID="peerOrg1" \ peer chaincode instantiate -o 10.13.218.180:7050 -C dolphin1 -n resource-publisher -v 1.0 \ -c '{"Args":["init"]}' \ -P "OR('peerOrg1.member', 'peerOrg2.member', 'peerOrg3.member', 'peerOrg4.member')" ```

dorrakhribi (Tue, 04 Apr 2017 15:16:08 GMT):
so the java chaincodes work in fabric V1.0 ? i have to build an application with the V1.0 and i keep on receieving the information that they do not work on fabric V1.0

akashmar (Tue, 04 Apr 2017 15:17:37 GMT):
Well I haven't got it working yet. I managed to install the java chaincode but when I try to instantiate it I get that timeout error. It's got something to do with endorsements and that's what I'm trying to figure out

dorrakhribi (Tue, 04 Apr 2017 15:20:22 GMT):
alright, please tell me if you'll make it work so i can start working on the V1.0 because actually i'm working on V0.6 and i want to migrate to V1.0 since it got too many interesting features but as i told you i have to work with java chaincodes

dorrakhribi (Tue, 04 Apr 2017 15:20:44 GMT):
and thanks in advance

akashmar (Tue, 04 Apr 2017 15:24:39 GMT):
@dorrakhribi Sure thing!

dorrakhribi (Tue, 04 Apr 2017 15:25:05 GMT):
thanks @akashmar :)

icordoba (Tue, 04 Apr 2017 16:17:41 GMT):
@dorrakhribi Yes I did deploy, execute and query successfully all in JAVA, no REST (postman, ...) for any of those actions needed anymore. Also, with security disabled and enabled.

akashmar (Tue, 04 Apr 2017 16:25:23 GMT):
@icordoba do you have any idea whY i'm getting that timeout error above?

akashmar (Tue, 04 Apr 2017 16:25:50 GMT):
I tried increasing the timeout value but it didn't help

dorrakhribi (Tue, 04 Apr 2017 16:40:52 GMT):
i'm talking about the invokechaincode() function, did you use it in your chaincodes ??????

dorrakhribi (Tue, 04 Apr 2017 16:41:08 GMT):
@icordoba i'm talking about the invokechaincode() function, did you use it in your chaincodes ??????

vjuge (Wed, 05 Apr 2017 06:49:41 GMT):
Has joined the channel.

vjuge (Wed, 05 Apr 2017 06:49:44 GMT):
hello, noobs question does the source code of the chaincode is visible by participants once it's deployed on the ledger ?

AmberZhang (Wed, 05 Apr 2017 09:42:08 GMT):
Has joined the channel.

Espada (Wed, 05 Apr 2017 09:49:18 GMT):
Has joined the channel.

nickmelis (Wed, 05 Apr 2017 09:50:54 GMT):
does anyone know what causes this error (running with HL & sdk 0.6)? Error:Failed to execute transaction or query(Error sending QUERY: txid:fd9989456b6d30e9b9be4282b5ab4ce3c51be4d8ec997e2bd07b679f2ecc7aaf exists)

Espada (Wed, 05 Apr 2017 09:51:52 GMT):
@akashmar I'm trying to deploy example java chaincode. I'm using v1 alpha images downloaded. I can install chaincode, but it fails at instantiate. it just hangs (no error is given). The chaincode docker container is created and exits straight away and gives the following error

Espada (Wed, 05 Apr 2017 09:52:09 GMT):
```Apr 05, 2017 7:41:24 AM org.hyperledger.java.shim.ChaincodeBase newPeerClientConnection INFO: Inside newPeerCLientConnection Apr 05, 2017 7:41:24 AM org.hyperledger.java.shim.ChaincodeBase newPeerClientConnection INFO: tls enable Exception in thread "Thread-1" java.lang.IllegalArgumentException: File does not contain valid certificates: /root/certs/rootcert.pem at io.netty.handler.ssl.SslContextBuilder.trustManager(SslContextBuilder.java:161) at org.hyperledger.java.shim.ChaincodeBase.newPeerClientConnection(ChaincodeBase.java:137) at org.hyperledger.java.shim.ChaincodeBase.lambda$start$0(ChaincodeBase.java:76) at java.lang.Thread.run(Thread.java:745) Caused by: java.security.cert.CertificateException: could not find certificate file: /root/certs/rootcert.pem at io.netty.handler.ssl.PemReader.readCertificates(PemReader.java:69) at io.netty.handler.ssl.SslContext.toX509Certificates(SslContext.java:975) at io.netty.handler.ssl.SslContextBuilder.trustManager(SslContextBuilder.java:159)```

Espada (Wed, 05 Apr 2017 09:52:29 GMT):
I'm not sure where I'm meant to fix this as fabric handles the creation of the chaincode container creation internally. This works fine for go chaincode so I'm guessing the java docker image hasn't been maintained?

Espada (Wed, 05 Apr 2017 09:53:24 GMT):
@akashmar you say you're getting a timeout. Are you getting the same error as me if you check the docker logs of the chaincode container?

ntkzwane (Wed, 05 Apr 2017 11:04:53 GMT):
Has joined the channel.

akashmar (Wed, 05 Apr 2017 13:27:14 GMT):
@Espada No i'm not getting the same error. I don't even see any errors in the docker logs. You are getting that error because you have enabled TLS but haven't provided a certificate. You can either disable TLS or mount a certificate to the path shown in the error.

Espada (Wed, 05 Apr 2017 13:28:43 GMT):
@akashmar how do I mount something to a container that I don't create though? fabric creates the container. Also it works for go code which doesn't make sense then

akashmar (Wed, 05 Apr 2017 13:43:18 GMT):
@Espada TLS is handled differently in the Go implementation fo ChaincodeBase. It grabs the certificate from `testdata/server1.pem`. You could try changing ChaincodeBase.java to grab the certificate from an environment variable. Use CORE_PEER_TLS_ROOTCERT_FILE. Again you can just disable TLS

Espada (Thu, 06 Apr 2017 04:56:56 GMT):
@akashmar thanks for the explanation, I'll probably just do that for now

sandroku63 (Thu, 06 Apr 2017 15:05:09 GMT):
Has joined the channel.

icordoba (Thu, 06 Apr 2017 20:03:20 GMT):
@akashmar, sorry no idea :-(

akashmar (Thu, 06 Apr 2017 20:03:49 GMT):
@icordoba no idea about what?

icordoba (Thu, 06 Apr 2017 20:05:18 GMT):
@ dorrakhribi I don't think I am using any method with that name in my java chaincode code. What is its class?

akashmar (Thu, 06 Apr 2017 20:06:13 GMT):
@icordoba I figured out the timeout error :) thanks though

icordoba (Thu, 06 Apr 2017 20:09:35 GMT):
@akashmar Are you working with v1.0 or v0.6 ?

akashmar (Thu, 06 Apr 2017 20:09:45 GMT):
v1.0

kaz (Fri, 07 Apr 2017 04:00:47 GMT):
Has joined the channel.

nanajai (Sun, 09 Apr 2017 15:49:35 GMT):
Has joined the channel.

IandeBeer (Mon, 10 Apr 2017 06:17:18 GMT):
Has joined the channel.

icordoba (Mon, 10 Apr 2017 09:20:24 GMT):
@akashmar Are you successfully executing Java chaincode in v1.0?

akashmar (Mon, 10 Apr 2017 13:21:02 GMT):
@icordoba yes i am

zian (Mon, 10 Apr 2017 13:58:40 GMT):
Has joined the channel.

sanchezl (Tue, 11 Apr 2017 13:19:53 GMT):
@akashmar @icordoba , Java chaincode was not really working in v1.0 until commit adebfad090d94855be1075562dffe586cebf236d.

sanchezl (Tue, 11 Apr 2017 13:20:38 GMT):
The error seen [ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=6Poq5ovp4EPCnRFgw) @Espada This has been fixed as of adebfad090d94855be1075562dffe586cebf236d

sanchezl (Tue, 11 Apr 2017 13:20:38 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=6Poq5ovp4EPCnRFgw) @Espada This has been fixed as of adebfad090d94855be1075562dffe586cebf236d

sanchezl (Tue, 11 Apr 2017 13:21:44 GMT):
I'm in the middle of cleaning up the API for the Java chaincode for v1.0, so be on the lookout for changes.

sanchezl (Tue, 11 Apr 2017 18:37:52 GMT):
For anyone interested, here are some upcoming changes to the Java chaincode API: https://gerrit.hyperledger.org/r/7937

polorumpus (Tue, 11 Apr 2017 18:46:54 GMT):
Has joined the channel.

polorumpus (Tue, 11 Apr 2017 18:50:57 GMT):
Hi Luis, which version this chaincode API changes will go in? Will it be v1.0?

sanchezl (Tue, 11 Apr 2017 18:51:27 GMT):
1.0

polorumpus (Tue, 11 Apr 2017 18:52:38 GMT):
thanks

Lin-YiTang (Tue, 11 Apr 2017 21:19:57 GMT):
Has joined the channel.

polorumpus (Wed, 12 Apr 2017 14:34:10 GMT):
Hi Luis, Do you know when these changes will be available in Github? At this point, Master and v1.0.0-Preview both have older run() method and these changes are not available there.

sanchezl (Wed, 12 Apr 2017 14:35:52 GMT):
@polorumpus , those changes have still not been merged. they are still under review on gerrit.

polorumpus (Wed, 12 Apr 2017 14:40:37 GMT):
ok, thanks

reoim10 (Thu, 13 Apr 2017 00:53:59 GMT):
Has joined the channel.

reoim10 (Thu, 13 Apr 2017 01:00:50 GMT):
Is there any tutorial or getting started documentation for fabric v1.0 with java chaincode?

sanchezl (Thu, 13 Apr 2017 02:04:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=nztL4KizrzPTuujqs) @reoim10 Nothing new posted for v1.0 yet. You can see the current state of the docs at http://hyperledger-fabric.readthedocs.io/en/latest/Setup/JAVAChaincode.html.

reoim10 (Thu, 13 Apr 2017 02:05:05 GMT):
Thanks :)

achraf17 (Thu, 13 Apr 2017 12:51:10 GMT):
Has joined the channel.

feronti (Thu, 13 Apr 2017 18:01:11 GMT):
Has joined the channel.

ivanm (Fri, 14 Apr 2017 09:10:10 GMT):
Has joined the channel.

smallX (Fri, 14 Apr 2017 12:42:46 GMT):
Has joined the channel.

sanchezl (Fri, 14 Apr 2017 17:53:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=NBSCsHiHZPdCNg8qz) @zerppen See https://gerrit.hyperledger.org/r/#/c/8033/

munireddya (Sat, 15 Apr 2017 07:11:20 GMT):
Has joined the channel.

zerppen (Sat, 15 Apr 2017 11:04:38 GMT):
ok,I will test it and show result

zerppen (Sat, 15 Apr 2017 11:38:08 GMT):
@sanchezl Hi sanchezl,the new class ChaincodeStub import package named ChaincodeEventPackage in https://gerrit.hyperledger.org/r/#/c/8033,but my maven excuted reimprt operation could not import the package. So I think u must forget to update the fabric-sdk-java-1.0-SNAPSHOT.jar in maven centeral :relaxed:

zerppen (Sat, 15 Apr 2017 11:41:54 GMT):
well,there is another that u can send me this new jar package by email: zerppen@outlook.com

zerppen (Sat, 15 Apr 2017 11:41:54 GMT):
well,there is another way that u can send me this new jar package by email: zerppen@outlook.com

sanchezl (Sat, 15 Apr 2017 12:07:22 GMT):
@zerppen , the updates are still in review. You will need to build fabric from source to get and run that code.

zerppen (Sat, 15 Apr 2017 13:22:06 GMT):
@sanchezl I know this step. When u r open we can communicate again.And I am willing to do something if u need me for testing

zerppen (Sat, 15 Apr 2017 13:22:06 GMT):
@sanchezl I know this step. When u r open we can communicate again.And I am willing to do something if u need me for testing.

rmohta (Sat, 15 Apr 2017 18:33:29 GMT):
Has joined the channel.

zhangchao (Mon, 17 Apr 2017 09:47:49 GMT):
@here , a quick question, can java chaincode be supported now? I recall the formal time is Jun 2017

muralisr (Mon, 17 Apr 2017 09:49:57 GMT):
@zhangchao not sure how usable it is but should be usable once https://gerrit.hyperledger.org/r/#/c/8057 and dependent CRs are merged ...tagging @sanchezl

zhangchao (Mon, 17 Apr 2017 09:53:02 GMT):
I can not access this page, no permission. Sounds like we need a pretty time to wait for java cc works

Gaurav_Impro (Wed, 19 Apr 2017 09:48:57 GMT):
Has joined the channel.

Souvik.Dey (Thu, 20 Apr 2017 06:23:06 GMT):
Has joined the channel.

Souvik.Dey (Thu, 20 Apr 2017 06:23:58 GMT):
Please help me to create java chaincode using docker.

sanchezl (Fri, 21 Apr 2017 15:30:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=ghwjcg677L23A3ENS) @Souvik.Dey Tell me more about what you are trying to accomplish. There are some changes to the Java chaincode that wont be available until next week.

bmalavan (Sat, 22 Apr 2017 18:56:02 GMT):
Has joined the channel.

eljoujat (Mon, 24 Apr 2017 14:30:48 GMT):
Has joined the channel.

zhangchao (Tue, 25 Apr 2017 01:32:05 GMT):
@sanchezl when can java cc be executed

zhangchao (Tue, 25 Apr 2017 01:32:29 GMT):
can you give some message

sanchezl (Tue, 25 Apr 2017 02:01:32 GMT):
@zhangchao , you can look at the following, but there are chainges to the API that are still making their way through the review process: • https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample • https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/chaincode_example02 • https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/chaincode_example06 Note that none of the other samples in the examples/chaincode directory have been updated yet.

sanchezl (Tue, 25 Apr 2017 02:01:32 GMT):
@zhangchao , you can look at the following, **but there are chainges to the API that are still making their way through the review process**: • https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample • https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/chaincode_example02 • https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/chaincode_example06 **Notes:** • None of the other samples in the examples/chaincode directory have been updated yet. • You can copy and edit the build.gradle from one of the examples above. • To get `shim-client.jar`, either try to build (run gradle) `core/chaincode/shim/java` or try the following for a copy: ``` $ docker run --name temp_container hyperledger/fabric-javaenv $ docker cp temp_container:/root/libs/shim-client-1.0.jar . ```

zhangchao (Tue, 25 Apr 2017 02:07:18 GMT):
thanks, I will have a try

muralisr (Tue, 25 Apr 2017 05:01:41 GMT):
https://chat.hyperledger.org/channel/fabric-questions?msg=SsQ8GpunwYHjPpPYm

muralisr (Tue, 25 Apr 2017 05:02:21 GMT):
@sanchezl I thought we have java sample ^^^

sanchezl (Tue, 25 Apr 2017 05:04:56 GMT):
@muralisr , look a couple comments back in this channel to see my comment on Java samples. But they are not well advertised yet due to the outstanding chnagesets in review that affect the API.

shanthi0547 (Tue, 25 Apr 2017 05:24:01 GMT):
Has joined the channel.

rmohta (Wed, 26 Apr 2017 03:19:35 GMT):
@sanchezl pem files used by SDK, are they to be signed by fabric-ca? How do I generate my own pem files to be used by SDK?

sanchezl (Wed, 26 Apr 2017 04:00:30 GMT):
@rmohta , Assuming that you are trying to use the NOT use demo crypo materials that are 'bundled' with fabric for testing: 1. First, you create your cryptographic materials (out of scope of fabric). 2. If you want to use fabric-ca , you configure fabric-ca with your cryptographic materials from step 1. 3. If you want to use sdk, you use the cryptographic materials from step 1 with optionally, a fabric-ca configured with those same cryptographic materials. I know these steps are not useful by themselves, but my intent is to get you started in the correct direction. Maybe someone else on the forum can help you with step 1.

rmohta (Wed, 26 Apr 2017 04:48:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=GpjWd4fuPayK3JFCg) @sanchezl Thank You. to get some more information I can talk to someone from my company's security team to understand how do we do step 1

haiderny (Wed, 26 Apr 2017 14:59:17 GMT):
Has joined the channel.

Rupertredding (Wed, 26 Apr 2017 16:29:15 GMT):
Has joined the channel.

Rupertredding (Wed, 26 Apr 2017 16:29:35 GMT):
Hyperledger Fabric (GO or Java) question - (1) how to get Ethereum like "msg.sender" in chaincode (smart contract)? (2) When chaincode A calls chaincode B, will the msg.sender be address of A (like in Ethereum)?

marek.dapps (Thu, 27 Apr 2017 10:18:57 GMT):
Has joined the channel.

kelvinzhong (Thu, 27 Apr 2017 10:26:30 GMT):
hi, i'm trying to understand what's the advantage of using tcert instead of just using ecert to sign the data.

kelvinzhong (Thu, 27 Apr 2017 10:26:36 GMT):
anyone could help?

LoupTheron (Thu, 27 Apr 2017 13:11:58 GMT):
So you'll have an un-linked identity from the other peers

LoupTheron (Thu, 27 Apr 2017 13:12:47 GMT):
As I understand, only the orderer could check the sended tcert, but not the endorsing & commiting peers

akashmar (Thu, 27 Apr 2017 18:56:25 GMT):
When installing java chaincode from node SDK i see the following error in the peer log: ``` 2017-04-27 18:53:41.194 UTC [chaincode] ExecuteChaincode -> ERRO 0bf Error executing chaincode: a syscc should be running (it cannot be launched) lscc:1.0.0-snapshot-c5c60c3 ``` Any ideas why lscc isn't running or how to run it?

dorrakhribi (Fri, 28 Apr 2017 08:38:48 GMT):
hello, i'm trying to run the fabric sdk but i keep getting the following error:"failed to get a new tcert" can ony one help me please ?

vugranam (Fri, 28 Apr 2017 12:14:34 GMT):
Has joined the channel.

jkirke (Fri, 28 Apr 2017 15:04:13 GMT):
Has left the channel.

houssemchebbi (Fri, 28 Apr 2017 16:00:31 GMT):
Has joined the channel.

npnjuguna (Sat, 29 Apr 2017 05:01:18 GMT):
Has joined the channel.

forsini-satori (Sun, 30 Apr 2017 09:04:58 GMT):
Has joined the channel.

HubertYoung (Tue, 02 May 2017 03:43:12 GMT):
Has joined the channel.

svasilyev (Tue, 02 May 2017 07:26:33 GMT):
Has joined the channel.

zerppen (Tue, 02 May 2017 08:27:38 GMT):
@sanchezl Hi,sanchezl. I tested my CC just now.But I got error message "Could not find org.hyperledger:shim-client:1.0"

zerppen (Tue, 02 May 2017 08:31:55 GMT):
https://repo1.maven.org/maven2/org/hyperledger shows shim-client disappeared

houssemchebbi (Tue, 02 May 2017 08:52:45 GMT):
hi , what are the steps to deploy a java chaincode ?!

feronti (Tue, 02 May 2017 12:49:43 GMT):
Has left the channel.

sanchezl (Tue, 02 May 2017 14:26:08 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=bqDSumwSRpRnC4x6e) @zerppen https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=EtameGmovLRS6A84i

zerppen (Tue, 02 May 2017 14:31:30 GMT):
@sanchezl thx , I am testing.

zerppen (Tue, 02 May 2017 14:50:46 GMT):
I think the problem is there is no shim-client.jar in maven central

sanchezl (Tue, 02 May 2017 14:51:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=QsaSsZGKgTDZ7hbCG) @zerppen That is correct. It will not happen until post 1.0

zerppen (Tue, 02 May 2017 14:51:42 GMT):

Message Attachments

zerppen (Tue, 02 May 2017 14:52:41 GMT):
It is my test result

zerppen (Tue, 02 May 2017 14:52:55 GMT):
so there is another way to test my CC

sanchezl (Tue, 02 May 2017 14:53:31 GMT):
did you try to build `core/chaincode/shim/java` or just copied out the jar?

sanchezl (Tue, 02 May 2017 15:06:19 GMT):
@zerppen , to get it in your local maven repository: ``` $ cd core/chaincode/shim/java $ gradle copyProtosFromDevEnv $ gradle build ``` Thast should put the shim jar in your local maven repo, and the shim should be able to find it.

sanchezl (Tue, 02 May 2017 15:06:19 GMT):
@zerppen , to get it in your local maven repository: ``` $ cd core/chaincode/shim/java $ gradle copyProtosFromDevEnv $ gradle build ``` That should put the shim jar in your local maven repo, and the shim should be able to find it.

zerppen (Tue, 02 May 2017 15:08:45 GMT):
well..I need edit the build.gradle of core/chaincode/shim/java ?

sanchezl (Tue, 02 May 2017 15:09:50 GMT):
If you don't have `mavenLocal()` listed as a repository, then yes, add it.

sanchezl (Tue, 02 May 2017 15:10:31 GMT):
but you should have it, since that's where it needs to find it in the chain code container.

zerppen (Tue, 02 May 2017 15:12:15 GMT):
ok..

zerppen (Tue, 02 May 2017 15:12:43 GMT):
I will show result later

zerppen (Tue, 02 May 2017 15:16:43 GMT):
well..firstly,I need have `shim-client.jar`

zerppen (Tue, 02 May 2017 15:17:36 GMT):
My problem is how to get this jar

sanchezl (Tue, 02 May 2017 15:18:33 GMT):
1. build `core/chaincode/shim/java` and the jar will be in your local maven repository.

akashmar (Tue, 02 May 2017 16:00:12 GMT):
@sanchezl when I try to install java chaincode using peer chaincode install, i get the following error: ``` Error: Error endorsing chaincode: rpc error: code = 13 desc = transport is closing ```

akashmar (Tue, 02 May 2017 16:00:18 GMT):
Is this a known issue?

akashmar (Tue, 02 May 2017 16:18:15 GMT):
@sanchezl never mind, I was using the wrong user. It works with Admin

SahilKapoor (Wed, 03 May 2017 05:29:10 GMT):
Has joined the channel.

albert.lacambra (Wed, 03 May 2017 06:23:13 GMT):
Has joined the channel.

mvkmvk (Wed, 03 May 2017 09:43:26 GMT):
Has joined the channel.

nickmelis (Wed, 03 May 2017 13:14:10 GMT):
Is there any GetHistoryForKey() method available for Java chaincode?

sanchezl (Wed, 03 May 2017 13:56:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=rD8ksezBn4XuCuh3H) @nickmelis https://jira.hyperledger.org/browse/FAB-3311

nickmelis (Wed, 03 May 2017 13:57:31 GMT):
nice! Thanks @sanchezl

William.Z (Thu, 04 May 2017 13:05:20 GMT):
Has joined the channel.

conorfennell (Thu, 04 May 2017 15:10:05 GMT):
Has joined the channel.

shanthi0547 (Fri, 05 May 2017 04:55:22 GMT):
amulya@LAPTOP-3CHVMF1U MINGW64 ~/go/src/github.com/chaincode_example02 $ CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=127.0.0.1:7051 ./chaincode_example02 2017-05-05 10:24:20.889 IST [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO 2017/05/05 10:24:21 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: write tcp 127.0.0.1:56933->127.0.0.1:7051: wsasend: An established connection was aborted by the software in your host machine."; Reconnecting to {"127.0.0.1:7051" } 2017/05/05 10:24:21 transport: http2Client.notifyError got notified that the client transport was broken write tcp 127.0.0.1:56934->127.0.0.1:7051: wsasend: An existing connection was forcibly closed by the remote host.. Error starting Simple chaincode: Error sending chaincode REGISTER: rpc error: code = 13 desc = transport: write tcp 127.0.0.1:56934->127.0.0.1:7051: wsasend: An existing connection was forcibly closed by the remote host.

zupan (Fri, 05 May 2017 07:52:21 GMT):
Has joined the channel.

zupan (Fri, 05 May 2017 07:55:53 GMT):
Hello, I would need some insight on the error I am getting when trying to instantiate chaincode... My example is written in java (based on the chaincode_example02). Installing process goes through without any problems, but when *instantiating* it i get ``` Error: Error endorsing chaincode: rpc error: code = 2 desc = Error starting container: The command '/bin/sh -c cd /root/chaincode/src && gradle -b build.grad le clean && gradle -b build.gradle build' returned a non-zero code: 1 ``` Did anybody encounter same problems when deploying custom chaincode? (I can compile it locally)

zupan (Fri, 05 May 2017 08:10:48 GMT):
Instantiating also fails on already provided example chaincode_example02.

kpkulkarni (Fri, 05 May 2017 19:52:45 GMT):
Has joined the channel.

kpkulkarni (Fri, 05 May 2017 19:52:53 GMT):
Hi, I am trying to build the java example.. I am getting build failure as gradle is not able to download shim-client jar.. Any idea?>> Here is the stacktrace: FAILURE: Build failed with an exception. * What went wrong: Could not resolve all dependencies for configuration ':examples:chaincode:java:SimpleSample:compileClasspath'. > Could not find org.hyperledger:shim-client:1.0. Searched in the following locations: file:/root/.m2/repository/org/hyperledger/shim-client/1.0/shim-client-1.0.pom file:/root/.m2/repository/org/hyperledger/shim-client/1.0/shim-client-1.0.jar https://repo1.maven.org/maven2/org/hyperledger/shim-client/1.0/shim-client-1.0.pom https://repo1.maven.org/maven2/org/hyperledger/shim-client/1.0/shim-client-1.0.jar Required by: project :examples:chaincode:java:SimpleSample

kpkulkarni (Fri, 05 May 2017 19:59:31 GMT):
@sanchezl , Building core/chaincode/shim/java also throws up ERROR: ^ 100 errors :core:chaincode:shim:java:compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':core:chaincode:shim:java:compileJava'. > Compilation failed; see the compiler error output for details.

kpkulkarni (Fri, 05 May 2017 20:00:18 GMT):
@sanchezl , docker run also isnt working for me: docker run --name temp_container hyperledger/fabric-javaenv Unable to find image 'hyperledger/fabric-javaenv:latest' locally docker: Error response from daemon: manifest for hyperledger/fabric-javaenv:latest not found.

kpkulkarni (Fri, 05 May 2017 20:05:11 GMT):
Hangon.. May be thats because I am using openjdk to compile

kpkulkarni (Fri, 05 May 2017 20:05:30 GMT):
Let me install oracle java 8

kpkulkarni (Fri, 05 May 2017 20:48:22 GMT):
Build successful after running with Oracle jdk 8

kpkulkarni (Fri, 05 May 2017 21:12:19 GMT):
I am not able to deploy the code. Getting PEERCONNECTIONERROR

kpkulkarni (Fri, 05 May 2017 21:12:56 GMT):
root@cli:/go/src/github.com/hyperledger/fabric/examples/chaincode/java/SimpleSample# peer chaincode install -l java -v 1.0 -n test_kpk -p /opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/java/SimpleSample -c '{"Args": ["init", "a","100", "b", "200"]}' -c '{"Args":["init","a","100","b","200"]}' -o orderer0:7050 2017-05-05 21:11:03.635 UTC [flogging] GetModuleLevel -> DEBU 001 Module 'error' logger set to 'DEBUG' log level Error: Error getting endorser client chaincode: PEER_CONNECTIONERROR - Error trying to connect to local peer: grpc: timed out when dialing /go/src/github.com/hyperledger/fabric/peer/common/common.go:84 github.com/hyperledger/fabric/peer/common.GetEndorserClient /go/src/github.com/hyperledger/fabric/peer/chaincode/common.go:222 github.com/hyperledger/fabric/peer/chaincode.InitCmdFactory /go/src/github.com/hyperledger/fabric/peer/chaincode/install.go:159 github.com/hyperledger/fabric/peer/chaincode.chaincodeInstall /go/src/github.com/hyperledger/fabric/peer/chaincode/install.go:54 github.com/hyperledger/fabric/peer/chaincode.installCmd.func1 /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:599 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:689 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC /go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:648 github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute /go/src/github.com/hyperledger/fabric/peer/main.go:110 main.main /usr/local/go/src/runtime/proc.go:194 runtime.main /usr/local/go/src/runtime/asm_amd64.s:2198 runtime.goexit

kpkulkarni (Fri, 05 May 2017 21:13:08 GMT):
Any idea ?

sanchezl (Fri, 05 May 2017 21:16:36 GMT):
set `CORE_PEER_ADDRESS`

sanchezl (Fri, 05 May 2017 21:18:39 GMT):
e.g.: `$ CORE_PEER_ADDRESS=localhost:7050 peer chaincode install ...`

kpkulkarni (Fri, 05 May 2017 21:31:40 GMT):

Message Attachments

kpkulkarni (Fri, 05 May 2017 21:31:45 GMT):
@sanchezl ,still the same error. I am running all the 4 nodes.

sanchezl (Fri, 05 May 2017 21:33:06 GMT):
looks like `CORE_PEER_ADDRESS=0.0.0.0:7051` for you.

kpkulkarni (Fri, 05 May 2017 21:41:34 GMT):
I gave the IP : 172.x.x.x:7051, but after that some strange things happend. peer0 got stopped with error : fabric-peer0 exited with code 137 and now I am getting error logs continously : fabric-orderer0 | 2017-05-05 21:41:06.526 UTC [orderer/common/deliver] Handle -> ERRO 009 Error reading from channel, cause was: NOT_FOUND fabric-peer0 | 2017-05-05 21:41:06.527 UTC [blocksProvider] DeliverBlocks -> WARN 3ff Got error &{NOT_FOUND} fabric-peer0 | 2017-05-05 21:41:07.530 UTC [deliveryClient] RequestBlocks -> DEBU 400 Starting deliver with block [3]

kpkulkarni (Fri, 05 May 2017 21:43:39 GMT):

Message Attachments

suganuma (Sat, 06 May 2017 06:55:36 GMT):
Has joined the channel.

akapustin (Sat, 06 May 2017 12:54:55 GMT):
Has joined the channel.

akapustin (Sat, 06 May 2017 13:31:55 GMT):
Hi! I’m newbie in open source, but i’m want to do something useful for java api in fabric. I have few questions about FAB-2719(https://jira.hyperledger.org/browse/FAB-2719). Current ChaincodeBase pass args via ChaincodeStub, is code example in task description is still actual?

sanchezl (Sat, 06 May 2017 13:56:45 GMT):
No. It's not.

kpkulkarni (Sun, 07 May 2017 09:52:53 GMT):
@sanchezl Not sure why it wasn't working earlier. I brought down all the docker containers. Did a git fetch, pull of docker-compose files and then brought up the docker containers with ca, orderer, cli and peer0. Logged in to cli and then, again did a git fetch, git pull and ran the SimpleService java example. However, this time it got installed and instantiated, and I was able to query too. One thing I observed in my above replies is, I provided the option -o i.e, -o orderer0:7050 during install command too., which is wrong. its required only during "instantiate"

stu2 (Sun, 07 May 2017 21:02:56 GMT):
Has joined the channel.

albert.lacambra (Mon, 08 May 2017 09:30:40 GMT):
Hi, can someone tell me how is the devlopment of the java sdk in relation to the node sdk?

albert.lacambra (Mon, 08 May 2017 09:30:54 GMT):
Follows the same schedules?

sanchezl (Mon, 08 May 2017 11:21:57 GMT):
Try asking in #fabric-sdk-java

yecineoueslati (Mon, 08 May 2017 16:35:16 GMT):
Has joined the channel.

abaumhof (Tue, 09 May 2017 04:20:57 GMT):
Has joined the channel.

zupan (Tue, 09 May 2017 12:55:18 GMT):
what are the resources needed to run test fabric with java blockchain? (I asked that before on #fabric-sdk-java but they directed me here). I'm asking because I can run e2e test in go on vm with 2gb of ram, but with java, even on 4GB of ram I run out of RAM

zupan (Tue, 09 May 2017 12:55:18 GMT):
what are the resources needed to run test fabric with java blockchain? (I asked that before on #fabric-sdk-java but they directed me here). I'm asking because I can run e2e test in go on vm with 2gb of ram, but with java, even on 4GB of ram I run out of RAM. Are there some guidelines?

zupan (Tue, 09 May 2017 12:55:18 GMT):
what are the resources needed to run test fabric with java blockchain? (I asked that before on #fabric-sdk-java but they directed me here). I'm asking because I can run e2e test in go on vm with 2gb of ram, but with java, even on 4GB of ram I run out of RAM. Are there some guidelines?

MrBuggySan (Tue, 09 May 2017 16:24:24 GMT):
Has joined the channel.

jojialex2 (Wed, 10 May 2017 03:56:45 GMT):
Has joined the channel.

jordipainan (Wed, 10 May 2017 08:12:29 GMT):
Has joined the channel.

nickmelis (Wed, 10 May 2017 08:55:58 GMT):
Is it possible to run Java chaincode in development mode the same way I used to do with v0.6?

webdaford (Thu, 11 May 2017 18:54:55 GMT):
Has joined the channel.

bur (Tue, 16 May 2017 08:21:57 GMT):
Hi, I try to develop Java chaincode in DEV Mode as described here (https://github.com/hyperledger/fabric/blob/master/docs/source/Setup/JAVAChaincode.rst). However, seems to be outdated. Is it with the current fabric version possible?

bur (Tue, 16 May 2017 08:23:33 GMT):
In this document the peer cli still calls "deploy"

bur (Tue, 16 May 2017 09:46:15 GMT):
@nickmelis oh didn't ready your question! Did you find out already?

bur (Tue, 16 May 2017 09:46:15 GMT):
@nickmelis oh didn't read your question! Did you find out already?

nickmelis (Tue, 16 May 2017 10:20:38 GMT):
@bur just gave it a quick try running Java chaincode as I used to do in dev mode with v0.6, however I didn't succeed in invoking the chaincode from cli...may be my fault though

JAVIERFALCESMARIN (Tue, 16 May 2017 10:23:24 GMT):
Has joined the channel.

nharshita (Tue, 16 May 2017 10:23:27 GMT):
Has joined the channel.

gomsb143 (Tue, 16 May 2017 11:53:46 GMT):
Has joined the channel.

gomsb143 (Tue, 16 May 2017 11:54:23 GMT):
Hello, is there any way to create docker images of chaincode

rocket.cat (Tue, 16 May 2017 11:54:23 GMT):
Good 'aye!, gomsb143

eetti (Tue, 16 May 2017 12:20:31 GMT):
Has joined the channel.

kelvinzhong (Wed, 17 May 2017 03:28:42 GMT):
hi all, how could i get org.hyperledger shim-client 1.0

kelvinzhong (Wed, 17 May 2017 03:29:16 GMT):
seems this could not found in maven default repositor

kelvinzhong (Wed, 17 May 2017 03:29:16 GMT):
seems this could not found in maven default repository

sanchezl (Wed, 17 May 2017 03:33:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=zZK6dW58nJQL42ZQx) @sanchezl

kelvinzhong (Wed, 17 May 2017 03:34:35 GMT):
thx!

kelvinzhong (Wed, 17 May 2017 03:35:24 GMT):
so the java chaincode could be work with the alpha version of fabric right?

kelvinzhong (Wed, 17 May 2017 04:05:54 GMT):
@sanchezl hi, i have generate the shim jar, but it's different to the sample, there has a getChaincodeID() API, so is this the newest design or thisAPI will be remove later?

sanchezl (Wed, 17 May 2017 04:30:35 GMT):
Some of the samples (*Example*, *MapExample*, and *RangeExample*) have not been updated.

sanchezl (Wed, 17 May 2017 04:30:35 GMT):
Some of the samples ( *Example*, *MapExample*, and *RangeExample*) have not been updated.

sanchezl (Wed, 17 May 2017 04:32:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=tgx6qqeZ6WxS4JJn9) @kelvinzhong No. It's been disable in alpha2. We will re-enable it sometime after alpha2 is cut.

sanchezl (Wed, 17 May 2017 04:32:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=tgx6qqeZ6WxS4JJn9) @kelvinzhong No. It's been disabled in alpha2. We will re-enable it sometime after alpha2 is cut.

kelvinzhong (Wed, 17 May 2017 05:35:35 GMT):
cool, thx for reply!

kelvinzhong (Wed, 17 May 2017 09:05:12 GMT):
the chaincode might import some jar lib, is there anyway to put the jar package into the cc docker env and work with the chaincode?

chenxuan (Wed, 17 May 2017 09:06:18 GMT):
Has joined the channel.

kelvinzhong (Wed, 17 May 2017 09:06:39 GMT):
or is there any other way i could use the third party lib without copy the source code into the chaincode, but include the jar file? @sanchezl

kelvinzhong (Wed, 17 May 2017 09:45:06 GMT):
the jar package would be downloaded automatically by maven in the ccenv right? i don't need to include the package but only the pom file

tmath (Wed, 17 May 2017 10:43:43 GMT):
Has joined the channel.

tmath (Wed, 17 May 2017 10:43:49 GMT):
is this tutorial for v1.0? http://hyperledger-fabric.readthedocs.io/en/latest/Setup/JAVAChaincode.html

GOWDHAMAN (Wed, 17 May 2017 12:41:50 GMT):
Has joined the channel.

eetti (Wed, 17 May 2017 13:27:10 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=M9WyDEt4ZfDjS64dF) @tmath The tutorial is for 0.6

chenxuan (Thu, 18 May 2017 03:15:17 GMT):
Could not find the file "/home/tinkpad/test.properties"

chenxuan (Thu, 18 May 2017 03:15:24 GMT):
mvn install

chenxuan (Thu, 18 May 2017 03:15:32 GMT):
java.io.NotSerializableException: org.hyperledger.fabric.sdk.TestHFClient$1

kelvinzhong (Thu, 18 May 2017 03:24:46 GMT):
the java chaincode is different from java sdk, u might ask in #fabric-sdk-java

xuanyue202 (Thu, 18 May 2017 06:03:08 GMT):
Has joined the channel.

kpkulkarni (Sat, 20 May 2017 03:32:18 GMT):
Problems with shim compilations.. When i run $ cd core/chaincode/shim/java $ gradle copyProtosFromDevEnv Build file '/go/src/github.com/hyperledger/fabric/core/chaincode/shim/java/build.gradle' line: 29 * What went wrong: An exception occurred applying plugin request [id: 'java'] > Failed to apply plugin [id 'org.gradle.java'] > Could not find property 'sourceSets' on project ':core:chaincode:shim:java'. Any idea ?

richard.holzeis (Sun, 21 May 2017 20:09:31 GMT):
Has joined the channel.

Calvin_Heo (Mon, 22 May 2017 02:51:55 GMT):
Has joined the channel.

gomsb143 (Mon, 22 May 2017 10:13:14 GMT):
hello every one i have created a docker image of chaincode ```membersrvc: image: hyperledger/fabric-membersrvc ports: - "7054:7054" command: membersrvc vp0: image: hyperledger/fabric-peer ports: - "7050:7050" - "7051:7051" - "7053:7053" environment: - CORE_PEER_ADDRESSAUTODETECT=true - CORE_VM_ENDPOINT=unix:///var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=vp0 - CORE_PEER_PKI_ECA_PADDR=membersrvc:7054 - CORE_PEER_PKI_TCA_PADDR=membersrvc:7054 - CORE_PEER_PKI_TLSCA_PADDR=membersrvc:7054 - CORE_SECURITY_ENABLED=false - CORE_SECURITY_ENROLLID=test_vp0 - CORE_SECURITY_ENROLLSECRET=MwYpmSRjupbT links: - membersrvc command: sh -c "sleep 5; peer node start --peer-chaincodedev" leger: image: chain/chaincode links: - vp0 ``` thats my docker compose

gomsb143 (Mon, 22 May 2017 10:13:28 GMT):
but my chaincode is not connecting with the peer

gomsb143 (Mon, 22 May 2017 10:13:28 GMT):
but my chaincode is not connecting with the peer `SEVERE: Unable to connect to peer server: UNAVAILABLE`

gomsb143 (Mon, 22 May 2017 10:13:28 GMT):
but my chaincode is not connecting with the peer `SEVERE: Unable to connect to peer server: UNAVAILABLE` im getting this error

zupan (Mon, 22 May 2017 14:10:30 GMT):
hey, does anybody know how to easily get last entry based ob *partial composite key*. Can I just do *getState*, or do I need to use *getStateByPartialCompositeKey* and iterate through result to get last entry?

rickr (Mon, 22 May 2017 15:19:54 GMT):
@sanchezl Last I heard Java chain code for v1.0 is not ready. https://jira.hyperledger.org/browse/FAB-4072 and was purposely disabled

CarlXK (Tue, 23 May 2017 01:28:49 GMT):
Has joined the channel.

Hangyu (Tue, 23 May 2017 08:25:49 GMT):
Has joined the channel.

garMobTest (Tue, 23 May 2017 17:41:32 GMT):
Has joined the channel.

srvnnp (Wed, 24 May 2017 13:40:24 GMT):
Has joined the channel.

rickr (Wed, 24 May 2017 14:50:04 GMT):
https://chat.hyperledger.org/channel/fabric?msg=azTmCZ4zwonzNd8Mi

rickr (Wed, 24 May 2017 14:50:46 GMT):
Anyone interested in CC ^^^

rickr (Wed, 24 May 2017 14:50:46 GMT):
Anyone interested in Java CC ^^^

rickr (Wed, 24 May 2017 14:51:49 GMT):
Short of it is looks to be left disabled for V1.0

stanacton (Thu, 25 May 2017 13:02:45 GMT):
Hello.. silly question.. does the ChaincodeStub implement an interface that I can use for testing? I can't see it in my code, but I don't know if I'm missing something.

stanacton (Thu, 25 May 2017 13:11:58 GMT):
Ignore that.. found it.

raasiel (Sun, 28 May 2017 11:53:35 GMT):
Has joined the channel.

jimouris (Mon, 29 May 2017 11:36:57 GMT):
Has joined the channel.

nickmelis (Wed, 31 May 2017 09:43:51 GMT):
https://jira.hyperledger.org/browse/FAB-4072?focusedCommentId=24248#comment-24248

nickmelis (Wed, 31 May 2017 09:44:10 GMT):
can anyone clarify on this comment please? What's the reason to get rid of Java chaincode completely?

nickmelis (Wed, 31 May 2017 09:44:10 GMT):
can anyone clarify on this comment please? What's the reason behind the will to get rid of Java chaincode completely?

weeds (Wed, 31 May 2017 19:34:01 GMT):
The maintainers decided the freeze the code. Java Chaincode is not currently functional.

weeds (Wed, 31 May 2017 19:34:16 GMT):
I think the plan is to bring it back post version 1.0, but there was no way to disable it.

bkvellanki (Wed, 31 May 2017 19:59:52 GMT):
@jimthematrix @highway info: [crypto_ecdsa_aes]: This class requires a CryptoKeyStore to save keys, using the store: {"opts":{"path":"/tmp/bcs-sl-hfc-kvs_peerOrg1"}} error: [Chain.js]: Chain-sendPeersProposal - Promise is rejected: Error: cannot get package for the chaincode to be instantiated (bhload01:v01)-cannot retrieve package for chaincode bhload01/v01, error open /var/hyperledger/production/chaincodes/bhload01.v01: no such file or directory Any idea why this happens..I loggged in to the container and i see the chaincode..But when i instantiate i get this error at /Users/bvellanki/install/workspace/node-workspace/bcs-sl-api/node_modules/grpc/src/node/src/client.js:434:17 error: [Chain.js]: Chain-sendPeersProposal - Promise is rejected: Error: Error starting container: API error (404): {"message":"network bcsslhfc_default not found"} Guys..Any help is appreciated on a POC - Urgent Once I do this instantiation..It is almost done..All the other calls working..except this..

highway (Wed, 31 May 2017 19:59:52 GMT):
Has joined the channel.

nickmelis (Thu, 01 Jun 2017 09:03:38 GMT):
So anyone who used Java chaincode in v0.6 should now migrate to Go?

sanchezl (Thu, 01 Jun 2017 16:57:26 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Pf74zkC7uk3v2bNSb) @nickmelis You can build fabric from source after reverting the commit that disabled Java chaincode it: `git revert 29e0c4083f1f95d4f3513ecdfbbe7598e082238d`.

nickmelis (Fri, 02 Jun 2017 08:31:29 GMT):
@sanchezl yes I understand that, but it's going to be kind of 'use it at your own risk'

nickmelis (Fri, 02 Jun 2017 08:31:37 GMT):
not ready for production anyway

ffilozov1 (Fri, 02 Jun 2017 21:52:28 GMT):
Has joined the channel.

pvrbharg (Tue, 06 Jun 2017 15:07:34 GMT):
Has joined the channel.

7sigma (Wed, 07 Jun 2017 11:00:54 GMT):
Has joined the channel.

vjuge (Fri, 09 Jun 2017 14:34:24 GMT):
hi all, do I undestand that java chaincode won't be available until v1.1 ?

laliux (Fri, 09 Jun 2017 16:14:45 GMT):
Has joined the channel.

mgk (Sat, 10 Jun 2017 10:56:47 GMT):
Has joined the channel.

Mnorberto (Mon, 12 Jun 2017 04:16:26 GMT):
Has joined the channel.

waytoharish (Wed, 14 Jun 2017 05:56:15 GMT):
Has joined the channel.

kyle1234 (Thu, 15 Jun 2017 01:12:45 GMT):
Has joined the channel.

naruto1982 (Thu, 15 Jun 2017 09:10:38 GMT):
Has joined the channel.

mastersingh24 (Thu, 15 Jun 2017 22:17:45 GMT):
@vjuge - it will be in an as yet undetermined future release although I imagine post v1.0.0 we'll enable it in the master branch

akashmar (Fri, 16 Jun 2017 16:19:34 GMT):
I had my java chaincode working fine in alpha. Now I upgrade to beta and I can't use it anymore? Whoever decided to disable it could have at least put in an environment variable to override this! @sanchezl I'll have to do what you're suggesting and revert the change

rogeriofza (Sun, 18 Jun 2017 19:23:09 GMT):
Has joined the channel.

VickyWang (Mon, 19 Jun 2017 05:29:02 GMT):
Has joined the channel.

sfukazu (Mon, 19 Jun 2017 06:35:02 GMT):
Has joined the channel.

roj (Mon, 19 Jun 2017 10:42:16 GMT):
Has joined the channel.

chenxuan (Mon, 19 Jun 2017 11:13:56 GMT):
best use java

stanacton (Mon, 19 Jun 2017 14:14:24 GMT):
I must admit. Removing Java support sucks!!!!! There are hoards of Java developers who now I can't use. Do anyone know what the specific issues were to enabling Java?

stanacton (Mon, 19 Jun 2017 14:14:45 GMT):
For example, If I wanted to contribute the code to make Java working, how would I know what there is left to do?

sanchezl (Mon, 19 Jun 2017 14:25:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=z5L7kmz627HKC3biT) @stanacton If you want to keep working on Java chaincode, you can re-enable Java chaincode support as I detailed in a previous message on this channel. Post v1.0.0 it will be re-enabled in master. It simply was not tested enough to include in a proper 'release'. It was disable to make it clear that it was not a supported feature of the v1.0.0 release.

stanacton (Mon, 19 Jun 2017 14:29:27 GMT):
@sanchezl Thanks for the response. We want to use it in production with support, doing that I think might invalidate the support contract. I was just wondering how "risky" it was ... how do I gauge how far away it is I guess is my question. If it's 100% there and just not been tested, that's one thing; if it's 80% done or we don't know.. then I can't 'trust' it for production

dongqi (Tue, 20 Jun 2017 08:35:44 GMT):
Has joined the channel.

sanchezl (Tue, 20 Jun 2017 14:13:16 GMT):
@stanacton , I've added the `java-chaincode` label to the JIRA items related to the outstanding Java chaincode bugs. I would say it's about 95% done (given the know bugs to date). Almost all of the Java chaincode samples that can compile, should work.

yecineoueslati (Wed, 21 Jun 2017 09:58:50 GMT):
I used git revert 29e0c4083f1f95d4f3513ecdfbbe7598e082238d in vagrant but java chaincode is still notworking

yecineoueslati (Wed, 21 Jun 2017 09:59:24 GMT):
gRPC failure=Status{code=UNKNOWN, description=Java chaincode is work-in-progress and disabled, cause=null}

yecineoueslati (Wed, 21 Jun 2017 13:23:51 GMT):
I made javacc work git revert must be before doing make docker

jyg007 (Thu, 22 Jun 2017 10:20:33 GMT):
Has joined the channel.

oleg (Fri, 23 Jun 2017 12:31:29 GMT):
Has joined the channel.

DeutscheBahn-BlockchainDev (Tue, 27 Jun 2017 08:36:28 GMT):
Has joined the channel.

VishalBatra (Tue, 27 Jun 2017 17:43:50 GMT):
Has joined the channel.

andrew.grande (Tue, 27 Jun 2017 18:25:10 GMT):
Has joined the channel.

andrew.grande (Tue, 27 Jun 2017 18:26:26 GMT):
hi all, hyperledger newb seeking some help here. i stood up the docker env and registered the example chaincode (v1.0.0). however, i can't seem to invoke the peer:7050/chain endpoint

andrew.grande (Tue, 27 Jun 2017 18:26:40 GMT):
getting connection refused by peer. any ideas?

andrew.grande (Tue, 27 Jun 2017 18:35:40 GMT):
it sounds like the 1.0.0 docker compose file from examples doesn't have rest api service stood up, is my understanding correct?

sanchezl (Tue, 27 Jun 2017 18:39:28 GMT):
Correct

andrew.grande (Tue, 27 Jun 2017 18:42:40 GMT):
trying to navigate the sea of outdated docs, what's the best place to look into starting this service? command, etc? current service command is: peer node start --peer-chaincodedev

andrew.grande (Tue, 27 Jun 2017 18:44:43 GMT):
'peer help' from within the docker container does show some info. is this page considered the go to official one? https://hub.docker.com/r/yeasy/hyperledger-fabric-peer/ thanks!

gdinhof (Wed, 28 Jun 2017 05:56:47 GMT):
Has joined the channel.

xinpei8 (Wed, 28 Jun 2017 14:52:11 GMT):
Has joined the channel.

andrew.grande (Wed, 28 Jun 2017 18:36:54 GMT):
when writing chaincode in java, i understand one has to build a tar/zip with all dependencies, correct?

andrew.grande (Wed, 28 Jun 2017 18:37:51 GMT):
fabric examples use gradle to bundle them, is there an official structure or maven plugin to do it if i were to use maven (no gradle)?

andrew.grande (Wed, 28 Jun 2017 18:38:12 GMT):
i.e. would create the assembly.xml config for maven instead

rezamt (Thu, 29 Jun 2017 04:23:22 GMT):
Has joined the channel.

FabricWhiskey (Thu, 29 Jun 2017 07:25:53 GMT):
Has joined the channel.

rbv (Thu, 29 Jun 2017 14:26:39 GMT):
Has joined the channel.

jeroiraz (Fri, 30 Jun 2017 14:26:03 GMT):
Has joined the channel.

awattez (Mon, 03 Jul 2017 16:02:15 GMT):
Has joined the channel.

rerngrit (Tue, 04 Jul 2017 10:44:10 GMT):
Has joined the channel.

sanchezl (Wed, 05 Jul 2017 14:24:08 GMT):
Hi Andrew, sorry for the delayed response.

sanchezl (Wed, 05 Jul 2017 14:26:27 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=DfTgqswtANy3P4GHn) @andrew.grande Yes, but If you are using the CLI, or one of the SDKs, you should be able to point it (set the `path` in `chaincodeid`) to the root of your gradle project. The SDKs should bundle it appropriately.

sanchezl (Wed, 05 Jul 2017 14:28:13 GMT):
I would have to refer back to the source code at the moment, but I believe that tar simply need have the gradle project in a `src/` directory off of the root of the tar. You would include dependencies, as per your gradle.build file.

sanchezl (Wed, 05 Jul 2017 14:29:41 GMT):
I believe that if a `pom.xml` is found in source, instead of `build.gradle`, a maven build will be performed instead.

naruto1982 (Thu, 06 Jul 2017 06:02:39 GMT):
Hi guys, I just want to know when will the Java Chaincode be ready for use ? Is there any schedule or plan table ? Thanks.

muralisr (Thu, 06 Jul 2017 12:49:17 GMT):
@naruto1982 https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=mBYtvBvTZg5r2yJrN

AubreyMalabie (Sat, 08 Jul 2017 10:28:45 GMT):
Has joined the channel.

yecineoueslati (Mon, 10 Jul 2017 09:27:07 GMT):
hello everybody i want to get the error response from java chaincode but i dont know how

yecineoueslati (Mon, 10 Jul 2017 09:27:30 GMT):

Message Attachments

yecineoueslati (Mon, 10 Jul 2017 09:27:44 GMT):

Message Attachments

yecineoueslati (Mon, 10 Jul 2017 09:28:44 GMT):
I know that this question is related to java sdk but i asked there and nobody responsded me so i ask here

yecineoueslati (Mon, 10 Jul 2017 09:28:49 GMT):
and thank you

yecineoueslati (Mon, 10 Jul 2017 13:07:51 GMT):
It appears that handling errors in invoke fuctions is possible by events but i dont find an example with the java sdk if anybody have an example thx

PavelKarasev (Mon, 17 Jul 2017 15:02:10 GMT):
Has joined the channel.

DeutscheBahn-BlockchainDev (Tue, 18 Jul 2017 09:50:23 GMT):
Dear All, is there any way I may dynamically ask the Fabric which are the Peers who are registered on a Channel?

SubhodI (Fri, 21 Jul 2017 12:18:47 GMT):
Has joined the channel.

samuel.alencar (Mon, 24 Jul 2017 03:04:34 GMT):
Has joined the channel.

szlaci1983 (Wed, 26 Jul 2017 08:45:56 GMT):
Has joined the channel.

ohupalo (Wed, 26 Jul 2017 11:26:33 GMT):
Has joined the channel.

m.egal (Thu, 27 Jul 2017 16:42:08 GMT):
Has joined the channel.

hcw (Fri, 28 Jul 2017 14:12:29 GMT):
Has joined the channel.

Farit (Mon, 31 Jul 2017 14:31:52 GMT):
Has joined the channel.

JanRzepecki (Mon, 31 Jul 2017 14:46:02 GMT):
Has joined the channel.

daygee (Tue, 01 Aug 2017 15:52:08 GMT):
Has joined the channel.

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 13:50:51 GMT):
Dear All, does anyone have any idea why logs don´t appear in my Java Chaincode when deployed in PROD mode and running within the Docker container?

sanchezl (Wed, 02 Aug 2017 13:55:45 GMT):
Are you not getting ANY logging at all, or just specific log levels?

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:10:56 GMT):
no logging at all

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:11:01 GMT):
nothing

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:11:10 GMT):
I am getting stuff which is not from my chaincode I mean

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:11:17 GMT):
but nothing I am trying to log in the chaincode

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:11:30 GMT):
there is no log file in the docker container

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:11:46 GMT):
and also nothing on the docker console log

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:12:09 GMT):
this is from the docker container

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:12:10 GMT):
[ec2-user@ip-10-43-185-162 ~]$ docker logs -f dev-peer0.org1.example.com-safelog-99 Aug 02, 2017 2:07:43 PM org.hyperledger.fabric.shim.ChaincodeBase newPeerClientConnection INFO: Configuring channel connection to peer. Aug 02, 2017 2:07:43 PM org.hyperledger.fabric.shim.ChaincodeBase chatWithPeer INFO: Connecting to peer. Aug 02, 2017 2:07:43 PM io.grpc.internal.TransportSet$1 call INFO: Created transport io.grpc.netty.NettyClientTransport@43a14040(peer0.org1.example.com/172.18.0.7:7051) for peer0.org1.example.com/172.18.0.7:7051 Aug 02, 2017 2:07:44 PM io.grpc.internal.TransportSet$TransportListener transportReady INFO: Transport io.grpc.netty.NettyClientTransport@43a14040(peer0.org1.example.com/172.18.0.7:7051) for peer0.org1.example.com/172.18.0.7:7051 is ready Aug 02, 2017 2:07:44 PM org.hyperledger.fabric.shim.ChaincodeBase chatWithPeer INFO: Registering as 'SafeLog:99' ... sending REGISTER Aug 02, 2017 2:07:44 PM org.hyperledger.fabric.shim.ChaincodeBase chatWithPeer INFO: [c4b61333ca24d0f7f0dd095a8b8037406c6dd0784b739d0357f471a2ffa2f8d6]Send state message COMPLETED Aug 02, 2017 2:07:46 PM org.hyperledger.fabric.shim.impl.Handler lambda$handleTransaction$6 SEVERE: [19659788c1b018873d98620cffde17dbd3ddcfb789137ff8161925e39f36e3c0]Invoke failed. Sending ERROR Aug 02, 2017 2:07:46 PM org.hyperledger.fabric.shim.ChaincodeBase chatWithPeer INFO: [19659788c1b018873d98620cffde17dbd3ddcfb789137ff8161925e39f36e3c0]Send state message ERROR

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:12:24 GMT):
but in the code when executing the chaincode I have additional logging

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:12:29 GMT):
that is not logged here

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:12:38 GMT):
or any log file in the container

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:13:26 GMT):
I am using the same Logger as the ChaincodeBase (Apache Commons Logging)

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:13:42 GMT):
same utility I mean :)

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:14:17 GMT):
chaincode runnign in the container: java -jar chaincode.jar --peerAddress peer0.org1.example.com:7051

sanchezl (Wed, 02 Aug 2017 14:14:34 GMT):
The logging support in Java Chaincode needs some work that we hope to fix as part of https://jira.hyperledger.org/browse/FAB-3716.

sanchezl (Wed, 02 Aug 2017 14:14:38 GMT):
In the meantime...

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:15:30 GMT):
it´s not really about the log level

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:15:41 GMT):
it´s no matter if I log info or anything else

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:16:10 GMT):
also I can´t create my own LogFile

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:16:17 GMT):
from the chaincode

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:16:21 GMT):
a custom one

sanchezl (Wed, 02 Aug 2017 14:16:42 GMT):
I understand, just pointing out that it was not working perfectly yet (and there are loggin configs that have not been reconciled) [ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=CKqmaQoageT3kYfL5) @DeutscheBahn-BlockchainDev

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:17:19 GMT):
how about creating my own log file and using it during chaincode execution?

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:17:43 GMT):
why can I not create files from a chaincode? is this planned ?

sanchezl (Wed, 02 Aug 2017 14:17:54 GMT):
Can you try a System.out, just to verify that that is working.

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:18:04 GMT):
it was not working

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:18:10 GMT):
System.out.println does not work

sanchezl (Wed, 02 Aug 2017 14:18:59 GMT):
hmm... I'll have to take a closer look myself.

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:19:06 GMT):
ok thanks

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:19:17 GMT):
can U confirm if I should be allowed to create a File from a chaincode?

sanchezl (Wed, 02 Aug 2017 14:19:21 GMT):
You can initialize a std java logger yourself, and use that to get a log file.

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:19:21 GMT):
local one within the cotnainer

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:19:50 GMT):
we tried that and it doesn´t work

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:20:00 GMT):
initializing any logger

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:20:02 GMT):
please check

sanchezl (Wed, 02 Aug 2017 14:20:27 GMT):
We don't do anything to stop that from working. :(

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:22:37 GMT):
that´s good :)

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:27:52 GMT):
so the code works and logs in DEV mode

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:28:04 GMT):
when I run it locally on my workstation and it connects to the peer

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:28:14 GMT):
when I deploy and instantiate in PROD mode

DeutscheBahn-BlockchainDev (Wed, 02 Aug 2017 14:28:21 GMT):
it doesn´t work, neither doesn´t log

scupyr (Wed, 02 Aug 2017 15:30:19 GMT):
Has joined the channel.

yoyokeen (Thu, 03 Aug 2017 06:58:43 GMT):
Has joined the channel.

yoyokeen (Thu, 03 Aug 2017 07:42:17 GMT):
Error: Java chaincode is work-in-progress and disabled

yoyokeen (Thu, 03 Aug 2017 07:42:33 GMT):
peer chaincode install -n mycc1 -v 1.0 -l java -p /opt/gopath/src/github.com/hyperledger/fabric/examples/chaincode/java/SimpleSample

yoyokeen (Thu, 03 Aug 2017 07:42:47 GMT):
it doesn´t work

yoyokeen (Thu, 03 Aug 2017 08:27:36 GMT):
how to install java chaincode?

sanchezl (Thu, 03 Aug 2017 11:35:01 GMT):
https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=E7QqhsWzoCRGSNj6R [ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=xaXfm9eLstDjTyQeB) @yoyokeen

DeutscheBahn-BlockchainDev (Fri, 04 Aug 2017 12:38:51 GMT):
Dear All, should the setEvent work for Java Chaincode?

DeutscheBahn-BlockchainDev (Fri, 04 Aug 2017 12:39:04 GMT):
are we supposed to receive the ChaincodeEvents in the Client SDK?

mariol100 (Fri, 04 Aug 2017 18:50:26 GMT):
Has joined the channel.

eacoeytaux (Fri, 04 Aug 2017 19:53:51 GMT):
Has joined the channel.

DeutscheBahn-BlockchainDev (Mon, 07 Aug 2017 13:20:58 GMT):
Gents, do you know how to get the transient map from the request in Java Chaincode?

sanjay-saxena (Mon, 07 Aug 2017 18:10:12 GMT):
Has joined the channel.

nikit-os (Tue, 08 Aug 2017 15:01:55 GMT):
Has joined the channel.

Pardha (Tue, 08 Aug 2017 15:21:27 GMT):
Has joined the channel.

IanSparkes (Wed, 09 Aug 2017 06:23:29 GMT):
Has joined the channel.

eric.wall (Wed, 09 Aug 2017 10:09:35 GMT):
I am getting an error when reverting the commit that disabled Java chaincode

eric.wall (Wed, 09 Aug 2017 10:10:29 GMT):
# git status # On branch master # You are currently reverting commit 29e0c40. # (fix conflicts and run "git revert --continue") # (use "git revert --abort" to cancel the revert operation) # # Changes to be committed: # (use "git reset HEAD ..." to unstage) # # modified: core/endorser/endorser_test.go # modified: peer/chaincode/common.go # # Unmerged paths: # (use "git reset HEAD ..." to unstage) # (use "git add ..." to mark resolution) # # both modified: core/endorser/endorser.go #

BhavishaDawda (Wed, 09 Aug 2017 13:53:52 GMT):
Has joined the channel.

eric.wall (Wed, 09 Aug 2017 14:15:15 GMT):
I want to get started with writing some Java chaincode. I have built Hyperledger Fabric from source and reverted the commit that disabled Java chaincode. I have copied the "first-network" files from fabric-samples and spun it up within my new Java-enabled environment. Now I want to install some Java chaincode on the network and try it out. Where do I start?

eric.wall (Wed, 09 Aug 2017 14:15:15 GMT):
I want to get started with writing some Java chaincode. I have built Hyperledger Fabric from source and reverted the commit that disabled Java chaincode. I have copied the "first-network" files from fabric-samples and spun it up within my new Java-enabled build. Now I want to install some Java chaincode on the network and try it out. Where do I start?

rwadhwa (Thu, 10 Aug 2017 07:01:42 GMT):
Has joined the channel.

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 08:27:18 GMT):
Dear All, I am deploying Java Chaincode in PROD mode, but it´s only one container created for the Peer I have submitted the request to.

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 08:27:19 GMT):
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 51b7e217ffc3 dev-peer0.org1.example.com-safelog-1-48cf98744f22d91052d9068876982fad6a5847a3975c66baaa1848af440ea741 "java -jar chainco..." 18 hours ago Up 18 hours dev-peer0.org1.example.com-SafeLog-1 b10245d5e2e2 hyperledger/fabric-tools "/bin/bash" 18 hours ago Up 18 hours cli c9c1c92d185f hyperledger/fabric-peer "peer node start" 18 hours ago Up 18 hours 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com d3a4b6292c7d hyperledger/fabric-peer "peer node start" 18 hours ago Up 18 hours 0.0.0.0:10051->7051/tcp, 0.0.0.0:10053->7053/tcp peer1.org2.example.com dff0fd68a13e hyperledger/fabric-peer "peer node start" 18 hours ago Up 18 hours 0.0.0.0:9051->7051/tcp, 0.0.0.0:9053->7053/tcp peer0.org2.example.com ffbedcedced7 hyperledger/fabric-peer "peer node start" 18 hours ago Up 18 hours 0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp peer1.org1.example.com 0cf8509ef8ca hyperledger/fabric-orderer

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 08:27:28 GMT):
there should be one container per peer

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 08:28:04 GMT):
and there is this strange prefix of "dev" in the container name that suggests maybe some logic is picking up a DEV context

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 08:28:17 GMT):
nevertheless the PEERS are not started in DEV mode

silliman (Fri, 11 Aug 2017 10:57:51 GMT):
@DeutscheBahn-BlockchainDev The *dev* in the chaincode name is from the networkId value which is set to *dev* by default in the *core.yaml* file used by your peer. The chaincode container and the image it is based on are created initially only for the peer targeted by your `peer chaincode instantiate...` command. Chaincode containers and their corresponding images for other peers in your Hyperledger Fabric network should be spun up when transactions are targeted to them for the first time.

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 11:17:41 GMT):
Hallo @silliman , thanks for your feedback! is there any reason why you would not start up the containers for all the other Peers during the instantiation request? (we have the Endorsement policy in our hand, so we should know which Peers will need to participate in future endorsements)

silliman (Fri, 11 Aug 2017 11:21:49 GMT):
@DeutscheBahn-BlockchainDev I'm not a Fabric developer and wasn't involved in the design decisions, but for one thing, endorsement policies are most often scoped by organizations, e.g. *_m_ of _n_ organizations* must endorse, and since organizations can have multiple peers, not all of which need to be endorsers, how would you know which peers for which to create the image and container at the time of instantiation?

DeutscheBahn-BlockchainDev (Fri, 11 Aug 2017 11:59:57 GMT):
@silliman indeed I see a problem, that for the Client the endorsement policies are providing an abstraction on the Organization Level, while the Fabric Network doesn´t. Basically Organizations should be allowed to dynamically manage the relationship between Chaincode-ValidatingPeers (maybe via a messaging layer like Kafka in front of Fabric) reliefing the Clients from "knowing" the network and also optimizing in bootstrapping Chaincode containers on the first instantiation request. Like this you are right if the relationship is not stored anywhere, you would start containers on demand, and not proactively. Today, as far as I understand I would have to send to a specific Peer from another Organization in case this Organization has to endorse according to the Endorsement Policy?

pvrbharg (Fri, 11 Aug 2017 18:07:24 GMT):
Hi - where would I find the meaning of status 11 when program emits a TransactionEventException?

pvrbharg (Fri, 11 Aug 2017 18:07:27 GMT):
https://github.com/hyperledger/fabric-sdk-java/blob/master/src/test/java/org/hyperledger/fabric/sdkintegration/End2endAndBackAgainIT.java

pvrbharg (Fri, 11 Aug 2017 18:07:42 GMT):
if (e instanceof TransactionEventException) { BlockEvent.TransactionEvent te = ((TransactionEventException) e).getTransactionEvent(); if (te != null) { e.printStackTrace(System.err); fail(format("Transaction with txid %s failed. %s", te.getTransactionID(), e.getMessage())); } }

pvrbharg (Fri, 11 Aug 2017 18:08:40 GMT):
The program emits a transaction ID and status 11 text - it means nothing unless we know what the status 11 description is.

pvrbharg (Fri, 11 Aug 2017 18:08:48 GMT):
Any help would be appreciated.

acosta_rodrigo (Sat, 12 Aug 2017 17:04:18 GMT):
Has joined the channel.

silliman (Sat, 12 Aug 2017 18:50:00 GMT):
@DeutscheBahn-BlockchainDev >Today, as far as I understand I would have to send to a specific Peer from another Organization in case this Organization has to endorse according to the Endorsement Policy? Yes, as of right now, the client application needs to know the topology well enough to know which peers it needs to send TransactionProposals to in order to satisfy the endorsement policy. I'm almost certain that JIRA(s) exist to add a discovery service so that client applications and/or SDKs can discover this dynamically in the future but I don't have the JIRA number(s) offhand or know the status

eric.wall (Mon, 14 Aug 2017 15:47:09 GMT):
How are you guys installing java chaincode on the peers?

eric.wall (Mon, 14 Aug 2017 15:48:40 GMT):
I did git revert 29e0c4083f1f95d4f3513ecdfbbe7598e082238d

eric.wall (Mon, 14 Aug 2017 15:49:05 GMT):
then I placed my Java chaincode on the peer

eric.wall (Mon, 14 Aug 2017 15:49:14 GMT):
when I try peer install chaincode I get this..

eric.wall (Mon, 14 Aug 2017 15:49:56 GMT):
```root@7a9fd3eb2a39:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/java/chaincode_exa mple02 2017-08-14 15:44:52.038 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-14 15:44:52.038 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-14 15:44:52.038 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-14 15:44:52.038 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2017-08-14 15:44:52.077 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS github.com/hyperledger/fabric/examples/chaincode/java/chaincode_example02 Error: Error getting chaincode code chaincode: Error getting chaincode package bytes: Error obtaining imports: : failed with error: "exit status 1" can't load package: package github.com/hyperledger/fabric/examples/chaincode/java/chaincode_example02: no buildable Go source files in /opt/gopath/src/github.com/hyperledger/fabr ic/examples/chaincode/java/chaincode_example02 ```

eric.wall (Mon, 14 Aug 2017 15:50:29 GMT):
Why is it looking for Go source files?

eric.wall (Tue, 15 Aug 2017 08:57:31 GMT):
I found the error. I had to specify --lang java

toddinpal (Tue, 15 Aug 2017 16:14:47 GMT):
Has joined the channel.

kirin 2 (Tue, 15 Aug 2017 22:29:03 GMT):
Has joined the channel.

kirin 2 (Tue, 15 Aug 2017 22:30:49 GMT):
btw, does fabric already allow to write chaincode in java? i read in the doc that for v1 only go supported.

ArthaJonar (Wed, 16 Aug 2017 00:41:53 GMT):
Has joined the channel.

DeutscheBahn-BlockchainDev (Wed, 16 Aug 2017 09:28:02 GMT):
Dear all, when I am invoking a chaincode in the same transaction context, is there no need to pass the chaincode version?

DeutscheBahn-BlockchainDev (Wed, 16 Aug 2017 09:28:30 GMT):
from examples: final Response response = stub.invokeChaincodeWithStringArgs(nameOfChaincodeToCall, Arrays.asList("invoke", "a", "b", "10"), channel);

DeutscheBahn-BlockchainDev (Wed, 16 Aug 2017 09:28:54 GMT):
there is no Chaincode version here ...

DeutscheBahn-BlockchainDev (Wed, 16 Aug 2017 09:29:41 GMT):
also how does this fit with endorsement policies? the top level chaincode might have different policies, then the one I am calling in the same transaction context ... is this ignored in such case?

DeutscheBahn-BlockchainDev (Wed, 16 Aug 2017 09:52:17 GMT):
can someone verify that the "invokeChaincodeWithStringArgs" should be functional?

kirin 2 (Wed, 16 Aug 2017 09:59:41 GMT):
@eric.wall Hello! Please tell me how do you write chaincode in java? I thought it was possible only in go

eric.wall (Wed, 16 Aug 2017 14:34:28 GMT):
@kirin 2 I don't know if it's possible, but I read that you can revert a certain git that disabled java and run it

eric.wall (Wed, 16 Aug 2017 14:34:45 GMT):
git revert 29e0c4083f1f95d4f3513ecdfbbe7598e082238d

eric.wall (Wed, 16 Aug 2017 14:34:54 GMT):
but I haven't gotten it working

Souvik.Dey (Fri, 18 Aug 2017 13:37:12 GMT):
I am using images for hyperledger

Souvik.Dey (Fri, 18 Aug 2017 13:37:12 GMT):
hyperledger/fabric-tools x86_64-1.0.0 hyperledger/fabric-orderer x86_64-1.0.0 hyperledger/fabric-peer x86_64-1.0.0 hyperledger/fabric-ccenv x86_64-1.0.0 hyperledger/fabric-ca x86_64-1.0.0

Souvik.Dey (Fri, 18 Aug 2017 13:41:43 GMT):
I try to install chaincode using the commend

Souvik.Dey (Fri, 18 Aug 2017 13:41:44 GMT):
CORE_PEER_ADDRESS=peer0:7051 peer chaincode install -l java -n mycc -p /opt/gopath/src/github.com/hyperledger/fabric/abc/chaincode/go/example_cc/src/main/java/example/SimpleChaincode -v v0

Souvik.Dey (Fri, 18 Aug 2017 13:42:11 GMT):
It is showing err:

Souvik.Dey (Fri, 18 Aug 2017 13:42:12 GMT):
2017-08-18 13:33:55.897 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-18 13:33:55.897 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2017-08-18 13:33:55.897 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2017-08-18 13:33:55.897 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc Error: Java chaincode is work-in-progress and disabled

Souvik.Dey (Fri, 18 Aug 2017 13:43:23 GMT):
this hyperledger is support java chaincode??

sanchezl (Fri, 18 Aug 2017 13:43:49 GMT):
Java chaincode is not yet supported. You have to build your own fabric images w/ Java chaincode support enabled. https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=E7QqhsWzoCRGSNj6R

bgaisford (Sat, 19 Aug 2017 19:11:15 GMT):
Has joined the channel.

ngeorge (Mon, 21 Aug 2017 05:27:00 GMT):
Has joined the channel.

ngeorge (Mon, 21 Aug 2017 05:27:35 GMT):
Using java sdk APIs, is there a way to get the details(peers, orderers etc ) of existing network topology for a given channel name ? I could see function getChannel in HFClient class. When I tried it returned a null object.

Jonny (Tue, 22 Aug 2017 04:11:48 GMT):
Hi, can some help me, where can I find `org.hyperledger:shim-client:1.0`. I tried to look at maven repository seems like the library is not there.

Jonny (Tue, 22 Aug 2017 04:11:48 GMT):
Hi, can some help when can I find `org.hyperledger:shim-client:1.0`. I tried to look at maven repository seems like the library is not there.

sanchezl (Wed, 23 Aug 2017 02:59:31 GMT):
``` $ cd core/chaincode/shim/java $ gradle copyProtosFromDevEnv $ gradle build ``` That should put the shim jar in your local maven repo

nimtiazm (Thu, 24 Aug 2017 00:23:01 GMT):
Has joined the channel.

grice_32 (Tue, 29 Aug 2017 00:25:41 GMT):
Has joined the channel.

glenlau (Mon, 04 Sep 2017 07:47:34 GMT):
Has joined the channel.

Akashgoyal (Mon, 04 Sep 2017 08:57:21 GMT):
Has joined the channel.

ngeorge (Tue, 05 Sep 2017 10:18:28 GMT):
Hi, while running the End2EndIT.java integration test, whatever endorsement policy is given, the instantiation is getting successful ..eg. with a wrong value for identity mspid, the endorsement is supposed to fail, but in my case, instantiation succeeds.. Could anyone explain the reason for the same?

SethiSaab (Tue, 05 Sep 2017 20:44:42 GMT):
Has joined the channel.

henryhs (Wed, 06 Sep 2017 02:58:56 GMT):
Has joined the channel.

jingxiao (Thu, 07 Sep 2017 08:45:08 GMT):
Has joined the channel.

Vladimir_Bichev (Thu, 07 Sep 2017 12:39:52 GMT):
Has joined the channel.

jingxiao (Mon, 11 Sep 2017 02:26:30 GMT):
hi, guys! I'm from the Blockchain Solution Group in CRL of IBM and just joined the Hyperledger project. Later, I'll spend part of my working time contributing to *fabric-chaincode-java*. Hope to work with you guys all happily and smoothly :>

dileban (Mon, 11 Sep 2017 06:13:18 GMT):
Has joined the channel.

dileban (Mon, 11 Sep 2017 06:27:36 GMT):
What is the status of the support for Java chain code btw? Is there a target release when this will be come available?

ThomasWatson (Mon, 11 Sep 2017 19:07:27 GMT):
Has joined the channel.

nimtiazm (Tue, 12 Sep 2017 01:23:46 GMT):
+1 for @dileban 's question. Also, how about adding/updating some nice tutorials target that latest release rather than a previous one.

gujingxiao (Wed, 13 Sep 2017 14:33:54 GMT):
Has joined the channel.

szhman (Fri, 15 Sep 2017 17:10:20 GMT):
Has joined the channel.

Emmarock (Tue, 19 Sep 2017 09:31:25 GMT):
Has joined the channel.

SubbaBachina (Wed, 20 Sep 2017 13:59:11 GMT):
Has joined the channel.

qsmen (Fri, 22 Sep 2017 09:10:27 GMT):
Has joined the channel.

qsmen (Fri, 22 Sep 2017 09:12:55 GMT):
Hi, after a chaincode is update, can the old one still run? if the old one can run, would there exist confict in the states between two chaincode? Thank you

qsmen (Fri, 22 Sep 2017 09:12:55 GMT):
Hi, after a chaincode is updated, can the old one still run? if the old one can run, would there exist confict in the states between two chaincode? Thank you

qsmen (Fri, 22 Sep 2017 09:12:55 GMT):
Hi, after a chaincode is updated, can the old one still run? if the old one can run, would there exist confict in the states between these two chaincodes? Thank you

sanchezl (Fri, 22 Sep 2017 09:53:07 GMT):
No. Only the latest version can run. You can use the *init* function of the new version to migrate any existing state if needed.

qsmen (Fri, 22 Sep 2017 09:58:41 GMT):
@sanchezl oh, I see. Thank you,

sonnykui (Sat, 30 Sep 2017 05:43:36 GMT):
Has joined the channel.

cqyhm (Wed, 04 Oct 2017 01:45:02 GMT):
Has joined the channel.

jessica (Wed, 04 Oct 2017 19:36:39 GMT):
Has joined the channel.

dharmjit (Fri, 06 Oct 2017 03:46:12 GMT):
Hi All Are there any chaincode examples using java SDK for beginners? Thanks

sanchezl (Fri, 06 Oct 2017 14:04:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=7ocYzM7irNrRBS5T9) @dharmjit There is a separate channel for the Java SDK: #fabric-sdk-java

pradeeppadmarajaiah (Fri, 06 Oct 2017 15:43:10 GMT):
Has joined the channel.

sgdev (Mon, 09 Oct 2017 17:21:00 GMT):
Has joined the channel.

lmars (Tue, 10 Oct 2017 14:01:28 GMT):
Has joined the channel.

luomin (Thu, 12 Oct 2017 01:17:51 GMT):
Has joined the channel.

AnilOner (Sat, 14 Oct 2017 11:18:41 GMT):
Has joined the channel.

lmars (Sat, 14 Oct 2017 16:43:48 GMT):
Hi all! Who knows, is it possible to install JAR package instead of source files as chaincode?

robinrob (Mon, 16 Oct 2017 12:46:03 GMT):
Has joined the channel.

anillewis (Fri, 20 Oct 2017 13:29:59 GMT):
Has joined the channel.

anillewis (Fri, 20 Oct 2017 13:32:28 GMT):
Hi All, saw the latest document (http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html) that chaincode can now be written in Node.js....any idea when Java will be supported?

curtissummers (Fri, 20 Oct 2017 21:33:28 GMT):
Has joined the channel.

daygee (Mon, 23 Oct 2017 08:20:10 GMT):
Hello, I want to ask, as at v1.3, is java chaincode supported or must I still revert commit 29e0c4083f1f95d4f3513ecdfbbe7598e082238d to implement java chaincode?

daygee (Mon, 23 Oct 2017 08:20:58 GMT):
also, why was java chaincode disabled in the first place?

lmars (Mon, 23 Oct 2017 09:04:22 GMT):
@daygee, I tested 1.*0*.3 last week. It is still needed revert commit to enable java chaincode support. But I saw some commits in master branch to enable java chaincode support by build with special flag `experimental`. I don't know why Fabric developers decide that Node.js chaincode support is more important then Java one :(

lmars (Mon, 23 Oct 2017 09:04:22 GMT):
@daygee, I tested 1.*0*.3 last week. It is still needed revert commit to enable java chaincode support. But I saw some commits in master branch to enable java chaincode support by build with special flag `experimental`. I don't know why Fabric developers decide that Node.js chaincode support is more important than Java one :(

daygee (Mon, 23 Oct 2017 09:17:50 GMT):
@lmars I find it weird, from where I stand, alot of companies would jump at the opportunity to use java for chaincode development, especially if go and node are not part of their stack

anillewis (Mon, 23 Oct 2017 15:03:38 GMT):
@daygee @lmars ..yes this is weird that Node is supported and not Java chain code.. :(

daygee (Mon, 23 Oct 2017 15:03:50 GMT):
but why tho?

daygee (Mon, 23 Oct 2017 15:03:58 GMT):
that's what I'd like to know

anillewis (Mon, 23 Oct 2017 15:04:12 GMT):
last I heard was there were issues....bugs that needed 2 be fixed

anillewis (Mon, 23 Oct 2017 15:05:20 GMT):
https://jira.hyperledger.org/browse/FAB-1794?jql=project%20%3D%20FAB%20AND%20component%20%3D%20fabric-chaincode-java

lmars (Mon, 23 Oct 2017 15:39:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=zA7uodE6eXYHAQyTC) @daygee, It is the same for our company. Node.js and Golang is so exotic for us.

lmars (Mon, 23 Oct 2017 15:39:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=zA7uodE6eXYHAQyTC) @daygee, It is the same for our company. Node.js and Golang are so exotic for us.

hartimer (Wed, 25 Oct 2017 21:32:14 GMT):
Has joined the channel.

fbutnariu (Fri, 27 Oct 2017 15:30:35 GMT):
Has joined the channel.

JyothsnaGali (Fri, 03 Nov 2017 11:13:00 GMT):
Has joined the channel.

sanchezl (Fri, 03 Nov 2017 13:08:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=BQjbqYfKnmTiSKhPE) @daygee Java chaincode is still unsupported. In v1.1 you can recompile with experimental support to use Java chaincode, but it is still unsupported.

muralisr (Fri, 03 Nov 2017 13:41:54 GMT):
@sanchezl I did use it recently and had no difficulty getting it to work...( thanks for all the work there!)

kedarr (Fri, 10 Nov 2017 13:59:57 GMT):
Has joined the channel.

rajasekharpippalla (Tue, 14 Nov 2017 05:57:22 GMT):
Has joined the channel.

rajasekharpippalla (Tue, 14 Nov 2017 05:57:28 GMT):
Oracle ---->>> verification module JPMorgan ---->>> verification module 1. Oracle as well as JPMorgan has done transactions with verfication module. 2. Now verification module can have information for both Oracle and JPMorgan. 3. Oracle should not have access for JPMorgan data and vice-versa. How can we implement this kind of requirement? Can we implement this by using channels and how we can implement if we have any chances?

zlgonzalez (Sat, 18 Nov 2017 04:36:24 GMT):
Has joined the channel.

lkolisko (Sun, 19 Nov 2017 11:23:48 GMT):
Has joined the channel.

jackeyliliang (Fri, 24 Nov 2017 02:59:14 GMT):
Has joined the channel.

PetrVlasekCA (Fri, 24 Nov 2017 10:53:02 GMT):
Has joined the channel.

mne (Fri, 24 Nov 2017 13:36:50 GMT):
Has joined the channel.

dherykw (Mon, 27 Nov 2017 20:41:45 GMT):
Has joined the channel.

muasif80 (Tue, 28 Nov 2017 03:20:44 GMT):
Has joined the channel.

egeek (Wed, 29 Nov 2017 09:54:21 GMT):
Has joined the channel.

Russell-Columbia (Wed, 29 Nov 2017 22:59:02 GMT):
Has joined the channel.

albert.lacambra (Thu, 30 Nov 2017 11:05:42 GMT):
when running chaincode in devmode, I have the following error:

albert.lacambra (Thu, 30 Nov 2017 11:05:43 GMT):
Unable to connect to peer server: UNIMPLEMENTED: unknown service protos.ChaincodeSupport

albert.lacambra (Thu, 30 Nov 2017 11:05:55 GMT):
does someone has an idea what can happen?

albert.lacambra (Thu, 30 Nov 2017 11:07:00 GMT):
the same peer docker image in another host works

harinikandadai (Sat, 02 Dec 2017 21:38:30 GMT):
Has joined the channel.

bitdream (Mon, 04 Dec 2017 06:47:37 GMT):
Has joined the channel.

bitdream (Mon, 04 Dec 2017 07:49:07 GMT):
hi all,how can I get a java chaincode tar package.I have annotated the limitations of the Java language in the source code.When i used peer chaincode install , it returns ok ,but when I use peer chaincode instantiate ,it returns error,"Failed to generated platform-specific DockerFIle:Build file not found".I read the source ,it seems like parsing the tar package failure.

bitdream (Mon, 04 Dec 2017 07:49:07 GMT):
hi all,how can I get a java chaincode tar package in v1.0.2.I have annotated the limitations of the Java language in the source code.When i used peer chaincode install , it returns ok ,but when I use peer chaincode instantiate ,it returns error,"Failed to generated platform-specific DockerFIle:Build file not found".I read the source ,it seems like parsing the tar package failure.

bitdream (Mon, 04 Dec 2017 07:52:32 GMT):
it seems like there is a problem in the way of packing the java chaincode .What is the directory structure of the tar package or What tools can help me to make tar packages ?

bitdream (Mon, 04 Dec 2017 08:04:27 GMT):
i use v1.0.2

gauthampamu (Mon, 04 Dec 2017 21:04:11 GMT):
Has joined the channel.

Ann (Tue, 05 Dec 2017 07:49:49 GMT):
Has joined the channel.

kamisdy (Tue, 05 Dec 2017 08:51:36 GMT):
Has joined the channel.

kedarr (Tue, 05 Dec 2017 11:42:55 GMT):
Hello, I have setup the chaincode dev environment and my chaincode gets registered successfully and I see this message - "Got REGISTER for chaincodeID = name:" mycc" , sending back REGISTERED". But when I try to access the chain code using the API "http://localhost:7050/chain", I see this error "Printf -> DEBU 77a transport: http2Server.HandleStreams received bogus greeting from client: "GET /chain HTTP/1.1\r\nAcc""

jnichols181912 (Tue, 05 Dec 2017 16:55:22 GMT):
Has joined the channel.

jcbombardelli (Tue, 05 Dec 2017 17:29:48 GMT):
Has joined the channel.

muasif80 (Wed, 06 Dec 2017 12:22:19 GMT):
Has left the channel.

jcbombardelli (Thu, 07 Dec 2017 16:12:20 GMT):

deploy errror chaincode java

jcbombardelli (Thu, 07 Dec 2017 16:12:20 GMT):

deploy errror chaincode java

jcbombardelli (Thu, 07 Dec 2017 16:12:20 GMT):

deploy errror chaincode java

jyozq (Fri, 08 Dec 2017 08:19:30 GMT):
Has joined the channel.

vijay5378 (Sat, 09 Dec 2017 06:18:55 GMT):
Has joined the channel.

vijay5378 (Sat, 09 Dec 2017 06:21:35 GMT):
Hi, Have been trying to run the SimpleSample java chaincode...when I execute ava -jar chaincode.jar --peerAddress 127.0.0.1:7052, I keep getting an error: WARNING: [id: 0xe3613e46, L:0.0.0.0/0.0.0.0:53180 ! R:/127.0.0.1:7052] Sending GOAWAY failed: lastStreamId '0', errorCode '2', debugData 'Broken pipe'. Forcing shutdown of the connection. java.nio.channels.ClosedChannelException Dec 09, 2017 6:16:53 AM io.netty.util.concurrent.PromiseNotifier operationComplete WARNING: Failed to mark a promise as failure because it's done already: DefaultChannelPromise@19605cb4(failure: java.io.IOException: Broken pipe) java.io.IOException: Broken pipe I am using v1.1.0-preview here.

vijay5378 (Sat, 09 Dec 2017 06:21:50 GMT):
any pointers s to where I can check?

vijay5378 (Sat, 09 Dec 2017 06:26:20 GMT):
I have enabled tls encryption

vijay5378 (Sat, 09 Dec 2017 07:14:28 GMT):
this is the complete error: ubuntu@a99dd5:~/fabric/go/src/github.com/hyperledger/fabric/examples/chaincode/java/SimpleSample/build$ java -jar chaincode.jar --peerAddress 127.0.0.1:7052 Dec 09, 2017 7:05:19 AM org.hyperledger.fabric.shim.ChaincodeBase newPeerClientConnection INFO: Configuring channel connection to peer. Dec 09, 2017 7:05:19 AM org.hyperledger.fabric.shim.ChaincodeBase newPeerClientConnection INFO: TLS is enabled Dec 09, 2017 7:05:20 AM org.hyperledger.fabric.shim.ChaincodeBase newPeerClientConnection INFO: TLS context built: io.netty.handler.ssl.OpenSslClientContext@363cde0b Dec 09, 2017 7:05:20 AM org.hyperledger.fabric.shim.ChaincodeBase chatWithPeer INFO: Connecting to peer. Dec 09, 2017 7:05:20 AM io.grpc.internal.TransportSet$1 call INFO: Created transport io.grpc.netty.NettyClientTransport@16a5a253(/127.0.0.1:7052) for /127.0.0.1:7052 Dec 09, 2017 7:05:20 AM io.grpc.internal.TransportSet$TransportListener transportShutdown INFO: Transport io.grpc.netty.NettyClientTransport@16a5a253(/127.0.0.1:7052) for /127.0.0.1:7052 is being shutdown Dec 09, 2017 7:05:20 AM io.grpc.internal.TransportSet$TransportListener transportTerminated INFO: Transport io.grpc.netty.NettyClientTransport@16a5a253(/127.0.0.1:7052) for /127.0.0.1:7052 is terminated Dec 09, 2017 7:05:20 AM org.hyperledger.fabric.shim.ChaincodeBase$1 onError SEVERE: Unable to connect to peer server: UNAVAILABLE

fabcan (Mon, 11 Dec 2017 15:17:20 GMT):
Has joined the channel.

guolidong (Tue, 12 Dec 2017 06:02:56 GMT):
Has joined the channel.

HubertYoung (Tue, 12 Dec 2017 08:45:57 GMT):
hi,i got an error when runing end2endit.

HubertYoung (Tue, 12 Dec 2017 08:45:59 GMT):
Sending instantiateProposalRequest to all peers with arguments: a and b set to 100 and 200 respectively 2017-12-12 08:42:25,389 main ERROR Channel:2285 - Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=Error starting container: API error (404): {"message":"No such network: sdkintegration_default"} , cause=null} java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: Error starting container: API error (404): {"message":"No such network: sdkintegration_default"} at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:2285) at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:1401) at org.hyperledger.fabric.sdkintegration.End2endIT.runChannel(End2endIT.java:381) at org.hyperledger.fabric.sdkintegration.End2endIT.setup(End2endIT.java:210) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

HubertYoung (Tue, 12 Dec 2017 08:54:38 GMT):
hi,guys.i got an error when runing End2endIT.

HubertYoung (Tue, 12 Dec 2017 08:55:05 GMT):
2017-12-12 08:53:54,575 main ERROR Channel:2285 - Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=Error starting container: API error (404): {"message":"No such network: sdkintegration_default"} , cause=null} java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: Error starting container: API error (404): {"message":"No such network: sdkintegration_default"} at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:2285) at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:1401) at org.hyperledger.fabric.sdkintegration.End2endIT.runChannel(End2endIT.java:381) at org.hyperledger.fabric.sdkintegration.End2endIT.setup(End2endIT.java:210) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: io.grpc.StatusRuntimeException: UNKNOWN: Error starting container: API error (404): {"message":"No such network: sdkintegration_default"} at io.grpc.Status.asRuntimeException(Status.java:526) at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:427) at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:419) at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:60) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:493) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$500(ClientCallImpl.java:422) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:525) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:102) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

albert.lacambra (Thu, 14 Dec 2017 07:39:07 GMT):
Hi, someone knows how to restart chaincode container on java (production)? When peers restart CC containers stop, and then it is not possible to reboot them. 2017-12-14 07:25:11.819 UTC [chaincode] HandleMessage -> ERRO 13c0 []Failed to trigger FSM event REGISTER: transition canceled with error: peer will not accepting external chaincode connection name:"DemandChaincode:1" (except in dev mode)

albert.lacambra (Thu, 14 Dec 2017 07:39:18 GMT):
instantiate again with som version also does not work

mvaibhavshah (Mon, 18 Dec 2017 13:20:05 GMT):
Has joined the channel.

zhishui (Tue, 19 Dec 2017 08:10:50 GMT):
Has joined the channel.

NeerajKumar (Tue, 19 Dec 2017 13:09:07 GMT):
Has joined the channel.

NeerajKumar (Tue, 19 Dec 2017 13:09:10 GMT):
hey , somebody plz help, i am unable to deploy java chaincode, error is log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.shim.ChaincodeBase). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "Thread-0" java.lang.NoSuchMethodError: io.grpc.netty.NettyChannelBuilder.build()Lio/grpc/internal/ManagedChannelImpl; at org.hyperledger.fabric.shim.ChaincodeBase.newPeerClientConnection(ChaincodeBase.java:170) at org.hyperledger.fabric.shim.ChaincodeBase.lambda$start$0(ChaincodeBase.java:94) at java.lang.Thread.run(Thread.java:748) not able to find anything on google

atian15 (Thu, 21 Dec 2017 02:14:15 GMT):
Has joined the channel.

janbols (Thu, 21 Dec 2017 11:41:14 GMT):
Has joined the channel.

sbelko (Thu, 21 Dec 2017 15:16:31 GMT):
Has joined the channel.

potluri84 (Thu, 21 Dec 2017 17:45:01 GMT):
Has joined the channel.

ArnabChatterjee (Fri, 22 Dec 2017 00:20:29 GMT):
Hello people, I am facing an issue with chaincode instantiation. Environment : Org1, Org 2 Scenatio21

ArnabChatterjee (Fri, 22 Dec 2017 00:20:29 GMT):
Hello people, I am facing an issue with chaincode instantiation. Environment : Org1 - peer0 - peer1 Org 2 - peer0 - peer1 Scenario: 1. Install CC on Org1 -> peer0 & peer1 2. Install CC on Org2 -> peer0 & peer1 3. Instantiate CC on Org2 4. docker kill Org1.peer0 container 5. docker start Org1.peer0 container --> peer container started but CC container did not start 6. docker kill Org2.peer0 container 7. docker start Org2.peer0 container --> peer & CC container started successfully I checked the logs and found the following error: ``` 2017-12-21 08:31:18.797 UTC [chaincode] ExecuteChaincode -> ERRO ac0 Error executing chaincode: Could not get deployment transaction from LSCC for mycc:v0 - Get ChaincodeDeploymentSpec for mycc/skkchannel from LSCC error: chaincode fingerprint mismatch data mismatch 2017-12-21 08:31:18.797 UTC [endorser] callChaincode -> DEBU ac1 Exit 2017-12-21 08:31:18.797 UTC [endorser] simulateProposal -> ERRO ac2 failed to invoke chaincode name:"mycc" on transaction 70ccee281fd614962924b5bebeef2ab5fc34a5d9d9a785c2751a1267d75eb8a4, error: Error executing chaincode: Could not get deployment transaction from LSCC for mycc:v0 - Get ChaincodeDeploymentSpec for mycc/skkchannel from LSCC error: chaincode fingerprint mismatch data mismatch 2017-12-21 08:31:18.797 UTC [endorser] simulateProposal -> DEBU ac3 Exit ``` Any clues ? I checked : https://jira.hyperledger.org/browse/FAB-7065 & https://jira.hyperledger.org/browse/FAB-5476

janbols (Sat, 23 Dec 2017 21:29:08 GMT):
@NeerajKumar , NoSuchMethodError is probable due to a version mismatch of the grpc library fabric is expecting and the library that's being used. Please check the pom files to see if the versions match.

janbols (Sat, 23 Dec 2017 21:29:45 GMT):
I'm using io.grpc:grpc-core:1.5.0 and haven't expercienced any problems

janbols (Sat, 23 Dec 2017 21:29:50 GMT):
Hope this helps

Cavan2477 (Tue, 26 Dec 2017 01:58:33 GMT):
Has joined the channel.

Roger (Wed, 27 Dec 2017 03:28:13 GMT):
Has joined the channel.

Kaltrak (Fri, 29 Dec 2017 02:53:26 GMT):
Has joined the channel.

Abhijeet.K (Sat, 30 Dec 2017 14:16:42 GMT):
Has joined the channel.

mvaibhavshah (Wed, 03 Jan 2018 20:40:58 GMT):
Has left the channel.

daudahmad (Tue, 09 Jan 2018 08:58:41 GMT):
Will Java chain code ever be supported or has JavaScript chosen for this instead?

italycappuccino (Tue, 09 Jan 2018 11:06:28 GMT):
Has joined the channel.

cchalc (Tue, 09 Jan 2018 20:44:49 GMT):
Has joined the channel.

Devender_Singh (Thu, 18 Jan 2018 05:14:48 GMT):
Has joined the channel.

kbkontrakt (Thu, 18 Jan 2018 06:49:02 GMT):
Has joined the channel.

james3443112 (Thu, 18 Jan 2018 06:51:06 GMT):
Has joined the channel.

SharanRajani (Thu, 18 Jan 2018 08:47:34 GMT):
Has joined the channel.

ParveenPandit (Thu, 18 Jan 2018 09:07:01 GMT):
Has joined the channel.

Manish.Sharma (Thu, 18 Jan 2018 09:14:03 GMT):
Has joined the channel.

jks3462 (Thu, 18 Jan 2018 11:31:58 GMT):
Has joined the channel.

bryancan (Thu, 18 Jan 2018 17:58:30 GMT):
Has joined the channel.

Subramanyam (Fri, 19 Jan 2018 11:51:46 GMT):
Has joined the channel.

Brucepark (Sat, 20 Jan 2018 06:14:53 GMT):
Has joined the channel.

zhmz1326 (Mon, 22 Jan 2018 09:36:48 GMT):
Has joined the channel.

blockhash (Thu, 25 Jan 2018 05:30:28 GMT):
Has joined the channel.

VipulMakwana (Thu, 25 Jan 2018 08:47:17 GMT):
Has joined the channel.

VipulMakwana (Thu, 25 Jan 2018 08:48:25 GMT):
Is this channel even active?

sanchezl (Thu, 25 Jan 2018 20:08:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=3Cogmg7v7YAZdWpRc) @daudahmad There are still plans to support it eventually.

samuel.alencar (Thu, 25 Jan 2018 20:42:41 GMT):
doesn't java chaincode already supported ?

sanchezl (Sun, 28 Jan 2018 03:16:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=4ByZvWtkNoMsw626b) @samuel.alencar There is a Java SDK for invoking chaincode, but you can only officially write chaincode in Go and JavaScript.

gdinhof (Mon, 29 Jan 2018 09:56:19 GMT):
Has left the channel.

samuel.alencar (Mon, 29 Jan 2018 19:29:33 GMT):
aaah

samuel.alencar (Mon, 29 Jan 2018 20:01:48 GMT):
i understood wrong

alexcrownus (Tue, 30 Jan 2018 20:24:50 GMT):
Has joined the channel.

MartinKrmer (Tue, 30 Jan 2018 20:46:35 GMT):
Has joined the channel.

dharuq (Wed, 31 Jan 2018 10:22:10 GMT):
Has joined the channel.

PhineasClick (Wed, 31 Jan 2018 14:50:49 GMT):
Has joined the channel.

albert.lacambra (Wed, 07 Feb 2018 20:28:03 GMT):
hi

albert.lacambra (Wed, 07 Feb 2018 20:28:05 GMT):
one question about interchaincode calls what happens if CC1 calls CC2 and then CC2 calls CC1?

masanchez (Wed, 14 Feb 2018 11:31:26 GMT):
Has joined the channel.

DipenChawla (Wed, 14 Feb 2018 19:48:41 GMT):
Has joined the channel.

fabcan (Fri, 16 Feb 2018 11:04:27 GMT):
Has left the channel.

M4rcelNo4ck (Sat, 17 Feb 2018 18:06:17 GMT):
Has joined the channel.

vitiko (Mon, 19 Feb 2018 11:42:49 GMT):
Has joined the channel.

DongkyuPark98 (Wed, 21 Feb 2018 06:51:48 GMT):
Has joined the channel.

donald86trung (Wed, 21 Feb 2018 14:10:35 GMT):
Has joined the channel.

yzhivkov (Sun, 25 Feb 2018 18:30:59 GMT):
Has joined the channel.

Kasio24 (Mon, 26 Feb 2018 22:43:50 GMT):
Has joined the channel.

kelvinzhong (Tue, 27 Feb 2018 02:02:43 GMT):
@sanchezl hi, i wonder when would java chain code might be supported?

sanchezl (Tue, 27 Feb 2018 02:10:59 GMT):
Vote/Comment on your interest at https://jira.hyperledger.org/browse/FAB-8063

VikasJakhar (Tue, 27 Feb 2018 20:09:06 GMT):
Has joined the channel.

trixromero (Wed, 28 Feb 2018 20:18:24 GMT):
Has joined the channel.

trixromero (Wed, 28 Feb 2018 20:30:46 GMT):
Hello, anyone knows if is possible to use java sdk to write chain code for compose ? instead use js for that

anil.k (Sun, 04 Mar 2018 18:11:20 GMT):
Has joined the channel.

akshay.sood (Mon, 05 Mar 2018 15:18:59 GMT):
Has joined the channel.

dave.enyeart (Tue, 06 Mar 2018 17:05:44 GMT):
Has joined the channel.

rjones (Tue, 06 Mar 2018 18:13:16 GMT):
dave.enyeart

dave.enyeart (Tue, 06 Mar 2018 20:07:23 GMT):
sanchezl

dave.enyeart (Tue, 06 Mar 2018 20:07:29 GMT):
muralisr

ohori (Sun, 11 Mar 2018 12:13:11 GMT):
Has joined the channel.

akshay.sood (Mon, 12 Mar 2018 15:31:39 GMT):
byfn always shows ```ERROR: for peer1.debutinfotech.com Cannot start service peer1.debutinfotech.com: driver failed programming external connectivity on endpoint DebutInfotechPeer1 (f808c3c48dfebbe508c66b81aeaceb137656520998d5089d895b698822910149): Bind for 0.0.0.0:1051 failed: port is already allocated``` even if the ports are changed

papegaaij (Tue, 13 Mar 2018 08:13:08 GMT):
Has joined the channel.

papegaaij (Tue, 13 Mar 2018 10:16:24 GMT):
is there a built version of fabric with java chaincode enabled or is this only possible at the moment by building yourself?

jspark84 (Tue, 13 Mar 2018 13:14:36 GMT):
Has joined the channel.

pankajcheema (Tue, 13 Mar 2018 14:08:33 GMT):
Has joined the channel.

pankajcheema (Tue, 13 Mar 2018 14:09:09 GMT):
anyone facing this issue?? ```can't load package: package github.com/chaincode/chaincode_example02/go: no Go files in /opt/gopath/src/github.com/chaincode/chaincode_example02/go```

pankajcheema (Tue, 13 Mar 2018 14:09:22 GMT):
any suggestions?

pankajcheema (Tue, 13 Mar 2018 14:09:22 GMT):
`2018-03-14 10:40:41.111 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc` `2018-03-14 10:40:41.111 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc` `Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network DellIntelProject_byfn not found"}`

pankajcheema (Tue, 13 Mar 2018 14:45:57 GMT):
FIXED

sanchezl (Tue, 13 Mar 2018 15:30:25 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=F5zAgxQyHMHERXxnp) @pankajcheema You must still build it yourself.

pankajcheema (Tue, 13 Mar 2018 15:30:46 GMT):
@sanchezl I have fixed this issue

pankajcheema (Tue, 13 Mar 2018 15:30:51 GMT):
Thanks :)

sanchezl (Tue, 13 Mar 2018 16:40:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=38kE5XcBd6nyFaDDi) @papegaaij whoops... I meant to reply to this message! :laughing:

mikail 2 (Wed, 14 Mar 2018 07:06:34 GMT):
Has joined the channel.

papegaaij (Wed, 14 Mar 2018 08:39:56 GMT):
@sanchezl ok, thanks for the info

pankajcheema (Wed, 14 Mar 2018 10:42:44 GMT):
2018-03-14 10:40:41.111 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2018-03-14 10:40:41.111 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {"message":"network DellIntelProject_byfn not found"}

pankajcheema (Wed, 14 Mar 2018 10:43:02 GMT):
anyone facing the above issue please reply

pankajcheema (Wed, 14 Mar 2018 10:43:15 GMT):
if solved

jyothsnalogisa (Thu, 15 Mar 2018 05:36:51 GMT):
Has joined the channel.

yopep (Fri, 16 Mar 2018 04:00:57 GMT):
Has joined the channel.

ShobhitSrivastava (Fri, 16 Mar 2018 10:25:21 GMT):
Has joined the channel.

ShobhitSrivastava (Fri, 16 Mar 2018 13:14:12 GMT):
@kpkulkarni, i also followed the step as you did, after issuing deploy command I am getting " Error: Java chaincode is work-in-progress and disabled "

ShobhitSrivastava (Fri, 16 Mar 2018 13:15:06 GMT):

1.0 issue.JPG

ShobhitSrivastava (Fri, 16 Mar 2018 13:15:40 GMT):
@sanchezl Cam you also check it

ShobhitSrivastava (Fri, 16 Mar 2018 13:15:40 GMT):
@sanchezl Can you also check it

sanchezl (Fri, 16 Mar 2018 13:18:55 GMT):
@ShobhitSrivastava , which version of fabric are you working on?

Mihai.A (Fri, 16 Mar 2018 14:54:37 GMT):
Has joined the channel.

ShobhitSrivastava (Sat, 17 Mar 2018 10:27:59 GMT):
@sanchezl I am using x86_64-1.1.0-rc1. Do you need any more information on this?

ShobhitSrivastava (Sat, 17 Mar 2018 10:36:52 GMT):
@eric.wall ..where have to specify --lang as Java in source code, can you confirm the file name?

VinayChaudhary (Sat, 17 Mar 2018 15:47:59 GMT):
Has joined the channel.

mujji89 (Tue, 20 Mar 2018 16:52:45 GMT):
Has joined the channel.

ShikarSharma (Tue, 20 Mar 2018 22:43:21 GMT):
Has joined the channel.

albert.lacambra (Fri, 23 Mar 2018 20:05:44 GMT):
Hi are the experimental features enabled per default on the docker hub images? i.e. https://hub.docker.com/r/hyperledger/fabric-****/tags/x86_64-1.1.0

sanchezl (Fri, 23 Mar 2018 21:36:00 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Gvo89L8FByBStxFQW) @albert.lacambra No.

chessequality (Mon, 26 Mar 2018 07:12:14 GMT):
Has joined the channel.

akapustin (Tue, 27 Mar 2018 09:39:32 GMT):
Hi. Why was java marked as experimental?

mujji89 (Tue, 27 Mar 2018 14:09:15 GMT):
Hi, Can anyone confirm me if a peer who is in 2 channels (both have different chain code) can query one chain code from other as read only in 1.1?

thoduerr (Tue, 27 Mar 2018 21:53:00 GMT):
Has joined the channel.

ghindle (Wed, 28 Mar 2018 09:34:40 GMT):
Has joined the channel.

nirro (Thu, 29 Mar 2018 07:17:36 GMT):
Has joined the channel.

C0rWin (Thu, 29 Mar 2018 07:24:52 GMT):
Has joined the channel.

tkg (Thu, 29 Mar 2018 22:00:58 GMT):
Has joined the channel.

kpbird (Fri, 30 Mar 2018 03:31:47 GMT):
Has joined the channel.

JiuZhuYou (Sat, 31 Mar 2018 10:41:09 GMT):
Has joined the channel.

BilalAhmad (Tue, 03 Apr 2018 13:44:46 GMT):
Has joined the channel.

Rumeel_Hussain (Tue, 03 Apr 2018 15:04:28 GMT):
Has joined the channel.

gokulkrishna (Tue, 03 Apr 2018 20:15:59 GMT):
Has joined the channel.

xiao8 (Wed, 04 Apr 2018 01:39:34 GMT):
Has joined the channel.

raphaelbenoit (Wed, 04 Apr 2018 08:52:18 GMT):
Has joined the channel.

souvik (Fri, 06 Apr 2018 06:41:02 GMT):
Has joined the channel.

kkado (Sat, 07 Apr 2018 04:12:35 GMT):
Has joined the channel.

zhenbing (Sun, 08 Apr 2018 03:19:27 GMT):
Has joined the channel.

luckydogchina (Sun, 08 Apr 2018 07:23:19 GMT):
Has joined the channel.

vick (Mon, 09 Apr 2018 09:37:03 GMT):
Has joined the channel.

dayubian (Mon, 09 Apr 2018 11:40:47 GMT):
Has left the channel.

BhaveshPatadiya (Thu, 12 Apr 2018 11:54:58 GMT):
Has joined the channel.

HoneyShah (Thu, 12 Apr 2018 11:55:19 GMT):
Has joined the channel.

Clod16 (Tue, 17 Apr 2018 09:48:48 GMT):
Has joined the channel.

shubham_aggarwal (Tue, 17 Apr 2018 12:04:28 GMT):
Has joined the channel.

papegaaij (Wed, 18 Apr 2018 07:44:26 GMT):
hi, why is java chaincode built from source on the nodes rather than deploying prebuilt jars?

papegaaij (Wed, 18 Apr 2018 07:45:50 GMT):
this process greatly limits a developer in what is possible as you can only depend on artifacts that are publicly available

papegaaij (Wed, 18 Apr 2018 07:47:17 GMT):
also it makes it very hard (if not impossible) to prove that all peers run the same code

papegaaij (Wed, 18 Apr 2018 07:48:02 GMT):
it is rather easy to add a docker container to the network on a peer that resolves as maven central and replace some of the dependencies (even the compiler) used by the chaincode

papegaaij (Wed, 18 Apr 2018 07:49:08 GMT):
with a signed jar this is not possible

sanchezl (Wed, 18 Apr 2018 13:05:56 GMT):
@papegaaij comment on FAB-8063 and/or open an issue. I've tried to change this, see https://gerrit.hyperledger.org/r/c/17765/.

papegaaij (Wed, 18 Apr 2018 13:10:28 GMT):
@sanchezl if i understand correctly, that change request changes exactly that?

papegaaij (Wed, 18 Apr 2018 13:10:45 GMT):
i'm not that good with go though :)

sanchezl (Wed, 18 Apr 2018 13:12:13 GMT):
Yes, changes it so that we simply take a tar, extract it, and then run `/chaincode/chaincode` (a script you provide).

sanchezl (Wed, 18 Apr 2018 13:12:45 GMT):
It's an example of one way to have it done, you would just have to convince the fabric community its the right thing to do.

papegaaij (Wed, 18 Apr 2018 13:12:58 GMT):
ok, that makes sense, for now i've just added a non-pom and package my jar directly in build/chaincode.jar

papegaaij (Wed, 18 Apr 2018 13:13:27 GMT):
you are saying that the fabric community is against this?

sanchezl (Wed, 18 Apr 2018 13:14:50 GMT):
Just saying I haven't been able to push it through on my own.

papegaaij (Wed, 18 Apr 2018 13:28:31 GMT):
@C0rWin can you tell me what state the current java shim is in at https://github.com/hyperledger/fabric-chaincode-java ?

FarshadFalaki (Thu, 19 Apr 2018 06:15:57 GMT):
Has joined the channel.

Titret (Thu, 19 Apr 2018 23:35:27 GMT):
Has joined the channel.

remmeier (Fri, 20 Apr 2018 06:35:02 GMT):
Has joined the channel.

albert.lacambra (Mon, 23 Apr 2018 13:49:51 GMT):
there is a way to set default encoding to a java-cc?

albert.lacambra (Mon, 23 Apr 2018 13:50:04 GMT):
through OS or as asystem param?

albert.lacambra (Mon, 23 Apr 2018 13:50:23 GMT):
it is possible to get params when running the CC=

albert.lacambra (Mon, 23 Apr 2018 13:50:24 GMT):
?

hosemose (Tue, 24 Apr 2018 04:59:44 GMT):
Has joined the channel.

kpbird (Thu, 26 Apr 2018 06:26:39 GMT):
Hello, I have developed business network using Hyperledger Composer and deployed on Hyperledger Fabric. Now I want to access same business network using Hyperledger Fabric Java SDK. Is it possible?

chainsaw (Fri, 27 Apr 2018 15:51:53 GMT):
Has joined the channel.

papegaaij (Mon, 30 Apr 2018 09:34:27 GMT):
what's the expected format of the `compositeKey` parameter of `getStateByPartialCompositeKey`? If I pass the result of `createCompositeKey(TYPE, attribute).toString()`, I get the following exception: ```nl.topicus.keyhub.cc.InvalidTransactionException: First character of the key [groupaccount8ab755c2-fa4e-4c45-b187-85e9d8c6efd0] contains a 'U+000000' which is not allowed at nl.topicus.keyhub.cc.txstrategies.ProcessUpdateGroupAccount.validate(ProcessUpdateGroupAccount.java:97) at nl.topicus.keyhub.cc.KeyHubChaincode.doInvoke(KeyHubChaincode.java:97) at nl.topicus.keyhub.cc.KeyHubChaincode.invoke(KeyHubChaincode.java:48) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleTransaction$6(Handler.java:240) at java.lang.Thread.run(Thread.java:748) Caused by: org.hyperledger.fabric.shim.ledger.CompositeKeyFormatException: First character of the key [groupaccount8ab755c2-fa4e-4c45-b187-85e9d8c6efd0] contains a 'U+000000' which is not allowed at org.hyperledger.fabric.shim.ledger.CompositeKeyFormatException.forSimpleKey(CompositeKeyFormatException.java:21) at org.hyperledger.fabric.shim.ledger.CompositeKey.validateSimpleKeys(CompositeKey.java:71) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getStateByRange(ChaincodeStubImpl.java:182) at org.hyperledger.fabric.shim.impl.ChaincodeStubImpl.getStateByPartialCompositeKey(ChaincodeStubImpl.java:205) at nl.topicus.keyhub.cc.txstrategies.ProcessUpdateGroupAccount.validate(ProcessUpdateGroupAccount.java:63) ... 4 more ```

albert.lacambra (Mon, 30 Apr 2018 11:50:22 GMT):
I am having the following problem on java CC when using tls

albert.lacambra (Mon, 30 Apr 2018 11:50:25 GMT):
Caused by: java.security.cert.CertificateParsingException: Empty issuer DN not allowed in X509Certificates

albert.lacambra (Mon, 30 Apr 2018 11:50:53 GMT):
opening the cert I see that

albert.lacambra (Mon, 30 Apr 2018 11:50:55 GMT):

Clipboard - 30. April 2018 13:50

albert.lacambra (Mon, 30 Apr 2018 11:51:44 GMT):
where is this certificate of the CC comming from? It doesn't look like has been created by cryptomaterial

albert.lacambra (Mon, 30 Apr 2018 11:51:54 GMT):
Some idea how to fix it?

acbellini (Tue, 01 May 2018 21:09:44 GMT):
Has joined the channel.

kevin-s-wang (Thu, 03 May 2018 02:37:59 GMT):
Has joined the channel.

danyll (Fri, 04 May 2018 10:03:18 GMT):
Has joined the channel.

sbaxter (Fri, 04 May 2018 12:16:17 GMT):
Has joined the channel.

Subramanyam (Tue, 08 May 2018 06:02:24 GMT):
Has left the channel.

Starseven (Tue, 08 May 2018 11:52:02 GMT):
Has joined the channel.

akshaylawange001 (Wed, 09 May 2018 19:39:38 GMT):
Has joined the channel.

versus (Mon, 14 May 2018 09:05:20 GMT):
Has joined the channel.

IgorSim (Mon, 14 May 2018 09:05:34 GMT):
Has joined the channel.

remmeier (Thu, 17 May 2018 11:59:14 GMT):
Hi, I would have question about the official Java support. https://jira.hyperledger.org/browse/FAB-8063?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel moved the Java support from 1.2 to 1.3. Is there any early support in 1.2 or not too complicate to enable/start working? and is 1.3 considered final because it has already been moved from 1.0 to 1.1 and 1.1 to 1.2? In general it would be great to see generic support, e.g. a docker image (or better the coordinates of a kubernetes service) that implements a given grpc contract in whatever languge deemed useful.

qsmen (Mon, 21 May 2018 05:25:17 GMT):
hi, in fabric the term chaincode is used instead of smartcontract. But I think the chaincode can function as a smart contract. However, the example in fabric release document hehaves not like any smartcontract, more like an api. In bitcoin the scripts hehave like a smartconstract. In ethereum, the smart constracts behave like smartcontract. I suggest there should be some example chaincode hehaving more like a smartcontract

albert.lacambra (Mon, 21 May 2018 13:35:27 GMT):
Hi

albert.lacambra (Mon, 21 May 2018 13:35:37 GMT):
A question about chaincode invocations

albert.lacambra (Mon, 21 May 2018 13:35:48 GMT):
on the method "default Response invokeChaincodeWithStringArgs(String chaincodeName, List args, String channel) ";

albert.lacambra (Mon, 21 May 2018 13:35:57 GMT):
why is this channel exactly there?

albert.lacambra (Mon, 21 May 2018 13:36:10 GMT):
it is possible to produce concurrent calls using different channels?

hrt031293 (Wed, 23 May 2018 08:56:52 GMT):
Has joined the channel.

nissshh (Thu, 24 May 2018 11:40:28 GMT):
Has joined the channel.

nvmadhav (Fri, 25 May 2018 02:38:24 GMT):
Has joined the channel.

pathfinder2104 (Fri, 25 May 2018 12:38:28 GMT):
Has joined the channel.

pathfinder2104 (Fri, 25 May 2018 12:42:00 GMT):
Hi

pathfinder2104 (Fri, 25 May 2018 12:42:13 GMT):
Is the chaincode support for Java available in Fabric 1.1 ?

pathfinder2104 (Fri, 25 May 2018 12:42:19 GMT):
or when it will be available ?

hrt031293 (Fri, 25 May 2018 13:03:47 GMT):
Can anyone tell me, that how can I use my local storage file as a chaincode, for the installation of the chaincode?

nissshh (Fri, 25 May 2018 14:59:04 GMT):
Hi All , what is the best way to start writing chain code in Java. I am a newbie so want to start.

hrt031293 (Mon, 28 May 2018 09:29:14 GMT):
Hello, What should be the value of the `-p` in the command, for installing the chaincode? The command is "peer chaincode install".

MeghaGupta (Mon, 28 May 2018 14:09:25 GMT):
Has joined the channel.

phgurgel (Mon, 28 May 2018 19:52:45 GMT):
Has joined the channel.

peter.li (Tue, 29 May 2018 00:32:33 GMT):
Has joined the channel.

AlexanderZhovnuvaty (Wed, 30 May 2018 11:37:35 GMT):
Has joined the channel.

VinayChaudharyOfficial (Fri, 01 Jun 2018 04:56:30 GMT):
Has joined the channel.

Aswath8687 (Fri, 01 Jun 2018 20:12:01 GMT):
Has joined the channel.

albert.lacambra (Sat, 02 Jun 2018 18:45:02 GMT):
Hi,

albert.lacambra (Sat, 02 Jun 2018 18:45:55 GMT):
I am trying to make the new shim work with the version 1.1.0 and the methdoes getStateByPartialCompositeKey and ByRange do not works

albert.lacambra (Sat, 02 Jun 2018 18:46:40 GMT):
I have followed the recommedation of @muralisr to update it as is in GO or the GetByState but it has not worked out

albert.lacambra (Sat, 02 Jun 2018 18:46:43 GMT):

Clipboard - 2 juny 2018 20:46

albert.lacambra (Sat, 02 Jun 2018 18:47:24 GMT):
does someone has an idea what the issue could be? @sanchezl @C0rWin thanks for your help :D

jimthematrix (Sun, 03 Jun 2018 12:17:50 GMT):
Has left the channel.

albert.lacambra (Sun, 03 Jun 2018 13:40:03 GMT):
got it

albert.lacambra (Sun, 03 Jun 2018 13:40:16 GMT):

Clipboard - 3 juny 2018 15:40

albert.lacambra (Sun, 03 Jun 2018 13:41:24 GMT):
the uses of compsiteKey validator does not allow to send composite keys

albert.lacambra (Sun, 03 Jun 2018 13:41:29 GMT):
will set it later to jita

albert.lacambra (Sun, 03 Jun 2018 13:41:39 GMT):
commit 9f2f4f9843d669e74adec11ccd80773fefe10e86

broomweed (Mon, 04 Jun 2018 19:21:28 GMT):
Has joined the channel.

broomweed (Wed, 06 Jun 2018 18:00:30 GMT):
Hi, I'm trying to run the basic Java chaincode example in Fabric 1.1 (compiled in experimental mode), but every time I try to run `peer chaincode instantiate`, I get the error: `Error: Error endorsing chaincode: rpc error: code = Unknown desc = failed to init chaincode: handler not found for chaincode SimpleSample:0`. How can I fix this?

broomweed (Wed, 06 Jun 2018 18:00:36 GMT):
I can provide more information if necessary.

Adam_Hardie (Thu, 07 Jun 2018 14:28:50 GMT):
Has joined the channel.

abraham (Fri, 08 Jun 2018 05:42:55 GMT):
Has joined the channel.

MeghaGupta (Mon, 11 Jun 2018 08:49:58 GMT):
Hi everyone, I need help with My asset managment project in block chain. For example lets say I am storng one json object in my bockchain. I have chain code written for that. with setter method. I am refering as in doc http://hyperledger-fabric.readthedocs.io/en/release-1.1/chaincode4ade.html#simple-asset-chaincode

MeghaGupta (Mon, 11 Jun 2018 08:50:57 GMT):
but I have a doubt after setting one value. Let say my assets1 have A:20 b:30 and asset2 has A:40,b:50

MeghaGupta (Mon, 11 Jun 2018 08:51:53 GMT):
now after deploying chain code when i call init method with value asset1 its working propery. even I can update the value of asset1.

MeghaGupta (Mon, 11 Jun 2018 08:53:37 GMT):
But now how I should stote asset2. if I am doing that with init method its giving error that chain code is already deployed. If I use set method then it will set in previous deployed assets1.any pointer will be very helpful

MeghaGupta (Mon, 11 Jun 2018 08:55:04 GMT):
How I can maintain these assets in future also. That measn if I need to modified assets1 then I should able to that. I am ok if each transaction will create new block, but it should not update assets2

MeghaGupta (Mon, 11 Jun 2018 08:55:40 GMT):
please help me .. This killing me

MeghaGupta (Mon, 11 Jun 2018 09:17:37 GMT):
I am using fiber-sdk client api which is provided in test bundle of fiber-sdk-java

Adam_Hardie (Wed, 13 Jun 2018 09:45:32 GMT):
hi , i have a question about java clients using channels as a type of messaging bus.. is it possible to send serialized objects through the SDK as a transaction? I see there is setArgBytes , is it possible to use this? Is there any example projects using hyperledger in this way? Also, is there a full javadoc for the hyperledger API?

paulananth (Fri, 15 Jun 2018 12:18:53 GMT):
Has joined the channel.

Adam_Hardie (Fri, 15 Jun 2018 14:08:21 GMT):
I am trying to register a java client to listen to chaincode events , but i cant see anything of that nature in the eventhub class, how can I specifically register to events, I have tried via the blocklistener but am getting blocks with empty chaincode events. Thanks

Adam_Hardie (Fri, 15 Jun 2018 14:28:58 GMT):
Eg in this E2E test, https://github.com/hyperledger/fabric-sdk-java/blob/master/src/test/java/org/hyperledger/fabric/sdkintegration/End2endIT.java we have the method channel.registerChaincodeEventListener

Adam_Hardie (Fri, 15 Jun 2018 15:17:02 GMT):
^ ignore - i was using 1.0.1 over 1.1.0 :)

sgiessmann (Tue, 19 Jun 2018 12:19:51 GMT):
Has joined the channel.

mbwhite (Wed, 20 Jun 2018 09:14:26 GMT):
Has joined the channel.

sureshtedla (Sat, 23 Jun 2018 23:29:28 GMT):
Has joined the channel.

sigma67 (Sun, 01 Jul 2018 19:50:50 GMT):
Has joined the channel.

suchith.arodi (Tue, 03 Jul 2018 18:24:06 GMT):
Has joined the channel.

BabuPallam (Wed, 04 Jul 2018 22:20:56 GMT):
Has joined the channel.

Adam_Hardie (Tue, 10 Jul 2018 14:26:46 GMT):
we are writing unit tests - i noticed we cant use the constructor for TransactionEvent or ChaincodeEvent

Adam_Hardie (Tue, 10 Jul 2018 14:27:10 GMT):
it makes it quite difficult to unit test what happens when a completableFuture comes back from HL as invalid ....

Adam_Hardie (Tue, 10 Jul 2018 14:27:17 GMT):
does anyone have a suggestion for this ?

sanchezl (Tue, 10 Jul 2018 14:27:35 GMT):
try the #fabric-sdk-java channel

Adam_Hardie (Tue, 10 Jul 2018 14:28:50 GMT):
thanks!

pasimoes (Tue, 10 Jul 2018 15:35:47 GMT):
Has joined the channel.

KaranBlockchain (Wed, 11 Jul 2018 13:09:22 GMT):
Has joined the channel.

KaranBlockchain (Wed, 11 Jul 2018 13:13:03 GMT):
Hi All, I am new to Fabric and working upon a POC for a supply chain solution. I have set up Fabric and also deployed a sample network. However I am not sure how to start developing the POC using java. I have eclipse and have expertise in Java but any step by step guide for a sample java application will be helpful. Can anyone please help?

sanchezl (Wed, 11 Jul 2018 13:15:27 GMT):
You use the #fabric-sdk-java to write a java application (e.g. to invoke or query the ledger). I wouldn't recommend writing your chaincode in java, as it is not yet officially supported.

KaranBlockchain (Wed, 11 Jul 2018 13:22:03 GMT):
Thanks Sanchezl. I am having some difficulties in deploying my chaincode on existing fabric instance. I have written a sample node.js program of Hello world but I am struggling to find any leads of how to deploy chain code on the network. I downloaded few sample networks and created an archive and deployed it on playground. I got complete folder structure in my VScode editor but I am confused of how to start with my own sample application which can have a moderator and 2 participants. Please help.

sanchezl (Wed, 11 Jul 2018 13:30:17 GMT):
@KaranBlockchain , head over to the #fabric-chaincode-dev and/or #fabric-sdk-node channels. There should be some helpful people on those channels.

KaranBlockchain (Wed, 11 Jul 2018 13:33:12 GMT):
Thanks Sanchezl. Hope it helps.

aatkddny (Thu, 12 Jul 2018 02:57:27 GMT):
Has joined the channel.

aatkddny (Thu, 12 Jul 2018 03:04:20 GMT):
Looking for a little guidance wrt https://jira.hyperledger.org/browse/FAB-9234 and https://jira.hyperledger.org/browse/FAB-8063 Is it actually going to make it into 1.3? And be usable? We're writing chaincode in Go currently and it's taking too long to do anything more than a simple asset store and throw a few events. Mainly because we're pretty much a java shop at this point. I can punt for a month if it's actually going to come out in 1.3. I'd rather do that than divert a front ui dev to look at the javascript implementation of same, but need something out the door, so timing is an issue for us.

BhaskarNarayan (Thu, 12 Jul 2018 10:31:37 GMT):
Has joined the channel.

aatkddny (Fri, 13 Jul 2018 14:04:43 GMT):
So I'm guessing the lack of response *is* my answer here.

C0rWin (Sat, 14 Jul 2018 11:40:26 GMT):
@aatkddny there is work in progress to make java chaincode shim available and enabled for 1.3

andrew-coleman (Mon, 16 Jul 2018 12:07:37 GMT):
Has joined the channel.

Adam_Hardie (Wed, 18 Jul 2018 13:09:23 GMT):
ChaincodeEventListener seems to be calling received() twice per transaction (when there is only one event per tx).. can anyone advise why this would be?

samir.tata (Thu, 19 Jul 2018 03:56:46 GMT):
Has joined the channel.

tballast (Thu, 19 Jul 2018 13:37:01 GMT):
Has joined the channel.

rajanashutosh (Mon, 23 Jul 2018 17:39:59 GMT):
Has joined the channel.

laurensdegilde (Tue, 24 Jul 2018 14:36:03 GMT):
Has joined the channel.

laurensdegilde (Tue, 24 Jul 2018 14:36:15 GMT):
Hi Guys, i am new to this chat so excuse me if my question is not well formulated. Is their a possibility to manuelly enable java chaincode when using hyperledger fabric images with version 1.2.0? If yes, is their some sort of documention to view the steps needed to be taken to enable java chaincode?

rajanashutosh (Wed, 25 Jul 2018 07:03:49 GMT):
Hi all, I am new to this platform. Goal is to expose java rest apis which could interact with blockchain fabric network. Leads to any tutorials and documentations would be highly appreciated.

tballast (Wed, 25 Jul 2018 08:22:42 GMT):
@laurensdegilde this is all I've found: https://stackoverflow.com/questions/45815669/java-haincode-is-work-in-progress-and-disabled

laurensdegilde (Wed, 25 Jul 2018 11:21:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=c39F33vngXSFsjYx7) @tballast How come they disabled it in a later version while it was enabled in a previous version(1.0). Thats not how new patches work, am i correct?

tballast (Wed, 25 Jul 2018 12:04:13 GMT):
@laurensdegilde they give a basic explanation here: https://github.com/hyperledger/fabric/releases/tag/v1.0.0-beta Ultimately, it looks like they wanted to release 1.0.0 but the java chaincode support wasn't complete, so instead of releasing 1.0 with a partially implemented feature they just disabled the feature to work on it later.

tballast (Wed, 25 Jul 2018 12:05:10 GMT):
I don't know that it was ever supported in 1.0, was it? I thought it was only around for 0.6.

alaric (Fri, 27 Jul 2018 14:48:52 GMT):
Has joined the channel.

muralisr (Sun, 05 Aug 2018 15:53:05 GMT):
@laurensdegilde @tballast per https://jira.hyperledger.org/browse/FAB-8063 java CC support is slated for 1.3.0

tballast (Mon, 06 Aug 2018 07:40:02 GMT):
@muralisr Thanks, that's great to hear!

qsmen (Tue, 07 Aug 2018 07:42:41 GMT):
hi, suppose a key, just as the car in fabcar, has two attributes, say attr1 and attr2. My question is: can the two attributes be writen by two client application respectively? and after the second attibute is writen and ledger is updated, the event can be received by a third client application? Thank you.

qsmen (Tue, 07 Aug 2018 07:42:41 GMT):
hi, suppose a key, just as the car in fabcar, has two attributes, say attr1 and attr2. My question is: can the two attributes be writen by two client applications respectively? and after the second attibute is writen and the ledger is updated, the event can be received by a third client application? Thank you.

aatkddny (Tue, 07 Aug 2018 13:12:43 GMT):
is there an early access version anywhere? we are keen to kick the tires vs the chaincode we are laboriously cranking out in Go.

paulm (Wed, 08 Aug 2018 09:06:46 GMT):
Has joined the channel.

mcoblenz (Wed, 08 Aug 2018 15:27:11 GMT):
I've had some success with Java chaincode on 1.1.0, but it requires preparing a jar file and deploying it directly.

mcoblenz (Wed, 08 Aug 2018 15:27:34 GMT):
It seems like the long-term plan involves packaging up source and a gradle buildfile? https://docs.google.com/document/d/1BKTqjB8x3pTBrHn9H0aHv1mG883Iyf3Q5xEBjcWs6hs/edit#heading=h.5ia9isxhnl2o

mcoblenz (Wed, 08 Aug 2018 15:32:17 GMT):
There's a project, but it hasn't had any changes in the last month: https://github.com/hyperledger/fabric-chaincode-java

mcoblenz (Wed, 08 Aug 2018 15:36:50 GMT):
Looks like Gennady Laventman is the one working on this: https://jira.hyperledger.org/browse/FAB-11303?jql=project%20%3D%20Fabric%20AND%20statusCategory%20!%3D%20Done%20AND%20NOT%20(component%20%3D%20fabric-sdk-go%20OR%20component%20%3D%20fabric-sdk-py)%20AND%20assignee%20%3D%20gennadyl%20ORDER%20BY%20updatedDate%20DESC

bdjidi (Tue, 21 Aug 2018 22:48:23 GMT):
Has joined the channel.

xxjoshuaxx (Thu, 30 Aug 2018 12:21:56 GMT):
Has joined the channel.

Subhankar 3 (Thu, 06 Sep 2018 06:22:02 GMT):
Has joined the channel.

kisna (Thu, 06 Sep 2018 21:07:10 GMT):
Has joined the channel.

kisna (Thu, 06 Sep 2018 21:08:50 GMT):
Trying to see, if the latest version supports Java chaincode ok, I checked out the head master 1.3 SNAPSHOT responses = client.sendInstallProposal(installProposalRequest, peers); *Java chaincode is work-in-progress and disabled* am I missing something in 1.3.0-SNAPSHOT - fabric-java-sdk?

C0rWin (Sun, 09 Sep 2018 22:57:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=X3wCxBHZDmCEyTMpF) @kisna what version of fabric peer are you using?

nrohith (Mon, 10 Sep 2018 14:26:14 GMT):
Has joined the channel.

vikas.kundz (Tue, 11 Sep 2018 13:03:44 GMT):
Has joined the channel.

JaydipMakadia (Thu, 13 Sep 2018 13:11:01 GMT):
Has joined the channel.

kisna (Tue, 18 Sep 2018 01:55:56 GMT):
@C0rWin I just used the 1.3 SNAPSHOT of fabric-java-sdk integration ./restart script and I had various versions, so I had to remove all images and restart the script SSH into one of the peers root@e30174bc1ee7:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer version peer: Version: 1.2.0 Commit SHA: cae2ad4 Go version: go1.10 OS/Arch: linux/amd64 Experimental features: false Chaincode: Base Image Version: 0.4.10 Base Docker Namespace: hyperledger Base Docker Label: org.hyperledger.fabric Docker Namespace: hyperledger

kisna (Tue, 18 Sep 2018 01:56:18 GMT):
is this what you were looking for @C0rWin ?

sjeetSingh (Wed, 19 Sep 2018 01:47:09 GMT):
Has joined the channel.

sjeetSingh (Wed, 19 Sep 2018 15:22:46 GMT):
Howdy! new member to the community! I need some guidance ramping myself up to speed. any help? I've set up codebase etc

kisna (Wed, 19 Sep 2018 19:00:59 GMT):
don't give up like me @sjeetSingh

kisna (Wed, 19 Sep 2018 19:00:59 GMT):
don't give up @sjeetSingh, keep us posted if you were able to use java-chaincode

sjeetSingh (Thu, 20 Sep 2018 02:11:49 GMT):
Thanks kisna.. I am currently watching the Get Involved video but I'd also like to start contributing. any baby-step tasks for me?

kisna (Thu, 20 Sep 2018 06:15:57 GMT):
wait, were you able to use java chaincode @sjeetSingh ?

sjeetSingh (Thu, 20 Sep 2018 15:47:52 GMT):
@kisna I have build the project but now if I want to learn to ramp myself up to speed, what should I do? :sweat_smile:

kisna (Thu, 20 Sep 2018 20:42:16 GMT):
were you able to run the End2End test as discussed on github?

kisna (Thu, 20 Sep 2018 20:42:28 GMT):
I was unable to use Java chaincode, GO/node work fine

tballast (Fri, 21 Sep 2018 07:28:39 GMT):
Is anyone here aware of when v1.3 will be released? I haven't seen a hard release date set, but maybe they haven't actually set one.

mastersingh24 (Fri, 21 Sep 2018 08:56:04 GMT):
@tballast - we have been trying to deliver new releases quarterly. The 1.3 release date is still set for the end of this month

C0rWin (Fri, 21 Sep 2018 11:25:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=itgED6vtXJy2t63bR) @kisna the commit enabling java shim on peer side was recently committed

aatkddny (Fri, 21 Sep 2018 13:45:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=YHqRTyHMbhTRZKrHC) Is BMX adopting one iteration back still or is that fungible?

sstone1 (Fri, 21 Sep 2018 15:56:18 GMT):
Has joined the channel.

sstone1 (Fri, 21 Sep 2018 16:01:52 GMT):
@gennadyl (and others?) am trying to use the Java chaincode in 1.3 from Nexus... posted a comment on JIRA here: https://jira.hyperledger.org/browse/FAB-8063?focusedCommentId=50967&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-50967

gennadyl (Fri, 21 Sep 2018 16:01:52 GMT):
Has joined the channel.

sstone1 (Fri, 21 Sep 2018 16:01:55 GMT):
anyone have any ideas?

kisna (Fri, 21 Sep 2018 23:28:32 GMT):
Can you guys please add some Java chain code examples as well in the fabric-sdk-java

gennadyl (Sat, 22 Sep 2018 17:38:56 GMT):
@sstone1 Do you still have the problem? Sorry for late response, I was offline during weekend

gennadyl (Sat, 22 Sep 2018 18:23:26 GMT):
@sstone1 Will check with Ramesh

dave.enyeart (Sun, 23 Sep 2018 18:22:51 GMT):
@C0rWin @gennadyl @rameshthoomu For the issue of wrong java chaincode artifacts posted to maven, is there a Jira open?

rameshthoomu (Sun, 23 Sep 2018 18:22:52 GMT):
Has joined the channel.

C0rWin (Sun, 23 Sep 2018 18:29:21 GMT):
Nope as far as I know

gennadyl (Sun, 23 Sep 2018 18:31:38 GMT):
Not yet. Wanted to verify with @rameshthoomu first.

gennadyl (Sun, 23 Sep 2018 18:48:25 GMT):
Will open jira once will get home

rameshthoomu (Sun, 23 Sep 2018 21:48:01 GMT):
https://jira.hyperledger.org/browse/FAB-12112 - Update groupid in fabric-chaincode-java repo.. This will unblock us to request sonatype team to create a new repo in maven central https://jira.hyperledger.org/browse/FAB-12088 - Publish javaenv images on s390x https://jira.hyperledger.org/browse/FABCI-112 - Update development builds to publish to nexus with correct artifactid, groupid and version (In-Progress)

rameshthoomu (Sun, 23 Sep 2018 21:48:01 GMT):
https://jira.hyperledger.org/browse/FAB-12112 - Update groupid in fabric-chaincode-java repo.. This will unblock us to request sonatype team to create a new repo in maven central https://jira.hyperledger.org/browse/FAB-12088 - Publish javaenv images on s390x (I think this will come Post 1.3) https://jira.hyperledger.org/browse/FABCI-112 - Update development builds to publish to nexus with correct artifactid, groupid and version (In-Progress)

rameshthoomu (Sun, 23 Sep 2018 21:48:01 GMT):
https://jira.hyperledger.org/browse/FAB-12112 - Update groupid in fabric-chaincode-java repo.. This will unblock us to request sonatype team to create a new repo in maven central (https://issues.sonatype.org/browse/OSSRH-42867) https://jira.hyperledger.org/browse/FAB-12088 - Publish javaenv images on s390x (I think this will come Post 1.3) https://jira.hyperledger.org/browse/FABCI-112 - Update development builds to publish to nexus with correct artifactid, groupid and version (In-Progress)

dave.enyeart (Mon, 24 Sep 2018 00:04:52 GMT):
Thanks @rameshthoomu . @gennadyl @C0rWin please use the jiras and this channel to keep us updated, so that we don't lose any time.

rameshthoomu (Mon, 24 Sep 2018 00:09:46 GMT):
@gennadyl FABCI-112 is done.. Please see the jar's available here https://nexus.hyperledger.org/content/repositories/snapshots/org/hyperledger/fabric/

gennadyl (Mon, 24 Sep 2018 07:18:20 GMT):
I created 4 sub-tasks for FAB-12112

gennadyl (Mon, 24 Sep 2018 07:21:11 GMT):
FAB-12115 - updates in shim code FAB-12116 - updated in fabric source tree - unit-tests and integration tests data FAB-12117 - update java cc samples in node.js sdk, if any FAB-12118 - update java cc samples in java sdk, if any

gennadyl (Mon, 24 Sep 2018 07:22:35 GMT):
FAB-12115 is blocker for the rest of sub-tasks, we can't merge them before 12115 is merged

gennadyl (Mon, 24 Sep 2018 09:08:54 GMT):
Added 2 more subtasks - for fabric-samples and fabric-test

dave.enyeart (Mon, 24 Sep 2018 09:56:06 GMT):
FAB-12115 is merged now

dave.enyeart (Mon, 24 Sep 2018 09:56:19 GMT):
@C0rWin can you review the others?

C0rWin (Mon, 24 Sep 2018 14:25:38 GMT):
@dave.enyeart yes

C0rWin (Mon, 24 Sep 2018 14:25:38 GMT):
@dave.enyeart yes, need one more endorsement for: https://gerrit.hyperledger.org/r/#/c/26499/

dave.enyeart (Mon, 24 Sep 2018 16:14:19 GMT):
@C0rWin @gennadyl We are discussing the java chaincode dependency with @bretharrison and @rameshthoomu for node sdk. Since the node sdk uses javaenv image rather than java chaincode jars, can the dependencies here be removed?

bretharrison (Mon, 24 Sep 2018 16:14:19 GMT):
Has joined the channel.

dave.enyeart (Mon, 24 Sep 2018 16:14:23 GMT):
https://github.com/hyperledger/fabric-sdk-node/blob/master/test/fixtures/src/java_cc/example_cc/build.gradle#L16-L19

dave.enyeart (Mon, 24 Sep 2018 16:48:52 GMT):
discussed with @rickr ... actually we think only the junit dependency can be removed, this one: https://github.com/hyperledger/fabric-sdk-node/blob/master/test/fixtures/src/java_cc/example_cc/build.gradle#L18

gennadyl (Mon, 24 Sep 2018 17:37:27 GMT):
Yes, you right, only junit dependency can be removed

gennadyl (Mon, 24 Sep 2018 17:38:57 GMT):
Any java chaincode, no matter how deployed (cli, java sdk, node sdk, etc), should be valid and correct (compilable) gradle java project

rickr (Mon, 24 Sep 2018 18:30:20 GMT):
@dave.enyeart all I said was to remove the junit reference :wink:

kisna (Mon, 24 Sep 2018 22:44:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=sfmwhHdNczA8BLgLi) Ola, does this mean the new fabrik-sdk-java snapshot End2End test is Java chain code compatible?

MikeyGarcia (Tue, 25 Sep 2018 13:17:47 GMT):
Has joined the channel.

iRajesha (Fri, 28 Sep 2018 05:16:01 GMT):
Has joined the channel.

am (Fri, 28 Sep 2018 15:31:42 GMT):
Has joined the channel.

KaranBlockchain (Sun, 30 Sep 2018 19:31:34 GMT):
Hi All, I created a java client to perform Query, Invoke but while running the client on Linux using Bash I am getting below error : ``` Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperledger/fabric/sdk/User ```

KaranBlockchain (Sun, 30 Sep 2018 19:31:34 GMT):
Hi All, I created a java client to perform Query, Invoke but while running the client on Linux using Bash I am getting below error : ``` Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperledger/fabric/sdk/User ``` complete stacktrace ``` bash BlockchainTest.sh /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/bcpkix-jdk14-1.57.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/bcprov-jdk15on-1.59.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/commons-codec-1.11.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/commons-compress-1.5.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/fabric-sdk-java-1.2.1.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/httpclient-4.1.1.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/httpclient-4.5.6.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/httpcore-4.4.10.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/javax.json-1.1.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/netty-common-5.0.0.Alpha2.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/org-apache-commons-logging.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/TestBlockchainkaranl.jar u1 Username Y Filestatus Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperledger/fabric/sdk/User at Testing.main(Testing.java:26) Caused by: java.lang.ClassNotFoundException: org.hyperledger.fabric.sdk.User at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 1 more ^C ```

KaranBlockchain (Sun, 30 Sep 2018 21:36:03 GMT):
Hi All, I created a java client to perform Query, Invoke but while running the client on Linux using Bash I am getting below error : ``` Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperledger/fabric/sdk/User ``` complete stacktrace ``` bash BlockchainTest.sh /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/bcpkix-jdk14-1.57.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/bcprov-jdk15on-1.59.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/commons-codec-1.11.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/commons-compress-1.5.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/fabric-sdk-java-1.2.1.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/httpclient-4.1.1.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/httpclient-4.5.6.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/httpcore-4.4.10.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/javax.json-1.1.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/netty-common-5.0.0.Alpha2.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/ChainLib/org-apache-commons-logging.jar /home/ubuntu/KaranHyperledger/java/Blockchaintool/TestBlockchainkaranl.jar u1 Username Y Filestatus Exception in thread "main" java.lang.NoClassDefFoundError: org/hyperledger/fabric/sdk/User at Testing.main(Testing.java:26) Caused by: java.lang.ClassNotFoundException: org.hyperledger.fabric.sdk.User at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 1 more ``` The client code works fine in eclipse, the issue is coming while running in Linux terminal

Mozer18 (Tue, 02 Oct 2018 08:09:07 GMT):
Has joined the channel.

Bartb0 (Tue, 02 Oct 2018 10:52:52 GMT):
Has joined the channel.

cinnnn (Wed, 03 Oct 2018 07:55:29 GMT):
Has joined the channel.

ffiore81 (Thu, 04 Oct 2018 15:07:43 GMT):
Has joined the channel.

NoLimitHoldem (Fri, 05 Oct 2018 06:47:01 GMT):
Has joined the channel.

qiangqinqq (Sat, 06 Oct 2018 07:35:25 GMT):
Has joined the channel.

KaranBlockchain (Mon, 08 Oct 2018 12:24:15 GMT):
Hi All,

KaranBlockchain (Mon, 08 Oct 2018 12:24:15 GMT):
Hi All,

KaranBlockchain (Mon, 08 Oct 2018 12:24:15 GMT):
Hi All, After making some progress I was able to connect through the connection profile but am receiving below error. Kindly help: CAorg.hyperledger.fabric.sdk.NetworkConfig$CAInfo@96532d6 CAorg.hyperledger.fabric.sdk.NetworkConfig$CAInfo@96532d6 Oct 08, 2018 12:07:24 PM org.hyperledger.fabric_ca.sdk.HFCAClient enroll SEVERE: sun.security.validator.ValidatorException: PKIX path building failed: su n.security.provider.certpath.SunCertPathBuilderException: unable to find valid c ertification path to requested target javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

JohnR (Mon, 08 Oct 2018 14:11:25 GMT):
Has joined the channel.

gennadyl (Mon, 08 Oct 2018 14:11:25 GMT):
@KaranBlockchain I think it is java sdk issue. @rickr can you look into it

gennadyl (Mon, 08 Oct 2018 14:11:59 GMT):
This channel is more for developing chaincode in java, not client

rickr (Mon, 08 Oct 2018 16:39:48 GMT):
Im thinking your client CA certificate is not valid to authenticate the server

dthom (Mon, 08 Oct 2018 18:31:02 GMT):
Has joined the channel.

kisna (Mon, 08 Oct 2018 19:33:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=sfmwhHdNczA8BLgLi) @dave.enyeart , thanks, so the latest node-sdk works with java chaincode (before java-sdk) :)?

dave.enyeart (Mon, 08 Oct 2018 23:33:46 GMT):
Both java and node sdk should work with java chaincode now

dave.enyeart (Mon, 08 Oct 2018 23:33:46 GMT):
@kisna Both java and node sdk should work with java chaincode now

kisna (Wed, 10 Oct 2018 05:18:26 GMT):
oh awesome, pulling latest now

dave.enyeart (Wed, 10 Oct 2018 23:43:40 GMT):
@rameshthoomu what is the latest on maven central for publishing java shim? @C0rWin FYI

HoneyShah (Thu, 11 Oct 2018 04:08:35 GMT):
Is there any sample for java chaincode?

C0rWin (Thu, 11 Oct 2018 07:22:45 GMT):
@dave.enyeart @rameshthoomu I cannot find 1.3.0 release in maven central? are we also publishing to jcenter?

rameshthoomu (Thu, 11 Oct 2018 10:19:22 GMT):
@C0rWin We didn't publish 1.3 to Maven central. FAB-12379. Yes we published to to nexus. Please see the link here https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-chaincode-java/

C0rWin (Thu, 11 Oct 2018 10:38:53 GMT):
@rameshthoomu who is taking care of FAB-12379 and is there any estimate?

C0rWin (Thu, 11 Oct 2018 10:39:13 GMT):
does nexus publicly available?

C0rWin (Thu, 11 Oct 2018 10:39:29 GMT):
like, now does that help, pushing to nexus?

rameshthoomu (Thu, 11 Oct 2018 10:39:35 GMT):
I have to check with @gennadyl .. will talk to him today

C0rWin (Thu, 11 Oct 2018 10:40:38 GMT):
@rameshthoomu why do you need to talk to @gennadyl? as far as I know he cannot influence CI... do you need his assistance?

rameshthoomu (Thu, 11 Oct 2018 10:41:03 GMT):
Yes

C0rWin (Thu, 11 Oct 2018 10:41:45 GMT):
@rameshthoomu can you elaborate, what exactly do you need?

rameshthoomu (Thu, 11 Oct 2018 10:41:58 GMT):
I don’t see gradle build setting file in the repo.. setting files are not ready for CI...

rameshthoomu (Thu, 11 Oct 2018 10:42:28 GMT):
So have to check with him what to do and how to proceed on this as this is new to me..

gennadyl (Thu, 11 Oct 2018 10:43:37 GMT):
@rameshthoomu Can we upload jar file manually? Using some UI from sonatype?

rameshthoomu (Thu, 11 Oct 2018 10:45:07 GMT):
Yes but before that we have to keep jar file in maven staging repo for that we should have a gradle build setting file to push with sonatype credentials

rameshthoomu (Thu, 11 Oct 2018 10:45:46 GMT):
We did this process for java sdk with maven commands

rameshthoomu (Thu, 11 Oct 2018 10:46:03 GMT):
Using Pom.xml file and settings file

dave.enyeart (Thu, 11 Oct 2018 10:46:33 GMT):
we could potentially update manually just for 1.3.0 while we develop the script for next time...

C0rWin (Thu, 11 Oct 2018 10:47:27 GMT):
let me take a look on what needed

C0rWin (Thu, 11 Oct 2018 10:47:48 GMT):
probably will find some tutorial or guide on how it has to be handled

C0rWin (Thu, 11 Oct 2018 10:48:09 GMT):
> We did this process for java sdk with maven commands @rameshthoomu can you point me to this section in SDK?

dave.enyeart (Thu, 11 Oct 2018 10:48:29 GMT):
@rameshthoomu do you expect a difference between how java sdk does it, and how hava shim will do it?

dave.enyeart (Thu, 11 Oct 2018 10:48:29 GMT):
@rameshthoomu do you expect a difference between how java sdk does it, and how java shim will do it?

dave.enyeart (Thu, 11 Oct 2018 10:49:31 GMT):
sounds like gradle is the new part...

rameshthoomu (Thu, 11 Oct 2018 10:49:34 GMT):
https://github.com/hyperledger/fabric-sdk-java/blob/master/settings.xml https://github.com/hyperledger/fabric-sdk-java/blob/master/pom.xml

rameshthoomu (Thu, 11 Oct 2018 10:50:00 GMT):
these are for fabric-sdk-java using maven

rameshthoomu (Thu, 11 Oct 2018 10:50:16 GMT):
and see the doc here https://github.com/hyperledger/fabric-sdk-java/blob/master/docs/java_sdk_release.md

dave.enyeart (Thu, 11 Oct 2018 10:50:47 GMT):
ok, let's have @C0rWin and @gennadyl look into it as the java experts, and then @rameshthoomu can apply their findings to CI

C0rWin (Thu, 11 Oct 2018 10:53:00 GMT):
so wait

rameshthoomu (Thu, 11 Oct 2018 10:53:00 GMT):
yes gralde is the new part here and I am new to this process. First we have to setup settings file/required files in repo and then follow the steps to publish

C0rWin (Thu, 11 Oct 2018 10:53:06 GMT):
just to understand the process

C0rWin (Thu, 11 Oct 2018 10:53:22 GMT):
do we need to publish to nexus prior to maven central?

C0rWin (Thu, 11 Oct 2018 10:53:36 GMT):
or these two independent tasks?

rameshthoomu (Thu, 11 Oct 2018 10:53:48 GMT):
these are two independent tasks..

dave.enyeart (Thu, 11 Oct 2018 10:54:15 GMT):
snapshots and finals go to nexus. just finals go to maven, right?

dave.enyeart (Thu, 11 Oct 2018 10:54:15 GMT):
snapshots and finals go to nexus. just finals go to central repository, right?

gennadyl (Thu, 11 Oct 2018 10:54:21 GMT):
I think those guides cover it all: https://central.sonatype.org/pages/ossrh-guide.html https://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.html https://central.sonatype.org/pages/releasing-the-deployment.html

gennadyl (Thu, 11 Oct 2018 10:55:26 GMT):
Second one cover manually signing and upload to staging repo Third one cover how to release from staging repo

gennadyl (Thu, 11 Oct 2018 10:57:09 GMT):
First contains general videos about whole process

gennadyl (Thu, 11 Oct 2018 11:00:27 GMT):
This manual should cover gradle staging signing and upload: https://central.sonatype.org/pages/gradle.html

C0rWin (Thu, 11 Oct 2018 12:03:16 GMT):
@rameshthoomu can you please take a look on: https://gerrit.hyperledger.org/r/26927?

C0rWin (Thu, 11 Oct 2018 12:03:32 GMT):
there is a signing configuration which has to be configured

rameshthoomu (Thu, 11 Oct 2018 12:04:51 GMT):
Looks good..

C0rWin (Thu, 11 Oct 2018 12:05:21 GMT):
you should be able to publish with `gradle :fabric-chaincode-shim:uploadArchives` command

C0rWin (Thu, 11 Oct 2018 12:05:49 GMT):
here is the information about signing plugin and required configs: https://docs.gradle.org/current/userguide/signing_plugin.html

C0rWin (Thu, 11 Oct 2018 12:06:21 GMT):
@rameshthoomu please keep me updated whenever it worked so we can finalize settings and merge them permanently into repo

C0rWin (Thu, 11 Oct 2018 12:06:43 GMT):
\\cc @dave.enyeart

rameshthoomu (Thu, 11 Oct 2018 12:07:00 GMT):
I think we need gradle.properties file also

C0rWin (Thu, 11 Oct 2018 12:08:01 GMT):
well, if you can prepare it within home directory I'm fine with it

C0rWin (Thu, 11 Oct 2018 12:09:02 GMT):
was looking how to read those parameters w/ gradle w/o a need to use `gradle.properties`, unfortunately didn't find straight forward way of doing it

C0rWin (Thu, 11 Oct 2018 12:09:33 GMT):
but https://gerrit.hyperledger.org/r/26927 should be an a shape where you can just provide required config and being able to publish on MC

rameshthoomu (Thu, 11 Oct 2018 13:47:46 GMT):
@C0rWin I will try to publish without gradle.properties file.. I will export values to OSSRH and OSSRH_PASSWORD variables and try to publish

rameshthoomu (Thu, 11 Oct 2018 13:48:07 GMT):
Could you please check the build failure..

C0rWin (Thu, 11 Oct 2018 14:15:38 GMT):
> Cannot perform signing task ':fabric-chaincode-shim:signArchives' because it has no configured signatory

C0rWin (Thu, 11 Oct 2018 14:15:51 GMT):
^^^ @rameshthoomu missing signing configuration

rameshthoomu (Thu, 11 Oct 2018 14:20:29 GMT):
again I am new to gradle build process.. Signing required only when publishing artifacts right.. Why do we need that in the verification?

rameshthoomu (Thu, 11 Oct 2018 15:41:28 GMT):
@C0rWin @gennadyl I cherry-picked your patch and created gradle.properties file with OSSRH userid, password and rinktoken and ran `gradle uploadArchives`

rameshthoomu (Thu, 11 Oct 2018 15:42:14 GMT):
This is my directory structure here ``` rameshs-mbp:.m2 thoomu@us.ibm.com$ pwd /Users/thoomu@us.ibm.com/.m2 rameshs-mbp:.m2 thoomu@us.ibm.com$ ls fabric-chaincode-java gradle.properties repository ```

rameshthoomu (Thu, 11 Oct 2018 15:46:24 GMT):
not sure what's wrong here ``` FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':fabric-chaincode-shim:signArchives'. > Cannot perform signing task ':fabric-chaincode-shim:signArchives' because it has no configured signatory ```

gennadyl (Thu, 11 Oct 2018 16:52:22 GMT):
@rameshthoomu Can you try to put gradle.properties file to `USER_HOME/.gradle`

gennadyl (Thu, 11 Oct 2018 16:52:28 GMT):
folder

gennadyl (Thu, 11 Oct 2018 16:52:49 GMT):
or to `fabric-chaincode-java` folder

gennadyl (Thu, 11 Oct 2018 16:53:25 GMT):
or `fabric-chaincode-java/fabric-chaincode-shim` folder.

gennadyl (Thu, 11 Oct 2018 16:53:48 GMT):
Actually, put it to all those folders, at least one will work

gennadyl (Thu, 11 Oct 2018 16:55:08 GMT):
``` Actually there are 3 places where gradle.properties can be placed: Under gradle user home directory defined by the GRADLE_USER_HOME environment variable, which if not set defaults to USER_HOME/.gradle The sub-project directory (fabric-chaincode-java/fabric-chaincode-shim in your case) The root project directory (under fabric-chaincode-java) ```

gennadyl (Thu, 11 Oct 2018 16:59:42 GMT):
@rameshthoomu I am not home yet, will try to follow on mobile

rameshthoomu (Thu, 11 Oct 2018 18:06:49 GMT):
ok let me try that

rameshthoomu (Thu, 11 Oct 2018 19:20:47 GMT):
@C0rWin added comments in the patchset..

C0rWin (Thu, 11 Oct 2018 20:37:56 GMT):
@rameshthoomu thanks, I've answered you

qubing (Fri, 12 Oct 2018 03:09:32 GMT):
Has joined the channel.

qubing (Fri, 12 Oct 2018 03:30:55 GMT):
I found chaincode-java has not been published in Maven repository. We can use Nexus repository before that.

qubing (Fri, 12 Oct 2018 03:31:06 GMT):
``` nexus Nexus Repository https://nexus.hyperledger.org/content/groups/public/ ```

mrudav.shukla (Fri, 12 Oct 2018 04:08:04 GMT):
Has joined the channel.

gennadyl (Sat, 13 Oct 2018 13:40:57 GMT):
@qubing yes, you right. But use gradle, please, not maven. I had some problem with maven ’shade’ plugin

tkg (Sat, 13 Oct 2018 16:46:28 GMT):
How to use ABAC in the java chaincode?

yacovm (Sun, 14 Oct 2018 08:04:49 GMT):
Has joined the channel.

C0rWin (Sun, 14 Oct 2018 08:07:06 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=cqojiYrDdamc6DPCp) @tkg There is no corresponding implementation of ABAC for java.

tkg (Sun, 14 Oct 2018 14:32:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=kyFSS5HeFHff6A9Bi) @C0rWin Any plans for implementing the ABAC support in the near future?

rameshthoomu (Tue, 16 Oct 2018 19:08:48 GMT):
@C0rWin @dave.enyeart @gennadyl Published 1.3.0 fabric-chaincode-java shim and protos jar's to oss.sonatype repository https://oss.sonatype.org/content/repositories/orghyperledgerfabric-chaincode-java-1001/org/hyperledger/fabric-chaincode-java/

rameshthoomu (Tue, 16 Oct 2018 19:09:39 GMT):
I have requested team to sync this with maven central. This usually takes time to get in sync with central repository..

rameshthoomu (Tue, 16 Oct 2018 19:09:44 GMT):
I will let you know once done

gennadyl (Tue, 16 Oct 2018 19:23:46 GMT):
@rameshthoomu thanks for update. So, after sync we will have it published to maven central?

rameshthoomu (Tue, 16 Oct 2018 19:56:29 GMT):
yes

C0rWin (Tue, 16 Oct 2018 20:34:39 GMT):
@rameshthoomu will it work automatically from now on? i.e. was configuration problem solved?

rameshthoomu (Tue, 16 Oct 2018 20:35:06 GMT):
I will let you know.. The sync process is in-progress

rameshthoomu (Tue, 16 Oct 2018 20:35:11 GMT):
this will take some time..

rameshthoomu (Tue, 16 Oct 2018 20:35:38 GMT):
meanwhile could you please try fetching these jar's automatcally instead of nexus

C0rWin (Tue, 16 Oct 2018 20:36:05 GMT):
yes, sure

rameshthoomu (Wed, 17 Oct 2018 00:54:57 GMT):
@C0rWin @gennadyl 1.3.0 fabric-chaincode-java release artifacts are published to maven central

rameshthoomu (Wed, 17 Oct 2018 00:55:07 GMT):
Could you please test and let me know the update..

rameshthoomu (Wed, 17 Oct 2018 00:55:38 GMT):
http://repo1.maven.org/maven2/org/hyperledger/fabric-chaincode-java/

rameshthoomu (Wed, 17 Oct 2018 00:57:16 GMT):
I will prepare release process document

rameshthoomu (Wed, 17 Oct 2018 00:57:16 GMT):
I will prepare release process document and push it to fabric-chaincode-java repo

gennadyl (Wed, 17 Oct 2018 07:05:09 GMT):
@rameshthoomu How do you set `ossrhUsername` and `ossrhPassword` properties? They not exist by default and build fails

gennadyl (Wed, 17 Oct 2018 07:06:08 GMT):
Do you use `gradle build -PossrhUsername=...` or set them in `gradle.properties` file?

rameshthoomu (Wed, 17 Oct 2018 12:01:50 GMT):
I set them in gradle.properties file

gennadyl (Wed, 17 Oct 2018 14:21:36 GMT):
Ok. Great. Can you checkout my latest commit to CR and try to push jars to stage once again, to see that my change didn't broke anything. I fixed `build.gradle` to make it work without `gradle.properties` around

rameshthoomu (Wed, 17 Oct 2018 15:24:55 GMT):
sure will do that but I don't think this will override the existing published version

rameshthoomu (Wed, 17 Oct 2018 15:25:14 GMT):
also, could you please run the samples with the published shim and protos jars

gennadyl (Wed, 17 Oct 2018 15:30:09 GMT):
I just want to see if change don't break the process

gennadyl (Wed, 17 Oct 2018 15:30:46 GMT):
Yes, I will run samples

gennadyl (Wed, 17 Oct 2018 15:30:52 GMT):
Will update you

rameshthoomu (Wed, 17 Oct 2018 16:06:11 GMT):
sure. thanks @gennadyl

gennadyl (Thu, 18 Oct 2018 08:51:31 GMT):
I took empty linux vm and was able to build sample chaincode

gennadyl (Thu, 18 Oct 2018 08:51:31 GMT):
@rameshthoomu I took empty linux vm and was able to build sample chaincode

gennadyl (Thu, 18 Oct 2018 08:52:15 GMT):
So it looks like jars placed ok

rameshthoomu (Thu, 18 Oct 2018 13:11:55 GMT):
@gennadyl @C0rWin https://mvnrepository.com/artifact/org.hyperledger.fabric-chaincode-java

C0rWin (Thu, 18 Oct 2018 13:26:07 GMT):
@rameshthoomu cool!

C0rWin (Thu, 18 Oct 2018 13:26:34 GMT):
@rameshthoomu can we close and merge this CR?

rameshthoomu (Thu, 18 Oct 2018 13:27:04 GMT):
Yes

C0rWin (Thu, 18 Oct 2018 13:30:04 GMT):
guess should be also cherry-picked into master now, once it's confirmed

qubing (Fri, 19 Oct 2018 06:59:44 GMT):
@rameshthoomu is it spell mistake?

qubing (Fri, 19 Oct 2018 06:59:54 GMT):

Clipboard - October 19, 2018 2:59 PM

rameshthoomu (Fri, 19 Oct 2018 11:33:39 GMT):
@qubing fixed it here https://gerrit.hyperledger.org/r/#/c/27107/

AsifJaved (Sat, 20 Oct 2018 14:52:19 GMT):
Has joined the channel.

AsifJaved (Sat, 20 Oct 2018 15:04:48 GMT):
hi, how can i deploy our transactions on web interface using java-sdk?

KaranBlockchain (Sun, 21 Oct 2018 08:19:06 GMT):
Team, I am able to create and test a Java based fabric client. However I want to create java chaincode in order to replace my Go chaincode which I am currently using in my application. Can anybody please help and provide links to guides for stable implementation of java chaincode?

gennadyl (Mon, 22 Oct 2018 13:10:57 GMT):
Version 1.3 should work

14gracel (Mon, 22 Oct 2018 15:25:46 GMT):
Has joined the channel.

cagdast (Thu, 25 Oct 2018 07:42:48 GMT):
Has joined the channel.

bmatsuo (Thu, 25 Oct 2018 22:23:27 GMT):
Has joined the channel.

bmatsuo (Thu, 25 Oct 2018 22:43:42 GMT):
In order to build this project do I need to have java8 installed? or should newer jdks work? Sorry if this is a dumb question. I'm just trying to build the docker container so that I can run the integration tests in the fabric repo

bmatsuo (Thu, 25 Oct 2018 22:58:32 GMT):
Seems like installing java8 fixed my issues. I was just hung up missing a `brew tap caskroom/versions` on macos to let brew see older versions of java casks

ShobhitSrivastava (Tue, 30 Oct 2018 09:48:26 GMT):
Hi Guys

ShobhitSrivastava (Tue, 30 Oct 2018 09:48:37 GMT):
I am not able to build 1.3 java sdk project

ShobhitSrivastava (Tue, 30 Oct 2018 09:49:00 GMT):
I took protos and shim jars as well.

maxuto (Tue, 30 Oct 2018 11:46:04 GMT):
Has joined the channel.

mne (Thu, 01 Nov 2018 15:41:03 GMT):
Has left the channel.

Subhankar 3 (Sat, 03 Nov 2018 08:58:11 GMT):
hi, Is there any documentation regarding how to install java chaincodes. I tried installing java chaincode in using following commad : " peer chaincode install -p java/mycc -l java -n mycc -v 1.0" but got following ERROR : panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xdc0eaa] goroutine 1 [running]: github.com/hyperledger/fabric/core/container/util.WriteFolderToTarPackage.func1(0x7ffffa0a2819, 0xd, 0x0, 0x0, 0x1650500, 0xc4202737d0, 0x60, 0x14e03c0) /opt/gopath/src/github.com/hyperledger/fabric/core/container/util/writer.go:64 +0xca

gennadyl (Mon, 05 Nov 2018 10:07:15 GMT):
@Subhankar 3 Can you provide more info?

Subhankar 3 (Mon, 05 Nov 2018 11:03:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=fb7b4881-b822-4b2f-a599-6ddfc35d1fa2) @gennadyl Information Regarding?

Subhankar 3 (Mon, 05 Nov 2018 11:05:34 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=fb7b4881-b822-4b2f-a599-6ddfc35d1fa2) @gennadyl Is there any example regarding how to install and instantiate java chaincode. How the packaging and directory structure of the java chaincode should be?

gennadyl (Mon, 05 Nov 2018 11:36:05 GMT):
Java chaincode should be correct gradle project. You have to point to root of the project, the folder that contains 'build.gradle' file

midhun14 (Wed, 07 Nov 2018 06:31:11 GMT):
Has joined the channel.

enriquebusti (Wed, 07 Nov 2018 12:01:23 GMT):
Has joined the channel.

Subhankar 3 (Thu, 08 Nov 2018 04:14:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=19693a64-22b8-4f2d-bf22-bb67cec38f2f) @gennadyl now I am able to install chaincode, but getting following Error while instantiating : FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':compileClasspath'. > Could not find org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.3.1-SNAPSHOT. Searched in the following locations: file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.1-SNAPSHOT/maven-metadata.xml file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.1-SNAPSHOT/fabric-chaincode-shim-1.3.1-SNAPSHOT.pom file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.1-SNAPSHOT/fabric-chaincode-shim-1.3.1-SNAPSHOT.jar https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.1-SNAPSHOT/maven-metadata.xml https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.1-SNAPSHOT/fabric-chaincode-shim-1.3.1-SNAPSHOT.pom https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.1-SNAPSHOT/fabric-chaincode-shim-1.3.1-SNAPSHOT.jar Required by: project :

MuthuT (Thu, 08 Nov 2018 07:02:54 GMT):
Has joined the channel.

kisna (Thu, 08 Nov 2018 08:00:00 GMT):
how come there are no Java chaincode examples yet in Java-SDK :)

kisna (Thu, 08 Nov 2018 08:00:05 GMT):
java.lang.AssertionError: Test failed with error : java.lang.IllegalArgumentException: chaincodePath must be null for Java chaincode

tballast (Thu, 08 Nov 2018 08:32:19 GMT):
@kisna There is, it should be in a 1-3 snapshot, or Master. You can find the JavaCC here: https://github.com/hyperledger/fabric-sdk-java/tree/master/src/test/fixture/sdkintegration/javacc/sample1 and furthermore, the example that can be used to run it is: https://github.com/hyperledger/fabric-sdk-java/blob/master/src/test/java/org/hyperledger/fabric/sdkintegration/End2endIT.java followed by this: https://github.com/hyperledger/fabric-sdk-java/blob/master/src/test/java/org/hyperledger/fabric/sdkintegration/End2endJavaIT.java

JanRzepecki (Thu, 08 Nov 2018 13:49:05 GMT):
Regarding https://jira.hyperledger.org/browse/FAB-12674 shouldn't we hotfix it and release fabric-chaincode-java 1.3.1?? I was really hoping to start using official builds.

gennadyl (Thu, 08 Nov 2018 13:49:23 GMT):
@Subhankar 3 - can you see output of `docker images` command?

gennadyl (Thu, 08 Nov 2018 13:50:33 GMT):
@JanRzepecki You still can you official javaenv docker image - it contains correct jar

JanRzepecki (Thu, 08 Nov 2018 13:53:40 GMT):
I prebuild my chaincode, and I don't use javaenv. Ok, I'll think I'll just stick to my forked version of shim until 1.4.

gennadyl (Thu, 08 Nov 2018 13:54:16 GMT):
So, how you deploy your chaincode?

JanRzepecki (Thu, 08 Nov 2018 13:55:14 GMT):
I override Java-runtime image with my prebuild docker image that already has my chaincode jars inside

JanRzepecki (Thu, 08 Nov 2018 13:55:53 GMT):
I know it is not cannonical but it works as for PoC

JanRzepecki (Thu, 08 Nov 2018 13:56:37 GMT):
I wait for the new lifecycle with any refactor

gennadyl (Thu, 08 Nov 2018 13:57:19 GMT):
I miss you somehow. Once you run `peer chaincode instantiate`, it tries to compile installed chaincode

gennadyl (Thu, 08 Nov 2018 13:57:44 GMT):
So, did you rewrite core.yaml for all peers, to use you image?

JanRzepecki (Thu, 08 Nov 2018 13:58:55 GMT):
Yep, my network is supposed to run only this single chaincode (which is runtime of another contract language)

gennadyl (Thu, 08 Nov 2018 13:59:52 GMT):
I still struggling to understand how you pass instantiation step?

gennadyl (Thu, 08 Nov 2018 14:00:52 GMT):
In `core/chaincode/platforms/java/platform.go` hardcoded writen how to build chaincode

JanRzepecki (Thu, 08 Nov 2018 14:01:27 GMT):
yep I have empty /root/build.sh

JanRzepecki (Thu, 08 Nov 2018 14:01:43 GMT):
so build does nothing

gennadyl (Thu, 08 Nov 2018 14:01:47 GMT):
Ah, now I get

JanRzepecki (Thu, 08 Nov 2018 14:02:05 GMT):
I save time when deploying

gennadyl (Thu, 08 Nov 2018 14:03:12 GMT):
Indeed, you save time.

gennadyl (Thu, 08 Nov 2018 14:04:03 GMT):
But I don't like custom image idea.

JanRzepecki (Thu, 08 Nov 2018 14:05:10 GMT):
I don't like it either, I will most likely replace it with some dummy gradle file that will simply copy jar from installation tar to /chaincode/output

gennadyl (Thu, 08 Nov 2018 14:07:40 GMT):
I had implementation that did exactly the same - deploying chaincode as jar

JanRzepecki (Thu, 08 Nov 2018 14:08:21 GMT):
The only hiccup is size of this jar :D

gennadyl (Thu, 08 Nov 2018 14:08:47 GMT):
But, at some point, idea was to install only sources.

JanRzepecki (Thu, 08 Nov 2018 14:09:48 GMT):
I agree, but as I mentioned before for us, this chaincode is just runtime

gennadyl (Thu, 08 Nov 2018 14:09:58 GMT):
Got it

JanRzepecki (Thu, 08 Nov 2018 14:10:00 GMT):
of another language

gennadyl (Thu, 08 Nov 2018 14:10:40 GMT):
If you own all network, it is ok.

gennadyl (Thu, 08 Nov 2018 14:10:56 GMT):
I mean, use custom image, etc

JanRzepecki (Thu, 08 Nov 2018 14:12:48 GMT):
anyway kudos for releasing fabric binaries with "non-"experimental java. It already simplified my CI.

gennadyl (Thu, 08 Nov 2018 14:13:22 GMT):
:)

kisna (Thu, 08 Nov 2018 17:44:31 GMT):
@thanks @tballast

kisna (Thu, 08 Nov 2018 17:44:31 GMT):
thanks @tballast, figured out the nitty gritties

kisna (Thu, 08 Nov 2018 18:49:01 GMT):
@tballast , I keep getting a time out on instantiation GO chaincode works fine ` at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:4086) at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:2501) at org.hyperledger.fabric.sdkintegration.End2endIT_custom_java_quotient.runChannel(End2endIT_custom_java_quotient.java:473) `

kisna (Thu, 08 Nov 2018 18:49:01 GMT):
@tballast , I keep getting a time out on instantiation GO chaincode works fine `2018-11-08 18:48:25,798 main ERROR Channel:4103 - Sending proposal to peer1.domain.com failed because of timeout(120000 milliseconds) expiration java.util.concurrent.TimeoutException at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:4086) at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:2501) at org.hyperledger.fabric.sdkintegration.End2endIT_custom_java_quotient.runChannel(End2endIT_custom_java_quotient.java:473) `

kisna (Thu, 08 Nov 2018 18:49:01 GMT):
@tballast , I keep getting a time out on instantiation GO chaincode works fine `2018-11-08 18:48:25,798 main ERROR Channel:4103 - Sending proposal to peer1.domain.com failed because of timeout(120000 milliseconds) expiration java.util.concurrent.TimeoutException at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:4086) at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:2501) at org.hyperledger.fabric.sdkintegration.End2endIT_custom_java_quotient.runChannel(End2endIT_custom_java_quotient.java:473) `

kisna (Thu, 08 Nov 2018 18:49:01 GMT):
@tballast , I keep getting a time out on instantiation GO chaincode works fine `2018-11-08 18:48:25,798 main ERROR Channel:4103 - Sending proposal to peer1.domain.com failed because of timeout(120000 milliseconds) expiration java.util.concurrent.TimeoutException at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:4086) at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:2501) at org.hyperledger.fabric.sdkintegration.End2endIT_custom_java_quotient.runChannel(End2endIT_custom_java_quotient.java:473) ` 2018-11-08 21:24:19.083 UTC [core/comm] ServerHandshake -> ERRO 0a5 TLS handshake failed with error EOF {"server": "PeerServer", "remote address": "172.20.0.9:33486"} 2018-11-08 21:24:19.099 UTC [core/comm] ServerHandshake -> ERRO 0a6 TLS handshake failed with error EOF {"server": "PeerServer", "remote address": "172.20.0.9:33462"} 2018-11-08 21:24:19.804 UTC [endorser] SimulateProposal -> ERRO 0a7 [channel][7c4fa0e2] failed to invoke chaincode name:"lscc" , error: timeout expired while starting chaincode SimpleChaincode:1 for transaction

kisna (Thu, 08 Nov 2018 18:50:30 GMT):
some times, do see some time outs in ZK and Kafka and have no idea why

kisna (Thu, 08 Nov 2018 20:39:53 GMT):
wheras go chain code works perfectly fine

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again with same logs: https://hastebin.com/lijirurasi.rb

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again with same logs: https://hastebin.com/lijirurasi.rb Should I create a ticket?

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again with same logs: https://hastebin.com/osafazisaj.rb Should I create a ticket?

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again only with java chaincode instantiation with same logs, go chaincode instantiate works fine: https://hastebin.com/osafazisaj.rb Should I create a ticket?

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again only with java chaincode instantiation with same logs, go chaincode instantiate works fine: https://hastebin.com/osafazisaj.rb when I switch from Kafka to SOLO orderer, I get a better and different exception, Kafka orderer probably freezes docker network saturation? SOLO throws an error while launching: API error (404): network e2e_domain_default not found https://hastebin.com/konoqewofe.md Should I create a ticket?

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again only with java chaincode instantiation with same logs, go chaincode instantiate works fine: https://hastebin.com/osafazisaj.rb when I switch from Kafka to SOLO orderer, I get a better and different exception, Kafka orderer probably freezes docker network saturation? SOLO throws an error while launching: API error (404): network e2e_domain_default not found https://hastebin.com/konoqewofe.md Should I create a ticket?

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again only with java chaincode instantiation with same logs, go chaincode instantiate works fine: https://hastebin.com/osafazisaj.rb when I switch from Kafka to SOLO orderer, I get a better and different exception, Kafka orderer probably freezes docker network saturation? SOLO throws an error while launching: API error (404): network e2e_domain_default not found https://hastebin.com/konoqewofe.md Should I create a ticket?

kisna (Thu, 08 Nov 2018 20:40:06 GMT):
no other difference in code @tballast Install works fine, instantiate Java chaincode always times out 2018-11-08 20:48:27.686 UTC [lscc] executeInstall -> INFO 031 Installed Chaincode [SimpleChaincode] Version [1] to peer Reproducible again and again only with java chaincode instantiation with same logs, go chaincode instantiate works fine: https://hastebin.com/osafazisaj.rb when I switch from Kafka to SOLO orderer, I get a better and different exception, Kafka orderer probably freezes docker network saturation? SOLO throws an error while launching: API error (404): network e2e_domain_default not found or failed to invoke chaincode name:"lscc" , error: timeout expired while executing transaction https://hastebin.com/konoqewofe.md Should I create a ticket?

kisna (Fri, 09 Nov 2018 01:30:53 GMT):
any help instantiating Java chaincode : invoke chaincode name:"lscc" , error: timeout expired while executing transaction 2018-11-09 01:25:00.910 UTC [endorser] SimulateProposal -> ERRO 031 [channel][0ed1aba7] failed to invoke chaincode name:"lscc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1129 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:304 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:224 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending failed to execute transaction 0ed1aba71f87f67b5f1f1f370482a99f7c32d248a0c545c03a11fac41e825b3d github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:236 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:225 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361

kisna (Fri, 09 Nov 2018 01:30:53 GMT):
any help instantiating Java chaincode : invoke chaincode name:"lscc" , error: timeout expired while executing transaction tried restarting peer containers as well 2018-11-09 01:25:00.910 UTC [endorser] SimulateProposal -> ERRO 031 [channel][0ed1aba7] failed to invoke chaincode name:"lscc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1129 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:304 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:224 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending failed to execute transaction 0ed1aba71f87f67b5f1f1f370482a99f7c32d248a0c545c03a11fac41e825b3d github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:236 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:225 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361

kisna (Fri, 09 Nov 2018 07:43:47 GMT):
Others with similar issue, switching to GO chain code: https://stackoverflow.com/questions/52982837/problem-about-instantiating-java-chaincode-in-hyperledger-fabric-v1-3-failed-t https://stackoverflow.com/questions/51394881/lscc-chaincode-timeout-error any help instantiating Java chaincode : invoke chaincode name:"lscc" , error: timeout expired while executing transaction tried restarting peer containers as well 2018-11-09 01:25:00.910 UTC [endorser] SimulateProposal -> ERRO 031 [channel][0ed1aba7] failed to invoke chaincode name:"lscc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1129 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:304 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:224 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending failed to execute transaction 0ed1aba71f87f67b5f1f1f370482a99f7c32d248a0c545c03a11fac41e825b3d github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:236 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:225 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361

kisna (Fri, 09 Nov 2018 07:43:47 GMT):
@gennadyl Others with similar issue, switching to GO chain code: https://stackoverflow.com/questions/52982837/problem-about-instantiating-java-chaincode-in-hyperledger-fabric-v1-3-failed-t https://stackoverflow.com/questions/51394881/lscc-chaincode-timeout-error any help instantiating Java chaincode : invoke chaincode name:"lscc" , error: timeout expired while executing transaction tried restarting peer containers as well 2018-11-09 01:25:00.910 UTC [endorser] SimulateProposal -> ERRO 031 [channel][0ed1aba7] failed to invoke chaincode name:"lscc" , error: timeout expired while executing transaction github.com/hyperledger/fabric/core/chaincode.(*Handler).Execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/handler.go:1129 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).execute /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:304 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:224 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361 error sending failed to execute transaction 0ed1aba71f87f67b5f1f1f370482a99f7c32d248a0c545c03a11fac41e825b3d github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:236 github.com/hyperledger/fabric/core/chaincode.(*ChaincodeSupport).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:225 github.com/hyperledger/fabric/core/endorser.(*SupportImpl).ExecuteLegacyInit /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/support.go:131 github.com/hyperledger/fabric/core/endorser.(*Endorser).callChaincode /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:172 github.com/hyperledger/fabric/core/endorser.(*Endorser).SimulateProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:230 github.com/hyperledger/fabric/core/endorser.(*Endorser).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/endorser/endorser.go:449 github.com/hyperledger/fabric/core/handlers/auth/filter.(*expirationCheckFilter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/expiration.go:61 github.com/hyperledger/fabric/core/handlers/auth/filter.(*filter).ProcessProposal /opt/gopath/src/github.com/hyperledger/fabric/core/handlers/auth/filter/filter.go:32 github.com/hyperledger/fabric/protos/peer._Endorser_ProcessProposal_Handler /opt/gopath/src/github.com/hyperledger/fabric/protos/peer/peer.pb.go:162 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).processUnaryRPC /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1011 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).handleStream /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:1249 github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 /opt/gopath/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/server.go:680 runtime.goexit /opt/go/src/runtime/asm_amd64.s:2361

tballast (Fri, 09 Nov 2018 08:41:26 GMT):
Hey @kisna , not exactly sure why that would be happening. I've run both of these without any errors using the 1.3 Snapshots. The order in which I did everything was: 1. Start docker network. Make sure that you are using all the right versions for the containers, it can fail with weird reasons if you're for some reason using an old container. I can't remember if it jsut uses the `latest` tag or not, but be sure to check this. 2. Run the End2EndIT as it is, with java chaincode. 3. Without touching the docker containers at all, just run the End2EndITJava example. In my experience it worked just fine. If you look in this folder: https://github.com/hyperledger/fabric-sdk-java/tree/master/src/test/fixture/sdkintegration you will see all of the docker stuff that you need. Is that what you were using? Furthermore, there is a .env file which specifies versions, so you can put 1.3.0 into that.

kisna (Fri, 09 Nov 2018 17:42:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=TvQZrRGDJHLa3tgSh) @tballast Yes @tballast, have following setup: FAB_CONFIG_GEN_VERS=v1.3 ORG_HYPERLEDGER_FABRIC_SDKTEST_INTEGRATIONTESTS_TLS=true;CORE_CHAINCODE_DEPLOYTIMEOUT=300s;CORE_CHAINCODE_STARTUPTIMEOUT=300s Let me share my end2end compose setup and unit test I was running, easily reproducible @tballast

kisna (Fri, 09 Nov 2018 17:42:02 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=TvQZrRGDJHLa3tgSh) Yes @tballast, have following setup: FAB_CONFIG_GEN_VERS=v1.3 ORG_HYPERLEDGER_FABRIC_SDKTEST_INTEGRATIONTESTS_TLS=true;CORE_CHAINCODE_DEPLOYTIMEOUT=300s;CORE_CHAINCODE_STARTUPTIMEOUT=300s Let me share my end2end compose setup and unit test I was running, easily reproducible @tballast

kisna (Fri, 09 Nov 2018 19:09:29 GMT):
@tballast here is the stacktrace running latest Fabric Java SDK + Java chain code, fails there as well: 2018-11-09 19:04:22,357 main ERROR Channel:4117 - Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [foo] creator org [Org1MSP], cause=null} java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: access denied: channel [foo] creator org [Org1MSP]

kisna (Fri, 09 Nov 2018 19:09:29 GMT):
@tballast here is the stacktrace running latest Fabric Java SDK + Java chain code, fails there as well in the same step: responses = channel.sendInstantiationProposal(instantiateProposalRequest, channel.getPeers()); 2018-11-09 19:04:22,357 main ERROR Channel:4117 - Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [foo] creator org [Org1MSP], cause=null} java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: access denied: channel [foo] creator org [Org1MSP]

kisna (Fri, 09 Nov 2018 19:09:29 GMT):
@tballast here is the stacktrace running latest Fabric Java SDK + Java chain code, fails there as well in the same step, for a different reason: responses = channel.sendInstantiationProposal(instantiateProposalRequest, channel.getPeers()); 2018-11-09 19:04:22,357 main ERROR Channel:4117 - Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [foo] creator org [Org1MSP], cause=null} java.lang.Exception: io.grpc.StatusRuntimeException: UNKNOWN: access denied: channel [foo] creator org [Org1MSP]

archit90 (Sat, 10 Nov 2018 15:12:52 GMT):
Has joined the channel.

archit90 (Sat, 10 Nov 2018 17:00:15 GMT):
How can we access `goleveldb`. Is it in `peer` docker image ? Can we directly access it for debugging purposes?

MariaHenderson (Sun, 11 Nov 2018 13:24:37 GMT):
Has joined the channel.

Raycoms (Mon, 12 Nov 2018 00:05:56 GMT):
Has joined the channel.

Raycoms (Mon, 12 Nov 2018 00:38:13 GMT):
How can I get the public key from the invocator of the chaincode?

Raycoms (Mon, 12 Nov 2018 01:19:39 GMT):
Also, is there anything I could use as a base for a random seed to make a deterministic random calc?

Raycoms (Mon, 12 Nov 2018 01:19:54 GMT):
(Same random variable on all servers)

AlexanderZhovnuvaty (Mon, 12 Nov 2018 11:05:58 GMT):
Has left the channel.

dave.enyeart (Mon, 12 Nov 2018 19:26:42 GMT):
@archit90 goleveldb data is stored in peer at /var/hyperledger/production by default. but it is not in a format easily readable. if you are talking about the state database, you may want to use couchdb instead so that you can view the data.

mcoblenz (Mon, 12 Nov 2018 20:33:59 GMT):
Any advice on how to debug instantiating chaincode when it hangs for a long time and then eventually fails?

mcoblenz (Mon, 12 Nov 2018 20:34:35 GMT):
If we make a small change to SimpleChaincode, then we see that instantiating fails but doesn't give an error message that is helpful for debugging the problem.

shell769324 (Mon, 12 Nov 2018 20:38:57 GMT):
Has joined the channel.

kisna (Tue, 13 Nov 2018 04:14:56 GMT):
@tballast I see an orderer initialize chaincode-java start command but java chaincode containers fail with "Error: Unable to access jarfile /root/chaincode-java/chaincode/chaincode.jar" 2018-11-13 03:50:52.833 UTC [chaincode] LaunchConfig -> DEBU 11ba launchConfig: executable:"/root/chaincode-java/start",Args:[/root/chaincode-java/start,--peerAddress,peer1.quotient.coupons.com:7052],Envs:[CORE_CHAINCODE_LOGGING_LEVEL=info,CORE_CHAINCODE_LOGGING_SHIM=warning,CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message},CORE_CHAINCODE_ID_NAME=SimpleChaincode:1,CORE_PEER_TLS_ENABLED=true,CORE_TLS_CLIENT_KEY_PATH=/etc/hyperledger/fabric/client.key,CORE_TLS_CLIENT_CERT_PATH=/etc/hyperledger/fabric/client.crt,CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer.crt],Files:[/etc/hyperledger/fabric/client.crt /etc/hyperledger/fabric/client.key /etc/hyperledger/fabric/peer.crt] 2018-11-13 03:50:52.833 UTC [chaincode] Start -> DEBU 11bb start container: SimpleChaincode:1 2018-11-13 03:50:52.833 UTC [chaincode] Start -> DEBU 11bc start container with args: /root/chaincode-java/start --peerAddress peer1.quotient.coupons.com:7052 2018-11-13 03:50:52.834 UTC [chaincode] Start -> DEBU 11bd start container with env: CORE_CHAINCODE_LOGGING_LEVEL=info CORE_CHAINCODE_LOGGING_SHIM=warning CORE_CHAINCODE_LOGGING_FORMAT=%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message} CORE_CHAINCODE_ID_NAME=SimpleChaincode:1 CORE_PEER_TLS_ENABLED=true CORE_TLS_CLIENT_KEY_PATH=/etc/hyperledger/fabric/client.key CORE_TLS_CLIENT_CERT_PATH=/etc/hyperledger/fabric/client.crt CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/peer.crt

gennadyl (Tue, 13 Nov 2018 07:15:20 GMT):
@kisna, can you just send me docker images command and your chaincode build.gradle. Based on what I read from your comments in sdk-java channel, it looks like versions thing

C0rWin (Tue, 13 Nov 2018 07:24:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=SmYycJw7JstEYJoFL) @Raycoms There is an API: ``` /** * Returns the identity of the agent (or user) submitting the transaction. * * @return the bytes of the creator field of the proposal's signature * header. */ byte[] getCreator(); ```

C0rWin (Tue, 13 Nov 2018 07:25:23 GMT):
will provide you with serialized signed identity of the invocator

C0rWin (Tue, 13 Nov 2018 07:27:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=DzBBAAZpoiegQvR2D) @Raycoms you might consider to use `Init` of chaincode to write some common seed into state which could be used later.

gennadyl (Tue, 13 Nov 2018 08:26:38 GMT):
@kisna Based on what you wrote in sdk channel, somehow you look for javaenv-1.3.0-rc1 image. It sounds very strange to me. Does all rest of your images have 1.3.0-rc1 version as well?

tballast (Tue, 13 Nov 2018 09:53:54 GMT):
Hey @kisna I think that the other people here are probably more qualified to answer this than I am, as I have only done what was in the examples.

kisna (Tue, 13 Nov 2018 21:48:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=009cc6a1-2041-4b8f-9628-c26026302d45) @gennadyl I finally setup a private maven repository - artifactory and made java chain codes work :)

kisna (Tue, 13 Nov 2018 21:48:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=009cc6a1-2041-4b8f-9628-c26026302d45) @gennadyl I finally setup a private maven repository - artifactory and made java chain codes work :) as if they are accessing a common hosted repo

kisna (Tue, 13 Nov 2018 21:48:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=009cc6a1-2041-4b8f-9628-c26026302d45) @gennadyl I finally setup a private maven repository - artifactory and made java chain code integration test work on Fabric SDK test cluster :) as if they are accessing a common hosted repo

kisna (Tue, 13 Nov 2018 21:48:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=009cc6a1-2041-4b8f-9628-c26026302d45) @gennadyl I finally setup a private maven repository - artifactory and made java chain code integration test work on Fabric SDK test cluster :) as if chaincode containers were accessing a common hosted repo

kisna (Tue, 13 Nov 2018 21:52:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=9uhiZ7zLTnF5vwH3P) However, after cleaning up my 100s of dangling volumes and restarting docker my own private Fabric TLS enabled cluster did not like Java chaincodes, I still keep getting:

gennadyl (Wed, 14 Nov 2018 08:36:57 GMT):
@kisna Can you send me output of `docker images` command?

gennadyl (Wed, 14 Nov 2018 10:37:41 GMT):
I suspect that something went wrong with building java chaincode during instantiate phase. If I remember correctly, we added check of compilation result

yanning (Wed, 14 Nov 2018 12:41:15 GMT):
Has joined the channel.

kisna (Wed, 14 Nov 2018 18:44:17 GMT):
sure, will do

kevinkbc (Wed, 14 Nov 2018 20:20:36 GMT):
Has joined the channel.

HoneyShah (Thu, 15 Nov 2018 05:35:31 GMT):
Hello, When chaincode container remains idle for some time then it stops with error: ``` ERROR [lib/handler.js] Chat stream with peer - on error: "Error: 14 UNAVAILABLE: EOF\n at createStatusError (/usr/local/src/node_modules/grpc/src/client.js:64:15)\n at ClientDuplexStream._emitStatusIfDone (/usr/local/src/node_modules/grpc/src/client.js:270:19)\n at ClientDuplexStream._receiveStatus (/usr/local/src/node_modules/grpc/src/client.js:248:8)\n at /usr/local/src/node_modules/grpc/src/client.js:804:12" ``` And when the first request comes after idle time it gives an error of ``` Error: 14 UNAVAILABLE: TCP Write failed ``` And after that all works fine. How can I solve for the first request? Please help

gennadyl (Thu, 15 Nov 2018 21:43:16 GMT):
@HoneyShah Are you sure you run java chaincode? Looks like node.js chaincode to me

gennadyl (Thu, 15 Nov 2018 21:44:42 GMT):
@HoneyShah Is it chaincode container log?

HoneyShah (Fri, 16 Nov 2018 05:32:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=732505c5-36b7-447b-8586-98ba4b58a68c) @gennadyl Yes

kevinkbc (Fri, 16 Nov 2018 14:33:14 GMT):
Hi guys, I'm starting in fabric and I have a question. Do I need any knowledge of GO or can I do all of my chaincode in java?

dave.enyeart (Fri, 16 Nov 2018 14:44:01 GMT):
@kevinkbc you can do it in java as of v1.3. see the tutorial at https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.3/TUTORIAL.md. It is relatively new, so if you have questions based on that doc, please mention here so that it can get clarified.

gennadyl (Fri, 16 Nov 2018 21:59:21 GMT):
@HoneyShah Can you send me output of `docker ps -a`

gennadyl (Fri, 16 Nov 2018 22:00:33 GMT):
@kisna Still waiting for `docker image` output

aatkddny (Sat, 17 Nov 2018 16:26:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=xkyZev2q9b6PEGBcs) It would be really helpful to add a section to say how it works under the covers for real (it looks like it's building a jar in each peer from the gradle build, but that's a guess based on the fact that one sends the source in as a zipped file) and a paragraph on how to install and instantiate chaincode from each of the SDKs. RTFC isn't necessarily the most helpful approach.

aatkddny (Sat, 17 Nov 2018 16:26:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=xkyZev2q9b6PEGBcs) It would be really helpful to add a section to say how it works under the covers for real (it looks like it's building a jar in each peer from the gradle build, but that's a guess based on the fact that one sends the source in as a zipped file) and a paragraph on how to install and instantiate chaincode from each of the SDKs. RTFC isn't necessarily the most helpful approach, and it took me two passes to see that you zip and ship the entire project in the one I was looking at... I'm also curious as to why you didn't just take a built jar - so we aren't forced into using gradle - rather than making every peer compile, but that's a totally separate question.

dave.enyeart (Sat, 17 Nov 2018 22:20:51 GMT):
@gennadyl could you follow up on the doc. For the SDKs, I think the best thing would be to review each of the SDK docs to make sure it is clear how to install/instantiate java chaincode, and then add links from java chaincode repo to the SDK docs.

gennadyl (Sun, 18 Nov 2018 09:11:50 GMT):
@dave.enyeart Will look into it

archit90 (Sun, 18 Nov 2018 14:55:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=aioWxvG32Rr7vi7yz) @dave.enyeart Thanks @dave.enyeart , when we use couchdb, i am able to open the admin UI at http://localhost:5984/_utils but which db has the data?

archit90 (Sun, 18 Nov 2018 15:51:33 GMT):
I am running SampleChaincode in fabric-chaincode-example-grade. all logging with `_logger` variable at `INFO` are not being printed anywhere (cheked `chaincode` and `peer` container) . How do i enable these logs

archit90 (Sun, 18 Nov 2018 15:51:33 GMT):
I am running SampleChaincode in fabric-chaincode-example-grade. all logging with `_logger` variable at `INFO` are not being printed anywhere (cheked `chaincode` and `peer` container) . How do i enable these logs ?

archit90 (Sun, 18 Nov 2018 16:30:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=uKHZSxSqSkYZ4Q95X) just realized db name in couchdb is `_`

acloudfan (Sun, 18 Nov 2018 18:42:20 GMT):
Has joined the channel.

acloudfan (Sun, 18 Nov 2018 18:44:35 GMT):
@dave.enyeart document at https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.3/TUTORIAL.md. does not cover the use of Java chaincode in dev mode .... planning to do that ?

dave.enyeart (Sun, 18 Nov 2018 19:14:21 GMT):
@gennadyl one more request ^^^^

HoneyShah (Mon, 19 Nov 2018 10:14:07 GMT):
@gennadyl

HoneyShah (Mon, 19 Nov 2018 10:14:07 GMT):
@gennadyl Here it is

HoneyShah (Mon, 19 Nov 2018 10:14:39 GMT):

Screenshot from 2018-11-19 15-43-04.png

gennadyl (Mon, 19 Nov 2018 11:05:37 GMT):
@HoneyShah Now I am almost sure you not running java chaincode, but node chaincode.

HoneyShah (Mon, 19 Nov 2018 11:14:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Yw97FRNJyeENfvhfj) @gennadyl Oh yes.

HoneyShah (Mon, 19 Nov 2018 11:14:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Yw97FRNJyeENfvhfj) @gennadyl Oh yes. Do you have any idea on this?

HoneyShah (Mon, 19 Nov 2018 11:14:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Yw97FRNJyeENfvhfj) @gennadyl Oh yes. Wrong channel, my bad. But do you have any idea on this?

gennadyl (Mon, 19 Nov 2018 11:24:07 GMT):
Not that I know node chaincode too much. I will ask around

gennadyl (Mon, 19 Nov 2018 21:00:41 GMT):
@HoneyShah Please try #fabric-chaincode-dev channel

huxiangdong (Tue, 20 Nov 2018 00:32:49 GMT):
Has joined the channel.

HoneyShah (Tue, 20 Nov 2018 03:28:50 GMT):
@gennadyl Thank ypu

archit90 (Tue, 20 Nov 2018 04:49:50 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=uKHZSxSqSkYZ4Q95X) Does anyone know about location of logs? `_logger.info()` statements

gennadyl (Tue, 20 Nov 2018 07:30:36 GMT):
@archit90 Did you tried `docker logs ` for chaincode container?

archit90 (Tue, 20 Nov 2018 07:34:40 GMT):
@gennadyl yes, it only shows ERROR logs

gennadyl (Tue, 20 Nov 2018 07:44:25 GMT):
What version of java shim do you use?

gennadyl (Tue, 20 Nov 2018 07:55:21 GMT):
Try to set CORE_CHAINCODE_LOGGING_LEVEL=info and CORE_CHAINCODE_LOGGING_SHIM=info in peers.

gennadyl (Tue, 20 Nov 2018 07:56:47 GMT):
@archit90 Try to set CORE_CHAINCODE_LOGGING_LEVEL=info and CORE_CHAINCODE_LOGGING_SHIM=info in peers.

gennadyl (Tue, 20 Nov 2018 07:57:08 GMT):
@archit90 btw, what version of java chaincode shim do you use?

archit90 (Tue, 20 Nov 2018 08:01:26 GMT):
@gennadyl using shim 1.3

archit90 (Tue, 20 Nov 2018 08:07:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=dwLDwtc2tHWpAfQRC) @gennadyl And forgot to mention, have set `peerchaincodedev true` in docker compose. I need to set these in docker-compose file in peer block correct?

gennadyl (Tue, 20 Nov 2018 08:19:22 GMT):
Yep. Do you use first-network?

gennadyl (Tue, 20 Nov 2018 08:19:22 GMT):
@archit90 Yep. Do you use first-network?

archit90 (Tue, 20 Nov 2018 08:40:13 GMT):
i am using chaincode-docker-devmode scripts currently

gennadyl (Tue, 20 Nov 2018 12:55:55 GMT):
Let me see into those scripts

gennadyl (Tue, 20 Nov 2018 12:58:46 GMT):
@archit90 Yes, best way is to add it to peer.environment sections in compose file: ``` ```

gennadyl (Tue, 20 Nov 2018 12:59:08 GMT):
``` - CORE_CHAINCODE_LOGGING_LEVEL=info - CORE_CHAINCODE_LOGGING_SHIM=info ```

gennadyl (Tue, 20 Nov 2018 12:59:31 GMT):
Just please update me is it worked...

dave.enyeart (Tue, 20 Nov 2018 19:38:27 GMT):
@gennadyl @C0rWin @rameshthoomu Could you provide an update on 1) s390 javaenv 2) incorrect 1.3.0 files in maven... is the fix to release a 1.3.1?

mcoblenz (Tue, 20 Nov 2018 20:29:01 GMT):
Is anyone able to give tips on how to debug a hung 'peer chaincode instantiate' command?

mcoblenz (Tue, 20 Nov 2018 20:29:23 GMT):
e.g. what logs should I look at? It hangs and then eventually times out.

mcoblenz (Tue, 20 Nov 2018 20:30:08 GMT):
I set the log level for chaincode to 'info' as you suggested above but the logs are not very helpful.

mcoblenz (Tue, 20 Nov 2018 20:30:48 GMT):
the error is "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode mycc:1.0 for transaction"

mcoblenz (Tue, 20 Nov 2018 20:45:52 GMT):
Aha. Resolution, for the curious: forgot to define main() in the chaincode. It would be super nice if this had a more transparent failure mode.

sushmitha (Wed, 21 Nov 2018 10:28:56 GMT):
Has joined the channel.

sushmitha (Wed, 21 Nov 2018 10:34:23 GMT):
hi i get "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Index: 0, Size: 0" while instantiating chaincode . please help

dave.enyeart (Wed, 21 Nov 2018 13:28:40 GMT):
@gennadyl @C0rWin I've created a Bug to make the java chaincode instantiate error messages more helpful: https://jira.hyperledger.org/browse/FAB-12960

dave.enyeart (Wed, 21 Nov 2018 13:29:03 GMT):
Two examples of this above...

gennadyl (Wed, 21 Nov 2018 13:29:34 GMT):
I am working on missed main() method

gennadyl (Wed, 21 Nov 2018 13:29:58 GMT):
The problem it is not to easy to discover such thing

gennadyl (Wed, 21 Nov 2018 13:30:05 GMT):
During validation phase

dave.enyeart (Wed, 21 Nov 2018 13:30:39 GMT):
thanks. anything we can do to return a root cause error message in general will help

gennadyl (Wed, 21 Nov 2018 13:30:50 GMT):
After all, it is correct java code, that compiles without any problem

dave.enyeart (Wed, 21 Nov 2018 13:31:23 GMT):
how about the one from sushmitha?

gennadyl (Wed, 21 Nov 2018 13:31:47 GMT):
I still don't know what problem there

gennadyl (Wed, 21 Nov 2018 13:32:10 GMT):
@sushmitha Can you publish logs from chaincode container, please

dave.enyeart (Wed, 21 Nov 2018 13:32:14 GMT):
can you look into making the general error message more helpful

dave.enyeart (Wed, 21 Nov 2018 13:32:23 GMT):
regardless of the root cause

gennadyl (Wed, 21 Nov 2018 13:32:43 GMT):
I will look into it

alek (Thu, 22 Nov 2018 00:16:22 GMT):
Has joined the channel.

alek (Sat, 24 Nov 2018 22:30:34 GMT):
Hi guys, i have a question about installing java chaincode. I created gradle-based application, built network and successfully run it. Currently i am trying to install chaincode by executing such command: `peer chaincode install -n mycc -v 0.1 -l java -p chaincode-gradle` and getting `2018-11-24 13:30:08.256 PST [main] InitCmd -> ERRO 001 Fatal error when initializing core config : Could not find config file. Please make sure that FABRIC_CFG_PATH or --configPath is set to a path which contains core.yaml`. The think is that `FABRIC_CFG_PATH` is set to the directory where all config files reside. I know that second part of the message is a little bit misleading and already is the subject of jira: https://jira.hyperledger.org/browse/FAB-12419 but the first part of that message also makes me confused. Do you have any suggestions how i can resolve that issue ?

gsolaich (Tue, 27 Nov 2018 06:15:11 GMT):
Has joined the channel.

HoneyShah (Tue, 27 Nov 2018 11:55:48 GMT):
I am using node sdk. When I try to iterate through the result of pagination query using iterator.next(), I am getting response like this: ``` Promise { { value: { namespace: 'eprocure', key: '090e257d-e3fc-4814-83f4-12cc289ac6ee', value: [Object] }, done: false } } ``` How to parse this data for further use? I don't know how to retrieve value from it as it is not valid json object. Can anyone help ?

shell769324 (Tue, 27 Nov 2018 15:52:00 GMT):
Does anyone know this error? I am modifying byfn.

shell769324 (Tue, 27 Nov 2018 15:52:21 GMT):
Error: could not assemble transaction: ProposalResponsePayloads do not match - proposal response: version:1 response: payload:"\n \030\035X|\030+\004\211j\010\221\327\261\032\n#\247\306I\326\270\302\255\246\221\225T\035j\267\016>\022K\n\026\022\024\n\004lscc\022\014\n\n\n\004mycc\022\002\010\003\032$\010\310\001\022\034invoke finished successfully\032\0010\"\013\022\004mycc\032\0031.0" endorsement:

shell769324 (Tue, 27 Nov 2018 15:53:38 GMT):
If I pass in a string literal into the response constructor then this error is gone. If I use a string object, this error will reappear.

shell769324 (Tue, 27 Nov 2018 15:54:30 GMT):
The issue arises when the script is executing the invoke function.

gordon1987 (Wed, 28 Nov 2018 09:41:34 GMT):
Has joined the channel.

gordon1987 (Wed, 28 Nov 2018 09:43:29 GMT):
Hi guys,I am trying to instantiate an java chaincode with comand CORE_LOGGING_PEER=debug peer chaincode instantiate -l java -n exam2 -v 0 -c '{"Args":["1","2","3","4"]}' -C ns and failure with message Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " peer version is 1.3

Marveliu (Sat, 01 Dec 2018 03:10:02 GMT):
Has joined the channel.

gennadyl (Sun, 02 Dec 2018 10:06:57 GMT):
@gordon1987 Can you send me output of `docker images` and `docker ps -a` during instantiation

gennadyl (Sun, 02 Dec 2018 10:08:26 GMT):
@alek Do you use first network?

gennadyl (Sun, 02 Dec 2018 11:45:38 GMT):
@sushmitha I still waiting for chaincode container logs

gennadyl (Sun, 02 Dec 2018 11:45:58 GMT):
And by the way, what chaincode did you tried to run

gordon1987 (Mon, 03 Dec 2018 01:17:37 GMT):

Clipboard - December 3, 2018 9:17 AM

gordon1987 (Mon, 03 Dec 2018 01:18:18 GMT):

Clipboard - December 3, 2018 9:18 AM

gordon1987 (Mon, 03 Dec 2018 01:23:11 GMT):
@alek it is not first network , the first network build the chaincode.jar right, but run with error message "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode ex1:0 for transaction" ,thanks a lot for helping

AndresMartinezMelgar.itcl (Mon, 03 Dec 2018 07:00:32 GMT):
Has joined the channel.

JohnR (Mon, 03 Dec 2018 08:32:40 GMT):
Has left the channel.

AndresMartinezMelgar.itcl (Tue, 04 Dec 2018 07:07:22 GMT):
is there any documented example of java chaincode? i just find marbles and basic example. I need something more difficult. thanks!

albert.lacambra (Tue, 04 Dec 2018 11:36:13 GMT):
is devmode disabled on fabric 1.3?

sushmitha (Wed, 05 Dec 2018 02:24:13 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=FgC4uanZn7j22RwPw) @gennadyl this issue was resolved when i installed chaincode using different network name

kevinkbc (Wed, 05 Dec 2018 14:07:21 GMT):
I am following this tutorial https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.3/TUTORIAL.md

kevinkbc (Wed, 05 Dec 2018 14:07:41 GMT):
but I am stuck at the testing the chaincode part

kevinkbc (Wed, 05 Dec 2018 14:08:31 GMT):
CORE_LOGGING_PEER=debug ./build/bin/peer chaincode install -l java -n mycc -v v0 -p

kevinkbc (Wed, 05 Dec 2018 14:08:50 GMT):
I dont have the build folder

kevinkbc (Wed, 05 Dec 2018 14:12:24 GMT):
the path to chaincode folder is the root folder of my chaincode project or the target folder (where the jars are)?

albert.lacambra (Wed, 05 Dec 2018 14:14:32 GMT):
Looking at ChaincodeMockPeer, I wonder how complex it is to implement a memory a KV storage instead to predefine all expected steps

kevinkbc (Wed, 05 Dec 2018 14:20:57 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=94rsLSmXsnkMkypMc) also I cant find /build/bin/peer

albert.lacambra (Wed, 05 Dec 2018 14:30:21 GMT):
There where you have the build.gradle

albert.lacambra (Wed, 05 Dec 2018 14:30:45 GMT):
No jars accepted I think. Must be downloaded from repo server

kevinkbc (Wed, 05 Dec 2018 15:44:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=zg9DTakW5wvT57Roj) @albert.lacambra the build folder?

umershabbir (Wed, 05 Dec 2018 17:09:28 GMT):
Has joined the channel.

umershabbir (Wed, 05 Dec 2018 17:11:51 GMT):
Hello, I am new to this channel as well as the Fabric Java SDK. I created a program using fabric java sdk to initiate a channel with two orgs. both orgs are sharing the same chain code since they are on the same channel. Now I want to introduce a private data in the chain code and want that private data to be accessed only by org1

umershabbir (Wed, 05 Dec 2018 17:12:31 GMT):
I dont see any end to end sample which resolves this issue from config all the way upto java code.

umershabbir (Wed, 05 Dec 2018 17:13:44 GMT):
could anyone please send me a sample including yaml/config files about how to setup private data access policy, sample contract containing private data and methods and the java code to access the private data by org1

tballast (Wed, 05 Dec 2018 17:34:17 GMT):
Could someone enlighten me on how _delState_ actually works? What is the point of it? Perhaps I'm misguided, but does this just mark a certain element at deleted without actually removing it?

tballast (Wed, 05 Dec 2018 17:35:33 GMT):
Documentation on the method can be found here: https://fabric-chaincode-java.github.io/org/hyperledger/fabric/shim/ChaincodeStub.html#delState-java.lang.String-

albert.lacambra (Wed, 05 Dec 2018 17:49:42 GMT):

Clipboard - December 5, 2018 6:49 PM

albert.lacambra (Wed, 05 Dec 2018 17:50:32 GMT):
@kevinkbc CC_PATH=path/to/fabcar-chaincode

albert.lacambra (Wed, 05 Dec 2018 17:51:09 GMT):
basically you need to pass the build.gradle file and this file needs to know where is the source code

albert.lacambra (Wed, 05 Dec 2018 17:51:22 GMT):
per default src/main/java, ... if I am correct

C0rWin (Wed, 05 Dec 2018 17:54:19 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=MWDYtCmWsF4kPKbJd) @tballast `PutState`, `GetState`, `DelState` are operates on state in terms of key-value datastore, where `DelState` provides semantic of removing certain key from the state, essentially assigning nil to the key value. Thus subsequent call of GetState will indicate this key no longer exists.

kevinkbc (Wed, 05 Dec 2018 17:56:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=btWFHb8AkP46CEckS) @albert.lacambra ok, but I want to use the chaincode that I did using this tutorial https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.3/TUTORIAL.md

kevinkbc (Wed, 05 Dec 2018 17:56:36 GMT):
do i need to use the fabcar sample?

tballast (Wed, 05 Dec 2018 17:59:00 GMT):
@C0rWin Ok, I understand. If I recall the full history for this key though, I will still see all preexisting values though, correct? This is essentially just a way of closing off a certain key to show that something came to an end (ie. an "account closed" or something)?

albert.lacambra (Wed, 05 Dec 2018 18:00:15 GMT):
no, no. Do not really know this tutorial. Was just an example

albert.lacambra (Wed, 05 Dec 2018 18:01:25 GMT):
@C0rWin do you know if devmode has changed in 1,3 release? It instantiate the code into an new docker container like in production and the running CC on the IDE is just being ignored

albert.lacambra (Wed, 05 Dec 2018 18:09:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=2iFsMBySkpzsTFNh5) @kevinkbc point to this folder: fabric-chaincode-example-gradle

kevinkbc (Wed, 05 Dec 2018 18:21:40 GMT):
I am staerting to wonder if ./build/bin/peer is inside the docker container

kevinkbc (Wed, 05 Dec 2018 18:21:40 GMT):
I am starting to wonder if ./build/bin/peer is inside the docker container

kevinkbc (Wed, 05 Dec 2018 18:21:53 GMT):
it isnt anywhere in my computer

kevinkbc (Wed, 05 Dec 2018 18:35:01 GMT):
@C0rWin do you know someone that can help me with the java chaincode tutorial?

C0rWin (Wed, 05 Dec 2018 18:43:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=tF3t6GMqkH32y46hc) @tballast exactly

C0rWin (Wed, 05 Dec 2018 18:44:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=J3XEAvTPWmukJLjgJ) @albert.lacambra no changes were made I'm aware of

C0rWin (Wed, 05 Dec 2018 18:44:32 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=KwKFfwi2pvYQCxowD) @kevinkbc what help do you need?

kevinkbc (Wed, 05 Dec 2018 18:48:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=P5WdQhXrudgAh3ygh) @C0rWin "Testing chaincode First, install the chaincode. The peer CLI will package the Java chaincode source (src folder) and Gradle build scripts and send them to the peer to install. If you have previously installed a chaincode called by the same name and version, you can delete it from the peer by removing the file /var/hyperledger/production/chaincodes/.. CORE_LOGGING_PEER=debug ./build/bin/peer chaincode install -l java -n mycc -v v0 -p " - install the chaincode is this command ./build/bin/peer chaincode install -l java -n mycc -v v0 -p ? I cant seem to find build/bin/peer - -

kevinkbc (Wed, 05 Dec 2018 18:48:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=P5WdQhXrudgAh3ygh) @C0rWin "Testing chaincode First, install the chaincode. The peer CLI will package the Java chaincode source (src folder) and Gradle build scripts and send them to the peer to install. If you have previously installed a chaincode called by the same name and version, you can delete it from the peer by removing the file /var/hyperledger/production/chaincodes/.. CORE_LOGGING_PEER=debug ./build/bin/peer chaincode install -l java -n mycc -v v0 -p " - install the chaincode is this command ./build/bin/peer chaincode install -l java -n mycc -v v0 -p ? I cant seem to find build/bin/peer - path to chaincode folder is where I wrote my chaincode (e.g.: test/SimpleAsset/)? or a specific folder inside the project? -

umershabbir (Wed, 05 Dec 2018 20:59:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=GiYozAJEJ5hAjZ6FG) anyone has any comments on it?

C0rWin (Wed, 05 Dec 2018 21:17:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=3LFByREufT7AGe3xW) @umershabbir What are the exact question?

C0rWin (Wed, 05 Dec 2018 21:18:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=B7hG76YFdHM5MENsS) @kevinkbc this should be the full path to your chaincode

C0rWin (Wed, 05 Dec 2018 21:19:26 GMT):
> I cant seem to find build/bin/peer have you @kevinkbc downloaded binaries? can you share here the link to docs/tutorial you are using?

umershabbir (Wed, 05 Dec 2018 21:45:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=kMyXtJk2fFnhM9jqC) @C0rWin hello @C0rWin I need an end to end sample to create and fetch private data using Java SDK.

umershabbir (Wed, 05 Dec 2018 21:50:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Gssp4pSunDtY6NvYX) @C0rWin currently I have build a java program using fabric java sdk to create and fetch data from chaincode, currently I have 2 orgs joining that channel I created but I have a requirement where only one org could see the subset of data and other org could see the entire data in a single channel. As I went through multiple articles, I got to know that this could be achieved using private data and set the policy in the config file about who could see that private data on a single channel

umershabbir (Wed, 05 Dec 2018 21:50:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Gssp4pSunDtY6NvYX) @C0rWin currently I have a java program using fabric java sdk to create and fetch data from chaincode from a single channel, currently I have 2 orgs joining that channel but I have a requirement where only one org should see the whole data whereas the second org should only see the subset of data. As I gone through multiple articles, I got to know that this could be achieved using private data and set the policy in the config files about who could see that private data in a chaincode

umershabbir (Wed, 05 Dec 2018 21:50:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Gssp4pSunDtY6NvYX) @C0rWin currently I have a java program using fabric java sdk to create and fetch data from chaincode from a single channel, currently I have 2 orgs joining that channel but I have a requirement where only one org should see the whole data whereas the second org should only see the subset of data. As I gone through multiple articles, I got to know that this could be achieved using private data and set the policy in the config files about who could see that private data in a chaincode. If you could help me and send me a step by step sample code to implement and use private data using fabric java sdk

whoneedi (Thu, 06 Dec 2018 05:52:54 GMT):
Has joined the channel.

kevinkbc (Thu, 06 Dec 2018 13:09:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Zf4rJdLsZid4s6q7X) @C0rWin i followed this tutorial https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.3/TUTORIAL.md I have downloaded fabric samples and this https://github.com/hyperledger/fabric-chaincode-java/ Do i need to download fabric core?

C0rWin (Thu, 06 Dec 2018 13:36:30 GMT):
@kevinkbc https://hyperledger-fabric.readthedocs.io/en/release-1.3/prereqs.html, please follow this one

kevinkbc (Thu, 06 Dec 2018 15:15:12 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Zf5cgZFS86K6es6yk) @C0rWin I'll try that

kevinkbc (Thu, 06 Dec 2018 15:18:24 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Zf5cgZFS86K6es6yk) @C0rWin I already that one when I did the linux foundation course on edx

kevinkbc (Thu, 06 Dec 2018 15:18:58 GMT):
So I get like the first network running and install my chaincode on that?

C0rWin (Thu, 06 Dec 2018 15:19:27 GMT):
no, you just need to make sure you have required binaries available on your computer

whoneedi (Fri, 07 Dec 2018 02:36:57 GMT):
fabric 1.3 java sdk demo about new event , where can be found?

kevinkbc (Fri, 07 Dec 2018 19:13:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=ra2zBtJs4yMZQEJPh) @C0rWin ok, I have the binaries. How do I install mu java chaincode?

kevinkbc (Fri, 07 Dec 2018 19:13:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=ra2zBtJs4yMZQEJPh) @C0rWin ok, I have the binaries. How do I install my java chaincode?

C0rWin (Fri, 07 Dec 2018 23:42:16 GMT):
You should now follow the tutorial you have tried first, now you have peer binary

muhaoying (Sat, 08 Dec 2018 13:06:01 GMT):
Has joined the channel.

kevinkbc (Mon, 10 Dec 2018 12:48:07 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=MRH8P5KsGQrWdPGut) @C0rWin can you give me an example of ?

KenvinNguyen (Tue, 11 Dec 2018 04:44:49 GMT):
Has joined the channel.

C0rWin (Tue, 11 Dec 2018 09:09:42 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=yKhwypPdwW7gsxKL8) @kevinkbc it should be path to your project something like `/home/user/java_cc`

techragesh (Tue, 11 Dec 2018 09:26:09 GMT):
Has joined the channel.

whoneedi (Wed, 12 Dec 2018 01:12:12 GMT):
Can I develop java chain code in development mode? What should I do?

whoneedi (Wed, 12 Dec 2018 02:26:43 GMT):
@C0rWin @kevinkbc hello,

prashantsingh21 (Thu, 13 Dec 2018 10:55:15 GMT):
Has joined the channel.

prashantsingh21 (Thu, 13 Dec 2018 10:56:11 GMT):
Hi I am facing issue while instantiating a java chaincode

prashantsingh21 (Thu, 13 Dec 2018 10:56:29 GMT):
Installtion of chain code was successfull

gennadyl (Thu, 13 Dec 2018 10:56:49 GMT):
Can you publish your build.gradle file?

prashantsingh21 (Thu, 13 Dec 2018 10:57:17 GMT):

Chaicode-Install-Instantiate-Logs.txt

prashantsingh21 (Thu, 13 Dec 2018 10:57:42 GMT):
@gennadyl I am not using gradle for build. I am using maven. Sharing its pom.xml

prashantsingh21 (Thu, 13 Dec 2018 10:59:15 GMT):

pomxml_as_text.txt

prashantsingh21 (Thu, 13 Dec 2018 10:59:35 GMT):
I can share chainoode sample program as well, if required

gennadyl (Thu, 13 Dec 2018 11:03:53 GMT):
We not support maven at this time, we even have jira issue (FAB-12504) for that

gennadyl (Thu, 13 Dec 2018 11:04:05 GMT):
Can you rewrite it with gradle?

gennadyl (Thu, 13 Dec 2018 11:08:05 GMT):
In any case, you missed this configuration for shade plugin: `chaincode`

gennadyl (Thu, 13 Dec 2018 11:09:16 GMT):
@prashantsingh21 ?

gennadyl (Thu, 13 Dec 2018 11:10:34 GMT):
But even this change will not fix your problem

gennadyl (Thu, 13 Dec 2018 11:10:50 GMT):
Please you gradle

prashantsingh21 (Fri, 14 Dec 2018 03:15:25 GMT):
@gennadyl Thanks for the inputs. Have not tried it yet. Will update you soon.

kevinkbc (Fri, 14 Dec 2018 13:39:57 GMT):
hello i am starting again because i saw there was a issue with maven

kevinkbc (Fri, 14 Dec 2018 13:40:18 GMT):
i saw there was release 1.4 and switched to that

kevinkbc (Fri, 14 Dec 2018 13:40:45 GMT):
when i do gradlew clean build install, the build fails

kevinkbc (Fri, 14 Dec 2018 13:41:19 GMT):
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':fabric-chaincode-docker:buildImage'. > Could not build image: The command '/bin/bash -c source /root/.sdkman/bin/sdkman-init.sh; gradle clean' returned a non-zero code: 1 * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':fabric-chaincode-docker:buildImage'.

kevinkbc (Fri, 14 Dec 2018 13:41:54 GMT):
I can add the stacktrace in a file if that helps

kevinkbc (Fri, 14 Dec 2018 14:00:53 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=yenNapw5BMiEtAxmb) @C0rWin

kevinkbc (Mon, 17 Dec 2018 12:01:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=xtSWrbA86ku4HW8rG) i think it solved when i did the "gradle buildImage" separately

C0rWin (Mon, 17 Dec 2018 13:02:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=dRYCCHNwQTLAETvco) @kevinkbc why are you building everything locally though? docker images has been published to docker hub and java artifact is available on maven central, did you experience to use it as it?

kevinkbc (Mon, 17 Dec 2018 13:09:44 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=AEM7bcyQG49ond9nW) @C0rWin i saw that on faq and tried, after that i used maven central

kevinkbc (Tue, 18 Dec 2018 13:32:14 GMT):
@C0rWin do you recommend installing the java chaincode from this https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/TUTORIAL.md on the byfn? If not, what do you recommend?

kevinkbc (Tue, 18 Dec 2018 20:44:13 GMT):
successfully installed the chaincode sacc

kevinkbc (Tue, 18 Dec 2018 20:44:32 GMT):
but when I tried to instantiate I got "could not assemble transaction, err proposal response was not successful, error code 500, msg transaction returned with failure: Failed to create asset"

kevinkbc (Tue, 18 Dec 2018 20:45:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=6RAsuHjP9RRabkWJk) @gennadyl i saw on jira this is a generic error msg? How to debug this?

smartheye (Wed, 19 Dec 2018 04:13:14 GMT):
Has joined the channel.

shivann (Wed, 19 Dec 2018 09:08:21 GMT):
Has joined the channel.

C0rWin (Wed, 19 Dec 2018 12:15:15 GMT):
what is the jira number @gennadyl @kevinkbc ?

kevinkbc (Wed, 19 Dec 2018 12:23:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=uzKkjWv78TPhvEt8e) @C0rWin this one https://jira.hyperledger.org/browse/FAB-12960

shivann (Thu, 20 Dec 2018 05:12:00 GMT):
jar

shivann (Thu, 20 Dec 2018 05:24:13 GMT):
Hi Team, How java chaincode in jar format can be instantiate in fabric v1.3? thanks in advance.

shivann (Thu, 20 Dec 2018 12:21:16 GMT):
@JanRzepecki, I am trying to deploy java chaincode using jar file, but how can i stop java-runtime image creation while CC instantiation?

kevinkbc (Thu, 20 Dec 2018 15:56:15 GMT):
@C0rWin @gennadyl i succesfully installed a java chaincode, but when I get to the instantiate part, i get a timeout "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode mycc:0 for transaction" The most related I found was this https://stackoverflow.com/a/53221489 (Go is fine, java times out) with no solution on this topic

kevinkbc (Thu, 20 Dec 2018 15:56:56 GMT):
I was using chaincode-docker-devmode

kevinkbc (Thu, 20 Dec 2018 16:34:08 GMT):

peer-timeout.log

gennadyl (Thu, 27 Dec 2018 09:08:58 GMT):
@kevinkbc Sorry for delay, was off for last 2 weeks. Can you send logs of docker container that suppose to run chaincode?

uboznikov (Tue, 01 Jan 2019 08:10:05 GMT):
Has joined the channel.

skykira (Thu, 03 Jan 2019 03:59:36 GMT):
Has joined the channel.

skykira (Thu, 03 Jan 2019 04:52:05 GMT):
Can anyone tell me how I use `getCreator()` to get the pem, thanks

skykira (Thu, 03 Jan 2019 08:15:36 GMT):
oh, I got it..

xaviarias (Thu, 03 Jan 2019 11:03:04 GMT):
Has joined the channel.

kevinkbc (Thu, 03 Jan 2019 19:14:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=TkQpqMKDXPmtmY453) @gennadyl @gennadyl i dont have them anymore. I am focusing in other stuff right now. Thank you for the help anyway

StefanKosc (Fri, 04 Jan 2019 09:02:58 GMT):
Has joined the channel.

liaoruohuai (Fri, 04 Jan 2019 11:24:13 GMT):
Has joined the channel.

BingoYan (Mon, 07 Jan 2019 02:34:03 GMT):
Has joined the channel.

davidkel (Mon, 07 Jan 2019 17:23:55 GMT):
Has joined the channel.

raviranjan14 (Wed, 09 Jan 2019 12:41:43 GMT):
Has joined the channel.

Bentipe (Sun, 13 Jan 2019 09:54:30 GMT):
Has joined the channel.

Bentipe (Sun, 13 Jan 2019 10:03:14 GMT):
Hello Guys, I am having an error on instantiating the java chaincode, this is the following error: ``` 2019-01-10 07:43:44.504 UTC [chaincode.platform.java] GenerateDockerBuild -> ERRO 3e9 Can't build java chaincode Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " 2019-01-10 07:43:44.505 UTC [chaincode.platform] func1 -> ERRO 3ea Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " 2019-01-10 07:43:44.505 UTC [dockercontroller] deployImage -> ERRO 3eb Error building image: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1:./build.sh: not found " 2019-01-10 07:43:44.505 UTC [dockercontroller] deployImage -> ERRO 3ec Build Output: ******************** ******************** 2019-01-10 07:43:44.507 UTC [endorser] callChaincode -> INFO 3ed [channel][6ba7c224] Exit chaincode: name:"lscc" (1563ms) 2019-01-10 07:43:44.507 UTC [endorser] SimulateProposal -> ERRO 3ee [channel][6ba7c224] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " error starting container error starting container ``` I am using the gradle chaincode that is available on github: https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/TUTORIAL.md

Bentipe (Sun, 13 Jan 2019 10:03:14 GMT):
Hello Guys, I am having an error on instantiating the java chaincode, this is the following error: ``` 2019-01-10 07:43:44.504 UTC [chaincode.platform.java] GenerateDockerBuild -> ERRO 3e9 Can't build java chaincode Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " 2019-01-10 07:43:44.505 UTC [chaincode.platform] func1 -> ERRO 3ea Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " 2019-01-10 07:43:44.505 UTC [dockercontroller] deployImage -> ERRO 3eb Error building image: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1:./build.sh: not found " 2019-01-10 07:43:44.505 UTC [dockercontroller] deployImage -> ERRO 3ec Build Output: ******************** ******************** 2019-01-10 07:43:44.507 UTC [endorser] callChaincode -> INFO 3ed [channel][6ba7c224] Exit chaincode: name:"lscc" (1563ms) 2019-01-10 07:43:44.507 UTC [endorser] SimulateProposal -> ERRO 3ee [channel][6ba7c224] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " error starting container error starting container ``` Orderer logs ``` WARN 014 Error reading from 172.30.0.2:56578: rpc error: code = Canceled desc = context canceled `` I am using the gradle chaincode that is available on github: https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/TUTORIAL.md

Bentipe (Sun, 13 Jan 2019 10:03:14 GMT):
Hello Guys, I am having an error on instantiating the java chaincode, this is the following error: ``` 2019-01-10 07:43:44.504 UTC [chaincode.platform.java] GenerateDockerBuild -> ERRO 3e9 Can't build java chaincode Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " 2019-01-10 07:43:44.505 UTC [chaincode.platform] func1 -> ERRO 3ea Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " 2019-01-10 07:43:44.505 UTC [dockercontroller] deployImage -> ERRO 3eb Error building image: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1:./build.sh: not found " 2019-01-10 07:43:44.505 UTC [dockercontroller] deployImage -> ERRO 3ec Build Output: ******************** ******************** 2019-01-10 07:43:44.507 UTC [endorser] callChaincode -> INFO 3ed [channel][6ba7c224] Exit chaincode: name:"lscc" (1563ms) 2019-01-10 07:43:44.507 UTC [endorser] SimulateProposal -> ERRO 3ee [channel][6ba7c224] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found " error starting container error starting container ``` Orderer logs ``` WARN 014 Error reading from 172.30.0.2:56578: rpc error: code = Canceled desc = context canceled ``` I am using the gradle chaincode that is available on github: https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/TUTORIAL.md

Bentipe (Mon, 14 Jan 2019 12:55:00 GMT):
anyone?

Bentipe (Mon, 14 Jan 2019 14:13:11 GMT):
has anyone tried java chaincodes in production?

viktoriya (Mon, 14 Jan 2019 22:16:26 GMT):
Has joined the channel.

KenvinNguyen (Tue, 15 Jan 2019 09:51:54 GMT):
in the java-sdk I had tried to invoke function to add new block, but as I know one block can contain multiple transaction so how we can put multiple transaction into 1 block?

KenvinNguyen (Tue, 15 Jan 2019 09:51:54 GMT):
in the java chaincode I had tried to invoke function to add new block, but as I know one block can contain multiple transaction so how we can put multiple transaction into 1 block?

Bentipe (Tue, 15 Jan 2019 10:03:05 GMT):
As far as I know that has to do with the orderer configuration

dave.enyeart (Tue, 15 Jan 2019 10:03:31 GMT):
You could increase BatchTimeout and then send two transactions within that amount of time, see: https://github.com/hyperledger/fabric-samples/blob/release-1.4/first-network/configtx.yaml#L214

Bentipe (Tue, 15 Jan 2019 11:24:43 GMT):
hmmm

Bentipe (Tue, 15 Jan 2019 11:25:41 GMT):
when I instaantiate the java chaincode is giving me a timeout with the following error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode jchaincode:3 for transaction

Bentipe (Tue, 15 Jan 2019 11:25:41 GMT):
when I instaantiate the java chaincode is giving me a timeout with the following error: ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg timeout expired while starting chaincode jchaincode:3 for transaction ```

Bentipe (Tue, 15 Jan 2019 11:27:00 GMT):
why it might be?

Bentipe (Tue, 15 Jan 2019 11:27:13 GMT):
the orderers and the peers dont give any more information

Bentipe (Tue, 15 Jan 2019 14:01:09 GMT):
hey guys, are there any unit testing examples?

gaijinviki (Thu, 17 Jan 2019 05:00:14 GMT):
Has joined the channel.

basantanickal (Fri, 18 Jan 2019 12:40:59 GMT):
Has joined the channel.

basantanickal (Mon, 21 Jan 2019 06:33:33 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Tvh2beG7Xwde2yJDc) @Bentipe Hi @Bentipe , did you resolve this problem? I facing the exact problem myself. Help me out if you had any luck

pumicerD (Mon, 21 Jan 2019 19:40:08 GMT):
Has joined the channel.

robert.feng (Tue, 22 Jan 2019 11:53:16 GMT):
Has joined the channel.

robert.feng (Tue, 22 Jan 2019 11:54:29 GMT):
* What went wrong: Could not resolve all files for configuration ':compileClasspath'. > Could not find org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4.1-SNAPSHOT. Searched in the following locations: file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/maven-metadata.xml file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.pom file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.jar https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/maven-metadata.xml https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.pom https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.jar Required by: * What went wrong: Could not resolve all files for configuration ':compileClasspath'. > Could not find org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4.1-SNAPSHOT. Searched in the following locations: file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/maven-metadata.xml file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.pom file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.jar https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/maven-metadata.xml https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.pom * What went wrong: Could not resolve all files for configuration ':compileClasspath'. > Could not find org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4.1-SNAPSHOT. Searched in the following locations: file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/maven-metadata.xml file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.pom file:/root/.m2/repository/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.jar https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/maven-metadata.xml https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.pom https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.4.1-SNAPSHOT/fabric-chaincode-shim-1.4.1-SNAPSHOT.jar Required by:

robert.feng (Tue, 22 Jan 2019 11:54:47 GMT):
I am using the gradle chaincode that is available on github: https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/TUTORIAL.md

pumicerD (Tue, 22 Jan 2019 11:57:45 GMT):
@robert.feng did you check the steps at https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/FAQ.md ?

Jamie (Tue, 22 Jan 2019 17:09:07 GMT):
Has joined the channel.

gennadyl (Tue, 22 Jan 2019 19:12:11 GMT):
@robert.feng Can you publish `docker images` output and build.gradle for your chaincode

youngsunglee (Wed, 23 Jan 2019 07:34:49 GMT):
Has joined the channel.

youngsunglee (Wed, 23 Jan 2019 07:35:38 GMT):
Should I use Java or Go for chain code development?

AkhilKura (Wed, 23 Jan 2019 09:24:47 GMT):
Has joined the channel.

dan13 (Wed, 23 Jan 2019 15:47:58 GMT):
Has joined the channel.

bajwa (Thu, 24 Jan 2019 19:00:07 GMT):
Has joined the channel.

Pradeep_Pentakota (Sat, 26 Jan 2019 13:43:17 GMT):
Has joined the channel.

gennadyl (Sun, 27 Jan 2019 21:25:45 GMT):
@youngsunglee It depends what language do you like...

frgomes (Mon, 28 Jan 2019 14:59:28 GMT):
Has joined the channel.

albert.lacambra (Tue, 29 Jan 2019 21:33:13 GMT):
look @gennadyl

albert.lacambra (Tue, 29 Jan 2019 21:33:19 GMT):
that should work

albert.lacambra (Tue, 29 Jan 2019 21:33:24 GMT):

Clipboard - January 29, 2019 10:33 PM

albert.lacambra (Tue, 29 Jan 2019 21:33:37 GMT):
I have tested it with your mock peer

albert.lacambra (Tue, 29 Jan 2019 21:34:04 GMT):
we should create actually make that the mock peer uses a temp storage

albert.lacambra (Tue, 29 Jan 2019 21:34:40 GMT):
mostly now that dev mode is kinf of death

albert.lacambra (Tue, 29 Jan 2019 21:34:57 GMT):
at least a test with PUT and GET should be easy

albert.lacambra (Tue, 29 Jan 2019 21:35:53 GMT):
what do you think?

bdjidi (Wed, 30 Jan 2019 20:12:02 GMT):
Has left the channel.

AkhilKura (Thu, 31 Jan 2019 08:28:35 GMT):
Error: Error trying to ping. Error: 2 UNKNOWN: access denied: channel [composerchannel] creator org [Org1MSP] Command failed

AkhilKura (Thu, 31 Jan 2019 08:28:47 GMT):
how to solve this issue

Bentipe (Thu, 31 Jan 2019 09:13:24 GMT):
hey @basantanickal yup, I managed to do fix it, there may be some problems there, first check that when you send the command instead of using the relative path as is needed in go, use the full path, also be sure to have the main method in your code

Bentipe (Thu, 31 Jan 2019 09:14:14 GMT):
The java chaincode interface does not give many clues of what the errors are It always gives or a timeout or that error

Bentipe (Thu, 31 Jan 2019 09:15:18 GMT):
Also, be sure to have all the project with the build.gradle and all, fabric is going to build it

Bentipe (Thu, 31 Jan 2019 09:15:57 GMT):
Also be sure not to have the build inside subprojects, It has to be one by itslef

gennadyl (Thu, 31 Jan 2019 18:36:11 GMT):
@AkhilKura Can you give little bit more information?

Doug-K1 (Fri, 01 Feb 2019 19:09:18 GMT):
Has joined the channel.

patmc (Sat, 02 Feb 2019 16:17:17 GMT):
Has joined the channel.

pumicerD (Sat, 02 Feb 2019 17:30:07 GMT):
Hi, I can install and instantiate Java chaincode just fine through the SDK But when I try to install through command line, I get the following error complaining about the path I give being a directory : `[java/hash] collectChaincodeFiles -> ERRO 003 Error reading read : is a directory Error: error getting chaincode code overbooking: error getting chaincode package bytes: read : is a directory` where is the path to my chaincode source folder Is there something I am missing ? My installation command (ran from the _cli_ container with the chaincode source folder mounted as a volume, enrolled as an organization admin) : `peer chaincode install -n mycc -l java -v 1.0 -p `

AsifJaved (Sun, 03 Feb 2019 20:13:08 GMT):
hi everyone, how can i create an purely Android App with hyperledger fabric integeration ?????

gennadyl (Tue, 05 Feb 2019 15:09:28 GMT):
@pumicerD Do you point to gradle project folder or to src folder inside it?

gennadyl (Tue, 05 Feb 2019 15:10:52 GMT):
@AsifJaved What do you mean by "with hyperledger fabric integeration"?

pumicerD (Tue, 05 Feb 2019 15:24:59 GMT):
@gennadyl the gradle project folder, since I need the _build.gradle_ file right ?

gennadyl (Tue, 05 Feb 2019 15:33:30 GMT):
@pumicerD yep

gennadyl (Tue, 05 Feb 2019 15:39:36 GMT):
@pumicerD Did you used absolute path?

pumicerD (Tue, 05 Feb 2019 15:47:40 GMT):
@gennadyl yes I used the absolute path

gennadyl (Tue, 05 Feb 2019 16:00:05 GMT):
sounds strange

alek (Thu, 07 Feb 2019 10:32:50 GMT):
Hi guys, i have a question relating chaincode in java. It's supported since 1.3 (for gradle project only and since 1.4 also for maven) and i am wondering if there are any restrictions/ features that are not yet implemented for Java chaincode but are supported in node js and go lang. So basically the question is if would you recommend using java chaincode when going on production orrather stick with go or node js ?

C0rWin (Thu, 07 Feb 2019 14:32:37 GMT):
@alek the features parity was closed in 1.4. So all features are available in java shim now

alek (Thu, 07 Feb 2019 14:44:44 GMT):
@C0rWin thank you !

dan13 (Thu, 07 Feb 2019 18:16:20 GMT):
@alek nodejs supports the new programming model -- more business-level abstractions -- which you may be interested in

dan13 (Thu, 07 Feb 2019 18:16:20 GMT):
@alek nodejs supports the new programming model -- more business-level abstractions -- which you may be interested in, see link on #fabric-chaincode-dev (recently posted)

dan13 (Thu, 07 Feb 2019 18:16:20 GMT):
@alek nodejs supports the new programming model -- more business-level abstractions -- which you may be interested in, see: https://chat.hyperledger.org/file-upload/tRETp3GfbQNkoFBcj/Fabric%20Developer%20-%20Feb%207th%202019.pdf

alek (Mon, 11 Feb 2019 10:49:32 GMT):
@dan13 @C0rWin , so it means that there are more functionalities added in nodejs than in `java` or `go` ?Do you know what are plans for next releases i mean if it's possible that one language will have precedence with new features than others so for example some features will be implemented in `go` and in later version in other languages ?

alek (Mon, 11 Feb 2019 10:49:32 GMT):
@dan13 @C0rWin , so it means that there are more functionalities added in nodejs than in `java` or `go` ?Do you know what are plans for next releases i mean if it's possible that one language will have precedence with new features than others and some features will be implemented in `go` and in later version in other languages ?

dan13 (Mon, 11 Feb 2019 15:34:16 GMT):
@alek With respect to the new programming model, Java (https://jira.hyperledger.org/browse/FABJ-400) is scheduled to match Node with HLF 2.0, Go is said to be "prototype" through HLF 2.0 (no scheduled release that I know of). I have no idea if this indicates any strategy (i., Node first) going forward -- certainly no one said that that I know of. Probably a combination of availability of the team to work it and perhaps ease of transition from Composer (my guess)

dan13 (Mon, 11 Feb 2019 15:34:16 GMT):
@alek With respect to the new programming model, Java (https://jira.hyperledger.org/browse/FABJ-400) is scheduled to match Node with HLF 2.0, Go is said to be "prototype" through HLF 2.0 (no scheduled release that I know of). I have no idea if this indicates any strategy (i., Node first) going forward -- certainly no one said that that I know of. Probably a combination of availability of the team to work it and perhaps ease of transition from Composer (my guess). See the recording of the recent dev community call here: https://wiki.hyperledger.org/display/fabric/Community-Call-Recordings

alek (Mon, 11 Feb 2019 15:53:01 GMT):
Thanks @dan13 , but as i can see new programming model will affect SDK, not chaincode, right ?

dan13 (Mon, 11 Feb 2019 15:58:42 GMT):
@alek As I understand it, both sides -- defining "Contract" and "Transactions" is chaincode change, being able to using those definitions on client is SDK change. I think (hope?) that eventually mixing and matching (e.g., Java SDK with Go chaincode) will all work and be seamless, however, if you want new programming model it is Node Client and Node Chaincode for now. Watching the first 3/4 of the call linked above (translating from Composer may not be of interest, depending) will be worth your time.

alek (Mon, 11 Feb 2019 16:00:04 GMT):
@dan13 , so will watch that, thanks for a help !

dan13 (Tue, 12 Feb 2019 22:20:23 GMT):
Following instructions here: https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/FAQ.md with gradle 4.4.1, failing gradle clean build install with "Task 'clean' not found in root project 'shim-src'" - any ideas?

alek (Tue, 12 Feb 2019 22:26:23 GMT):
@dan13 i am not sure what is a root cause of your issue but i wrote an tutorial about deploying sample chaincode (java witth gradle) in 1.4 so maybe would be helpful: https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3

SatoshiNishishita (Wed, 13 Feb 2019 01:27:48 GMT):
Has joined the channel.

glennd (Wed, 13 Feb 2019 14:01:58 GMT):
Has joined the channel.

dan13 (Wed, 13 Feb 2019 15:00:28 GMT):
@alek looks great, thank you!

saketkmr (Fri, 15 Feb 2019 16:58:49 GMT):
Has joined the channel.

gennadyl (Sun, 17 Feb 2019 10:15:23 GMT):
@alek Regarding your tutorial - look good, just one note - I couldn't find chaincode sources...

gennadyl (Sun, 17 Feb 2019 10:15:23 GMT):
@alek Regarding your tutorial - looks good, just one note - I couldn't find chaincode sources...

dan13 (Sun, 17 Feb 2019 21:03:39 GMT):
@gennadyl see: https://github.com/alek-sobol/hyperledgerfabric-tutorial/tree/master/java-chaincode/carmileage-tracking/src/main/java/tutorial/chaincode

saketkmr (Mon, 18 Feb 2019 14:45:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Ai7TJavp2e5gChbCX) @gennadyl I got source code for chaincode. This looks clean. Now we are making changes in that according to add some other functions. Is there any way to debug chaincode? While adding the function we need to follow all steps to UP and Down the network. If there is a way to debug then please suggest.

alek (Wed, 20 Feb 2019 20:28:54 GMT):
@saketkmr beeing honest i didn't debug it. Actually that's why i covered whole functionality unit tests. But anyway it's just docker container with running java application inside so it should be possible

bram209 (Wed, 20 Feb 2019 21:37:07 GMT):
Has joined the channel.

bram209 (Wed, 20 Feb 2019 21:37:10 GMT):
Hi all, I am trying to install and instantiate a java chaincode. Installing works fine `[lscc] executeInstall -> INFO 039 Installed Chaincode [chaincode-token] Version [1] to peer`, but for some reason instantiating (building the chaincode) goes wrong.

bram209 (Wed, 20 Feb 2019 21:37:30 GMT):
``` ``` 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.068 s [INFO] Finished at: 2019-02-20T21:18:13Z [INFO] Final Memory: 7M/240M [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/chaincode/input/src). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build " ``` ```

bram209 (Wed, 20 Feb 2019 21:37:30 GMT):
``` ``` 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.068 s [INFO] Finished at: 2019-02-20T21:18:13Z [INFO] Final Memory: 7M/240M [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/chaincode/input/src). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build " ```

bram209 (Wed, 20 Feb 2019 21:37:30 GMT):
``` ``` 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.068 s [INFO] Finished at: 2019-02-20T21:18:13Z [INFO] Final Memory: 7M/240M [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/chaincode/input/src). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build "

bram209 (Wed, 20 Feb 2019 21:37:30 GMT):
``` 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.068 s [INFO] Finished at: 2019-02-20T21:18:13Z [INFO] Final Memory: 7M/240M [INFO] ------------------------------------------------------------------------ [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/chaincode/input/src). Please verify you invoked Maven from the correct directory. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException 2019-02-20 21:18:13.651 UTC [endorser] SimulateProposal -> ERRO 046 [mychannel][0d4bb32c] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "Maven build "

bram209 (Wed, 20 Feb 2019 21:39:47 GMT):
the chaincode gets installed through the system cc: lscc right, am I correct that the source artifact is stored on this system chaincode it's state?

bram209 (Wed, 20 Feb 2019 21:39:47 GMT):
the chaincode gets installed through the system cc: lscc, am I correct to assume that the source artifact is stored on this system chaincode it's state?

bram209 (Wed, 20 Feb 2019 21:39:47 GMT):
the chaincode gets installed through the system cc: lscc, am I correct to assume that the source artifact is stored on this system chaincode it's state?

bram209 (Wed, 20 Feb 2019 21:54:10 GMT):
anybody a idea what goes wrong?

alek (Wed, 20 Feb 2019 22:01:02 GMT):
@bram209 did you build jar before instantiating ?

bram209 (Wed, 20 Feb 2019 22:07:02 GMT):
yes I did

bram209 (Wed, 20 Feb 2019 22:08:01 GMT):
but shoudn't it build the source for you? Or why is it running maven build?

alek (Wed, 20 Feb 2019 22:09:48 GMT):
are you making a jar using maven or gradle ?

bram209 (Wed, 20 Feb 2019 22:11:59 GMT):
gradle, but wait, im double checking config and i put SimpleToken as main class, but I copied the example which is SimpleAsset

bram209 (Wed, 20 Feb 2019 22:12:36 GMT):
But am I supposed to build a jar before installing it?

bram209 (Wed, 20 Feb 2019 22:18:00 GMT):
``` 2019-02-20 22:16:33.486 UTC [endorser] callChaincode -> INFO 036 [][2ef62e72] Entry chaincode: name:"lscc" 2019-02-20 22:16:34.182 UTC [lscc] executeInstall -> INFO 037 Installed Chaincode [chaincode-token] Version [1] to peer 2019-02-20 22:16:34.182 UTC [endorser] callChaincode -> INFO 038 [][2ef62e72] Exit chaincode: name:"lscc" (696ms) ```

bram209 (Wed, 20 Feb 2019 22:18:06 GMT):
Installing goes fine

bram209 (Wed, 20 Feb 2019 22:18:57 GMT):
A build error would be fine, but the problem is that it is simply stating that it can't find a maven project at /chaincode/input/src (Note that I am using gradle and don't have any POM file)

bram209 (Wed, 20 Feb 2019 22:19:06 GMT):
I am using hyperledger 1.4 btw

alek (Wed, 20 Feb 2019 22:19:21 GMT):
yes, jar should be created before installation and instantiation

bram209 (Wed, 20 Feb 2019 22:19:49 GMT):
What should be the name of the jar?

bram209 (Wed, 20 Feb 2019 22:20:05 GMT):
mine is `chaincode.jar`

alek (Wed, 20 Feb 2019 22:20:16 GMT):
i struggled exact the same error message and i was building project using gradle as well.

bram209 (Wed, 20 Feb 2019 22:20:30 GMT):
at `projectdir/build/libs/chaincode.jar`

bram209 (Wed, 20 Feb 2019 22:20:44 GMT):
how did you resolve it?

alek (Wed, 20 Feb 2019 22:21:18 GMT):
i created jar before installing and instantiation

bram209 (Wed, 20 Feb 2019 22:21:24 GMT):
with building a jar, u are talking about a fat jar right (shadowJar task)

bram209 (Wed, 20 Feb 2019 22:21:44 GMT):
What is the name of your jar?

alek (Wed, 20 Feb 2019 22:23:47 GMT):
`chaincode.jar`

bram209 (Wed, 20 Feb 2019 22:54:46 GMT):
Uhm actually I think I know the problem, I just checked the docker file and it should build the chaincode, however it is using Gradle 4.6, and I'm using the kotlin Gradle DSL, will try to run it through the same Gradle version but I think it should have the kotlin DSL included from Gradle 4.1+...

bram209 (Wed, 20 Feb 2019 22:55:28 GMT):
Actually I will just build and run the javaenv docker image myself and see if it builds the project

bram209 (Wed, 20 Feb 2019 23:03:13 GMT):
```buf = append(buf, "FROM "+cutil.GetDockerfileFromConfig("chaincode.java.runtime")) buf = append(buf, "ADD binpackage.tar /root/chaincode-java/chaincode")```

bram209 (Wed, 20 Feb 2019 23:04:22 GMT):
In fabric source code, they add the package to `/root/chaincode-java/chaincode`, and I assume the default java runtime is the following docker image:

bram209 (Wed, 20 Feb 2019 23:06:33 GMT):
https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/fabric-chaincode-docker/Dockerfile

bram209 (Wed, 20 Feb 2019 23:07:55 GMT):
Can someone tell me if something shouldn't be copied into `/chaincode/input`?

bram209 (Wed, 20 Feb 2019 23:11:44 GMT):
Ok fixed the problem, will make a small PR tomorrow

YSZYCF (Mon, 25 Feb 2019 09:13:27 GMT):
Has joined the channel.

YSZYCF (Mon, 25 Feb 2019 09:13:36 GMT):
hey, I am trying to write fabric system-chaincode Plugins. I don't know how to do. I don't know How to use system-chaincode Plugins. Can you help me?

gennadyl (Mon, 25 Feb 2019 15:10:06 GMT):
I think you should ask in #fabric-questions

gennadyl (Mon, 25 Feb 2019 15:10:06 GMT):
@YSZYCF I think you should ask in #fabric-questions

YSZYCF (Tue, 26 Feb 2019 05:18:00 GMT):

企业微信截图_15511535127267.png

gennadyl (Tue, 26 Feb 2019 10:31:41 GMT):
@YSZYCF I think is it java sdk problem. You can ask about it in #fabric-sdk-java channel

icordoba (Tue, 26 Feb 2019 18:08:06 GMT):
Hello I am developing a Wallet type application in Java chaincode with basically 2 models, Wallet and MoneyTransfer. MoneyTransfer has properties for the from Wallet and target Wallet ids. I have not found examples of how to code in the chaincode a query method to fetch, for example, all MoneyTransfer's for a specific wallet. Any URL for doc or help on how to do this? (Samples I have found just fetch models by Id from ChaincodeStub) Thanks.

dan13 (Wed, 27 Feb 2019 14:49:24 GMT):
@icordoba I have not done this yet myself, but 2 ways I can think of: 1) With CouchDB, use getQueryResult to execute a rich query using CouchDB selectors, 2) Use a composite key of wallet+ for money transfers, and getStateByPartialCompositeKey passing the wallet

icordoba (Wed, 27 Feb 2019 15:15:13 GMT):
thanks @dan13

meiblorn (Sat, 02 Mar 2019 18:48:56 GMT):
Has joined the channel.

meiblorn (Sat, 02 Mar 2019 20:57:57 GMT):
Hi, As I've discovered code, `hfclient.getChannel(name)` work as intermediate cache and does not preload all channels that available in fabric for the provided user context. In this code snippet below I am trying to create it and if I get an exception, I assume that channel already exists. So, I am interested, is there any more convenient way to rejoin channel? Thanks ` Channel channel; try { byte[] channelConfigurationSignature = getChannelConfigurationSignature(channelConfiguration, getUserContext()); channel = newChannel(name, orderer, channelConfiguration, channelConfigurationSignature); } catch (TransactionException e) { channel = newChannel(name); channel.addOrderer(orderer); } `

meiblorn (Sat, 02 Mar 2019 20:57:57 GMT):
Hi, As I've discovered code, `hfclient.getChannel(name)` work as intermediate cache and does not preload all channels that available in fabric for the provided user context. In this code snippet below I am trying to create it and if I get an exception, I assume that channel already exists. So, I am interested, is there any more convenient way to rejoin channel? Thanks ` Channel channel; try { byte[] channelConfigurationSignature = getChannelConfigurationSignature(channelConfiguration, getUserContext()); channel = newChannel(name, orderer, channelConfiguration, channelConfigurationSignature); } catch (TransactionException e) { channel = newChannel(name); channel.addOrderer(orderer); } ` It would be great to have something like ` if (hfClient.getChannel(chName) != null) { ... join ... } else { ... try create ... }

meiblorn (Sat, 02 Mar 2019 20:57:57 GMT):
Hi, As I've discovered code, `hfclient.getChannel(name)` work as intermediate cache and does not preload all channels that available in fabric for the provided user context. In this code snippet below I am trying to create it and if I get an exception, I assume that channel already exists. So, I am interested, is there any more convenient way to rejoin channel? Thanks ` Channel channel; try { byte[] channelConfigurationSignature = getChannelConfigurationSignature(channelConfiguration, getUserContext()); channel = newChannel(name, orderer, channelConfiguration, channelConfigurationSignature); } catch (TransactionException e) { channel = newChannel(name); channel.addOrderer(orderer); } ` It would be great to have something like ` if (hfClient.getChannel(chName) != null) { ... join ... } else { ... try create ... } But it doesn't work in similar way

meiblorn (Sat, 02 Mar 2019 20:57:57 GMT):
Hi, As I've discovered code, `hfclient.getChannel(name)` work as intermediate cache and does not preload all channels that available in fabric for the provided user context. In this code snippet below I am trying to create it and if I get an exception, I assume that channel already exists. So, I am interested, is there any more convenient way to rejoin channel (without persisting it to storage) ? Thanks ` Channel channel; try { byte[] channelConfigurationSignature = getChannelConfigurationSignature(channelConfiguration, getUserContext()); channel = newChannel(name, orderer, channelConfiguration, channelConfigurationSignature); } catch (TransactionException e) { channel = newChannel(name); channel.addOrderer(orderer); } ` It would be great to have something like ` if (hfClient.getChannel(chName) != null) { ... join ... } else { ... try create ... } But it doesn't work in similar way

meiblorn (Sat, 02 Mar 2019 21:00:40 GMT):
@gennadyl , if you available, please, suggest

meiblorn (Sat, 02 Mar 2019 21:00:40 GMT):
@gennadyl , if you are available, please, suggest

gennadyl (Sat, 02 Mar 2019 21:04:41 GMT):
@rickr do you have any idea? It is totally your area, I think...

meiblorn (Sat, 02 Mar 2019 21:06:14 GMT):
Imagine situation when channel is already created by 3rd party tool of our partner, and me then trying to join that channel. I need to check that it is available, but `getChannel(name)` returns null for me everytime

gennadyl (Sat, 02 Mar 2019 21:07:20 GMT):
@meiblorn I understand the problem, but I think only Rick (@rickr) can change java sdk API.

meiblorn (Sat, 02 Mar 2019 21:07:24 GMT):
Does it fit in fabric design (channels are private and so on)? If yes, this seems a bug

meiblorn (Sat, 02 Mar 2019 21:07:24 GMT):
Does it fit in fabric design (channels are private and so on)? If yes, it seems a bug

meiblorn (Sat, 02 Mar 2019 21:07:24 GMT):
Does it fit in fabric design (channels are private and so on)? If yes, it looks like a bug

meiblorn (Sat, 02 Mar 2019 21:07:24 GMT):
Does my idea fit in fabric's design (channels are private and so on)? If yes, it looks like a bug.

meiblorn (Sat, 02 Mar 2019 21:07:24 GMT):
Does my idea fit in fabric's design (channels are private and so on)? If yes, it looks like a bug. Probably, you need to rename it to something like `channelCache` or create some kind of `inMemoryChannelStore` coz when user call `hfClient.getChannel(name)` he expects to get real channel instead of entry from inmemory cache.

gennadyl (Sat, 02 Mar 2019 21:19:33 GMT):
I don't think that existence of channels is secret - you can get knowledge of channel existence, but still can't join channel or get data from it in any way.

meiblorn (Sat, 02 Mar 2019 21:40:43 GMT):
Sometimes existence of channels must be hidden too. E.g. when you discussing present for the your common friend on his birthday. He must not know about such channel and his participants. Also when there are only 3 participants it is very easy to infer that other 2 participants communicate with each other. So channels must be private, but not for people, who have access to them.

meiblorn (Sat, 02 Mar 2019 21:40:43 GMT):
Sometimes existence of channels must be hidden too. E.g. when you discussing present for the your common friend on his birthday. He must not know about such channel and his participants. Also when there are only 3 participants it is very easy to infer that other 2 participants communicate with each other if channel info is public. So channels must be private, but not for people, who have access to them.

meiblorn (Sat, 02 Mar 2019 21:40:43 GMT):
Sometimes existence of channels must be hidden too. E.g. when you discussing present for the your common friend on his birthday. He must not know about such channel and his participants. Also when there are only 3 participants it is very easy to infer that other 2 participants communicate with each other if channel info is public. So channels visibility must be private, but not for people, who have access to them and belongs to orgs, which have access.

meiblorn (Sat, 02 Mar 2019 21:40:43 GMT):
Sometimes existence of channels must be hidden too. E.g. when you discussing present for the your common friend on his birthday. He must not know about such channel and his participants. Also when there are only 3 participants it is very easy to infer that other 2 participants communicate with each other if channel info is public. So channels visibility must be private, but not for people, who have access to them and belongs to orgs, which have granted them that access.

yacovm (Sat, 02 Mar 2019 21:51:02 GMT):
@meiblorn - if you want your channel to be hidden, then make its name have a high entropy, like a concatenation of a random string and something else, such as- "5u09n29vnu2nfze8YACOV"

meiblorn (Sat, 02 Mar 2019 21:53:55 GMT):
yes, but it doesn't hide the fact of communication as a process if there are 3 orgs in network. So channel must not be public.

meiblorn (Sat, 02 Mar 2019 21:53:55 GMT):
yes, but it doesn't hide the fact of communication as a process, especially if there are 3 orgs in network. So channel must not be public.

meiblorn (Sat, 02 Mar 2019 21:53:55 GMT):
yes, but it doesn't hide the fact of communication as a process, especially if there are only 3 orgs in network. So channel must not be public.

meiblorn (Sat, 02 Mar 2019 21:54:26 GMT):
e.g. partner can break all the relationships if he will find some hidden transactions

yacovm (Sat, 02 Mar 2019 21:55:16 GMT):
if you have 3 orgs- A,B,C and you have a channel between A and B - how can organization C know about it, unless it has access to an orderer?

meiblorn (Sat, 02 Mar 2019 22:00:26 GMT):
I am not competent yet in a lot of aspects of how hyperledger work and just trying to learn it. Sounds like truth is on your side, but my question is about how to fetch channels what should be visible to me? Reason of my speach above was intention to understand how can I do it using java API.

meiblorn (Sat, 02 Mar 2019 22:02:34 GMT):
Currently I have workaround what I've posted above, but it throws an 'Channel already exists' exception every time. Then I creating it like 'newChannel(name)' and it works. I want to have more simple way to check

meiblorn (Sat, 02 Mar 2019 22:02:34 GMT):
Currently I have workaround what I've posted above, but it throws an 'Channel already exists' exception every time. Then I am creating it like 'newChannel(name)' and it works. I want to have more simple way to check

meiblorn (Sat, 02 Mar 2019 22:03:46 GMT):
`hfClient.getChannel(name)` works only when I've called `newChannel(name)` before

meiblorn (Sat, 02 Mar 2019 22:03:46 GMT):
`hfClient.getChannel(name)` works only when I've called `hfClient.newChannel(name)` before

yacovm (Sat, 02 Mar 2019 22:04:53 GMT):
If you know a peer, you can query it for the list of channels it joined

yacovm (Sat, 02 Mar 2019 22:05:03 GMT):
but only if you are in the same organization of the peer

yacovm (Sat, 02 Mar 2019 22:05:23 GMT):
you do this using CSCC system chaincode

yacovm (Sat, 02 Mar 2019 22:05:43 GMT):
and I don't know how to do it using java SDK ;) maybe @rickr knows

meiblorn (Sat, 02 Mar 2019 22:05:45 GMT):
It is reasonable, but what `hfClient.getChannel(name)` method stands for. It confuses me

meiblorn (Sat, 02 Mar 2019 22:05:45 GMT):
It is reasonable, but what `hfClient.getChannel(name)` method does stand for. It confuses me

yacovm (Sat, 02 Mar 2019 22:06:12 GMT):
my guess would be - it returns to you a channel object, out of the already existing channel objects in the JVM

meiblorn (Sat, 02 Mar 2019 22:06:57 GMT):
Yes. Now it also obvious for me, but not for such "noob" in fabric as me

meiblorn (Sat, 02 Mar 2019 22:06:57 GMT):
Yes. Now it also obvious for me, but not for such "noob" in fabric as me 1-2 days before

meiblorn (Sat, 02 Mar 2019 22:06:57 GMT):
Yes. Now it is also obvious for me, but it was not obvious when I've been noob in sdk and just started to work with it.

gennadyl (Sun, 03 Mar 2019 10:22:20 GMT):
@meiblorn Actually, @yacovm was person I wanted to ask.

meiblorn (Sun, 03 Mar 2019 13:04:26 GMT):
what java version is used on peers by default? 11?

meiblorn (Sun, 03 Mar 2019 13:04:26 GMT):
what java version is used on peers by default? 8?

meiblorn (Sun, 03 Mar 2019 13:04:51 GMT):
I got error that 55.0 version is not compatible with 52.0

meiblorn (Sun, 03 Mar 2019 13:05:12 GMT):
class file has wrong version 55.0, should be 52.0

yacovm (Sun, 03 Mar 2019 13:50:13 GMT):
try to compile using the same java version that is in the container

gennadyl (Mon, 04 Mar 2019 08:44:25 GMT):
@meiblorn openjdk-8

braduf (Tue, 05 Mar 2019 00:05:40 GMT):
Has joined the channel.

kalyan.aruru (Tue, 05 Mar 2019 07:02:23 GMT):
Has joined the channel.

kalyan.aruru (Tue, 05 Mar 2019 07:05:19 GMT):
Hi all, Are there any examples for Chaincode Event handling? If so let me know or If we have any tutorials for Chaincode event handling, please let me know.

knagware9 (Tue, 05 Mar 2019 07:17:16 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=8vnzLhuKkDpjf3jR3) @kalyan.aruru check this if it helps https://medium.com/coinmonks/tutorial-chaincode-event-listener-on-hyperledger-fabric-java-sdk-557304f1fe28

kalyan.aruru (Tue, 05 Mar 2019 07:18:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=szcrS7g7yzBgGJrks) @knagware9 Thank you

rickr (Tue, 05 Mar 2019 13:23:14 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=nsXXonMuRrY46KafM) @meiblorn This does not discover any channels. It only reports the channels that the application create from the client.

mcoblenz (Thu, 07 Mar 2019 20:10:08 GMT):
Are there any facilities for debugging Java chaincode? Specifically, attaching to the chaincode process with a debugger?

meiblorn (Thu, 07 Mar 2019 22:58:40 GMT):
Hi, how to avoid this ? Exception in thread "task-1" java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.Exception: Channel all-orgs-channel failed to place transaction 3d47a4ff585abd6bebecefb860b15cad55d28d4d475e38d9e5806f46717a305f on Orderer. Cause: UNSUCCESSFUL. at com.cloudbourne.fundtransfer.transfer.service.hyperledger.HyperLedgerChaincodeService.transaction(HyperLedgerChaincodeService.java:204) at com.cloudbourne.fundtransfer.transfer.service.hyperledger.HyperLedgerChaincodeService.upgrade(HyperLedgerChaincodeService.java:177) at com.cloudbourne.fundtransfer.transfer.configuration.HyperLedgerConfiguration.lambda$postConstruct$0(HyperLedgerConfiguration.java:76) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.lang.Exception: Channel all-orgs-channel failed to place transaction 3d47a4ff585abd6bebecefb860b15cad55d28d4d475e38d9e5806f46717a305f on Orderer. Cause: UNSUCCESSFUL. at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at com.cloudbourne.fundtransfer.transfer.service.hyperledger.HyperLedgerChaincodeService.transaction(HyperLedgerChaincodeService.java:202) ... 5 more Caused by: java.lang.Exception: Channel all-orgs-channel failed to place transaction 3d47a4ff585abd6bebecefb860b15cad55d28d4d475e38d9e5806f46717a305f on Orderer. Cause: UNSUCCESSFUL. at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:5015) at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:4509) at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:4194) at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:4180) at com.cloudbourne.fundtransfer.transfer.configuration.hyperledger.client.HyperLedgerChannelClient.sendTransaction(HyperLedgerChannelClient.java:150) at com.cloudbourne.fundtransfer.transfer.service.hyperledger.HyperLedgerChaincodeService.transaction(HyperLedgerChaincodeService.java:200) ... 5 more Caused by: java.lang.Exception: Channel all-orgs-channel unsuccessful sendTransaction to orderer orderer.fundtransfer.cloudbourne.com (grpc://localhost:7050) at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:4994) ... 10 more Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Orderer orderer.fundtransfer.cloudbourne.com was shutdown. at org.hyperledger.fabric.sdk.Orderer.sendTransaction(Orderer.java:153) at org.hyperledger.fabric.sdk.Channel.sendTransaction(Channel.java:4976) ... 10 more

SatheeshNehru (Fri, 08 Mar 2019 13:03:40 GMT):
Has joined the channel.

JorgeNavarro (Mon, 11 Mar 2019 12:07:37 GMT):
Has joined the channel.

Antimttr (Mon, 11 Mar 2019 21:29:51 GMT):
Has joined the channel.

KyunghoKim (Tue, 12 Mar 2019 03:09:09 GMT):
Has joined the channel.

lupass93 (Tue, 12 Mar 2019 15:11:44 GMT):
Has joined the channel.

lupass93 (Tue, 12 Mar 2019 16:00:21 GMT):
Hi guys, I have an issuer to ask... There is a possibility in Hyperledger Fabric to include in the same chaincode multiple smart contracts? I have the need to separate tree different smart contract but in the same chaincode namespaces. How can I realize it? I search in the documentation of Hyperledger Fabric but I don't find nothing. This solution is for supply chain where I have 3 organizations: Productor, Logistic and Market. Productor can add a new Lot and query Lot; Logistic can add a path for Lot; Market can submitted the property of Lot when Logistic delivery it the Lot. I would to separate the different responsability in 3 smart contract, but if possible in the same chaincode. I wouldn't create tree chaincode different. Thank you very much!

lupass93 (Tue, 12 Mar 2019 16:00:21 GMT):
@gennadyl thank you very much!

mcoblenz (Tue, 12 Mar 2019 19:29:30 GMT):
Related to lupass's question: the JS chaincode has instructions for identifying smart contracts with names here: https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/contractname.html

mcoblenz (Tue, 12 Mar 2019 19:29:40 GMT):
Is there any equivalent for Java chaincode?

dan13 (Wed, 13 Mar 2019 02:09:49 GMT):
@mcoblenz that is a roadmap item for HLF v2.0 as I understand it, see: https://jira.hyperledger.org/browse/FGJ-1

gennadyl (Wed, 13 Mar 2019 08:13:44 GMT):
@lupass93 @mcoblenz In Java chaincode this functionality will be added at version 2.1, maybe beta in 2.0

mcoblenz (Wed, 13 Mar 2019 13:30:28 GMT):
Aha. Okay, thanks!

mcoblenz (Wed, 13 Mar 2019 13:30:34 GMT):
What's the timeline for that?

mcoblenz (Wed, 13 Mar 2019 13:31:51 GMT):
I guess I'll shoehorn something into 1.4 for now.

lupass93 (Wed, 13 Mar 2019 15:23:21 GMT):
I would like to report a possible bug / problem related to java chaincode. I have a chaincode implemented in Java, whose operations are: - Add a new lot; - Query a lot; The chaincode once installed and instanced, is working both from CLI and from the Client SDK. Transactions are recorded in the blockchain correctly. The queries are working However, when the blockchain network Hyperledger Fabric (all in localhost) is restarted (because the computer is turned off and restarted) the chaincode no longer works. Queries of previously added lots work correctly but the addition of new lots is not working. In any case, if I update the version of the chaincode (without modifying the source code) it goes back to being working as before. The error log when I try to invoke the addition of a new lot is the user: https://pastebin.com/uZV1PwLX

bram209 (Thu, 14 Mar 2019 12:02:04 GMT):
Hi all, is there something like CID or https://fabric-shim.github.io/release-1.3/fabric-shim.ClientIdentity.html for java sdk?

bram209 (Thu, 14 Mar 2019 12:02:04 GMT):
Hi all, is there something like CID or https://fabric-shim.github.io/release-1.3/fabric-shim.ClientIdentity.html for java?

bram209 (Thu, 14 Mar 2019 12:02:04 GMT):
Hi all, is there something like CID or https://fabric-shim.github.io/release-1.3/fabric-shim.ClientIdentity.html for java chaincode?

AlessandroPrimavera (Thu, 14 Mar 2019 12:09:41 GMT):
Has joined the channel.

mcoblenz (Thu, 14 Mar 2019 13:50:05 GMT):
lupass: Try to figure out which specific reference is null. I've run into a variety of bugs like that, which were caused by me screwing up the archiving/unarchiving code in my smart contract.

meiblorn (Sun, 17 Mar 2019 17:57:28 GMT):
Hi, am getting this exception during channgel shutdown(force=true)

meiblorn (Sun, 17 Mar 2019 17:57:29 GMT):
*~*~*~ Channel ManagedChannelImpl{logId=41, target=hf-orderer:7050} was not shutdown properly!!! ~*~*~* Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.

meiblorn (Sun, 17 Mar 2019 17:57:53 GMT):
How can I await for termination? All that methods are not accessible for me

albert.lacambra (Mon, 18 Mar 2019 03:15:50 GMT):
you have channel.shutdown(boolean) method

RohanKandalkar (Tue, 19 Mar 2019 12:31:52 GMT):
Has joined the channel.

RohanKandalkar (Tue, 19 Mar 2019 12:33:20 GMT):
Hi. I am java developer. I have intestate in smart contract development in hyperledger fabric framework. i started also. all the examples and tutorials which i see in official documents are related to node js . so is the chaincode development in java is still in progress or its completed and i can do all the things which are possible in node .? because i developed chaincode using java.but when i start reading commercial-paper tutorial . i found different classes in node js which are not in java . i am not sure about this but is this true? please any one worked around this please help me .

RohanKandalkar (Tue, 19 Mar 2019 12:33:34 GMT):
can you suggest best (most used) language for chain-code development ? or mature language whose support i can get easily. or whose library is very rich.please suggest . and in client application's java sdk also work in progress . because classes related to network are present in node js but not available in java.

raphaelbenoit (Tue, 19 Mar 2019 16:32:53 GMT):
Has left the channel.

bloemy (Tue, 19 Mar 2019 18:39:46 GMT):
Has joined the channel.

Antimttr (Tue, 19 Mar 2019 19:32:43 GMT):
@RohanKandalkar from what i've heard the golang chaincode is the most advanced, and the others are implemented after

SatheeshNehru (Wed, 20 Mar 2019 06:07:25 GMT):
can someone explain about system chaincode? what it does?and why its needed?

bloemy (Wed, 20 Mar 2019 14:19:06 GMT):
Hi everyone, I was wondering if this tutorial was still up to date: https://fabric-docs-test.readthedocs.io/en/latest/Setup/JAVAChaincode/#java-chaincode-deployment-in-dev-mode It seems to reference Vagrant even though other parts of the website say all the Vagrant stuff is deprecated. I'm trying to run Java chaincode locally to be able to debug more easily. Thank you very much !

yanli133 (Mon, 25 Mar 2019 06:55:31 GMT):
Has joined the channel.

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:43:14 GMT):
Hi i am getting this error when i am trying to instantiated a chaincode in java(the installation was good): Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (cc:1.0)

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:44:03 GMT):
Maybe mine gradle's files are wrong?

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:44:03 GMT):
Maybe gradle's files are wrong?

gennadyl (Mon, 25 Mar 2019 08:48:00 GMT):
Can you look into java chaincode docker log? It available during instantiate

gennadyl (Mon, 25 Mar 2019 08:48:42 GMT):
If you use first-network, the name of container is dev-.... something

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:48:53 GMT):
i am using kuberntes

gennadyl (Mon, 25 Mar 2019 08:49:25 GMT):
Can you see list of containers after you run instantiate?

gennadyl (Mon, 25 Mar 2019 08:51:09 GMT):
At the begging you will see container that compile java chaincode and after a while (1/2 minute) you will see container that runs chaincode. I would like to see this container logs

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:51:26 GMT):
i am loocking for it

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:51:29 GMT):
1 min

gennadyl (Mon, 25 Mar 2019 08:52:31 GMT):
it you get this error message, 80% that something went wrong with your chaincode during it start and this container will be down

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:55:13 GMT):

Clipboard - March 25, 2019 9:55 AM

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:55:16 GMT):
@gennadyl i cant find these container

gennadyl (Mon, 25 Mar 2019 08:56:34 GMT):
Ok. You have to check it in another window/shell - once you got error message, container is already deleted

gennadyl (Mon, 25 Mar 2019 08:56:53 GMT):
You have to catch it before system delete it

gennadyl (Mon, 25 Mar 2019 08:57:23 GMT):
While you waiting to instantiate response

gennadyl (Mon, 25 Mar 2019 08:58:08 GMT):
It takes usually 3-5 minutes before you get error message

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 08:59:14 GMT):
how can i do that? this error appears instantaneously. It doesnt take 3-5 min

gennadyl (Mon, 25 Mar 2019 08:59:38 GMT):
Ops

gennadyl (Mon, 25 Mar 2019 09:00:08 GMT):
What version of fabric do you use?

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 09:00:21 GMT):
1.3

gennadyl (Mon, 25 Mar 2019 09:02:02 GMT):
Let me think

gennadyl (Mon, 25 Mar 2019 09:02:06 GMT):
A minute

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 09:04:12 GMT):
sure, thx

gennadyl (Mon, 25 Mar 2019 09:04:35 GMT):
Can you send me your install command?

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 09:05:48 GMT):
it is in the photo

gennadyl (Mon, 25 Mar 2019 09:07:00 GMT):
I mean install, not instantiate

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 09:08:04 GMT):

Clipboard - March 25, 2019 10:07 AM

AndresMartinezMelgar.itcl (Mon, 25 Mar 2019 09:08:23 GMT):
i install chaincode in 4 peers

gennadyl (Mon, 25 Mar 2019 09:20:45 GMT):
I see, I need to think a little bit more

dan13 (Mon, 25 Mar 2019 16:35:33 GMT):
@bloemy check out https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3

SatheeshNehru (Wed, 27 Mar 2019 05:25:35 GMT):
in what possible ways the data in hyperledger fabirc can be changed what i mean is why there is need for endorsement??

AndresMartinezMelgar.itcl (Wed, 27 Mar 2019 08:13:53 GMT):
private Response query(ChaincodeStub stub) { List listaParametros = stub.getParameters(); if(listaParametros.size()!=1) { return newErrorResponse("incorrect number of parameters"+listaParametros); } String key = listaParametros.get(0); String state = stub.getStringState(key); if(state==null) { newErrorResponse("key not found"); } return newSuccessResponse("Query response:" +state.toString()); } Hi this is my query method, it doesn't work, i dont know why. First return work right, but 2º and 3º dont. Any idea?

AndresMartinezMelgar.itcl (Wed, 27 Mar 2019 08:13:53 GMT):
private Response query(ChaincodeStub stub) { List listaParametros = stub.getParameters(); if(listaParametros.size()!=1) { return newErrorResponse("incorrect number of parameters"+listaParametros); } String key = listaParametros.get(0); String state = stub.getStringState(key); if(state==null) { newErrorResponse("key not found"); } return newSuccessResponse("Query response:" +state.toString()); } Hi this is my query method, it doesn't work, i dont know why. First return work right, but 2º and 3º dont show me anything Any idea?

aatkddny (Fri, 29 Mar 2019 20:17:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Gnr7czm53yHEhBij5) Before I spend some quality time with a search engine does anyone know of this but 1.4 native and using maven?

davidkhala (Wed, 03 Apr 2019 08:36:35 GMT):
Has joined the channel.

davidkhala (Wed, 03 Apr 2019 08:38:21 GMT):
Hi, is there a maintainer could help to review this ?https://gerrit.hyperledger.org/r/#/c/29917/

mahoney1 (Wed, 03 Apr 2019 09:33:58 GMT):
Has joined the channel.

gennadyl (Fri, 05 Apr 2019 18:05:17 GMT):
@aatkddny It is quite tricky question. I know people who was able to run maven based chanincode in 1.4. But officially it will be supported from 2.0

gennadyl (Fri, 05 Apr 2019 18:05:17 GMT):
@aatkddny It is quite tricky question. I know people who were able to run maven based chaincode in 1.4. But officially it will be supported from 2.0

gennadyl (Fri, 05 Apr 2019 18:06:03 GMT):
@davidkhala - merged

aatkddny (Fri, 05 Apr 2019 18:09:35 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=8xoWNFiBr2Gs45wyB) @gennadyl That's a bit unfortunate, since we use maven pretty much exclusively and we are going to be forced to use HLF1.4 for the foreseeable future.

gennadyl (Fri, 05 Apr 2019 18:11:50 GMT):
@aatkddny Look into this CR: https://gerrit.hyperledger.org/r/#/c/29955/

gennadyl (Fri, 05 Apr 2019 18:14:37 GMT):
It is maven based chaincode integration test added to 2.0.0 And there are no that much differences between 1.4.0 and 2.0.0 in way chaincode compiled and started

gennadyl (Fri, 05 Apr 2019 18:14:37 GMT):
It is maven based chaincode integration test added to 2.0.0 And there are no that much difference between 1.4.0 and 2.0.0 in way chaincode compiled and started. So just try something simple

aatkddny (Fri, 05 Apr 2019 18:15:44 GMT):
Appreciate it. I'll look at it over the weekend.

akotikhov (Mon, 08 Apr 2019 08:21:52 GMT):
Has joined the channel.

nakulgr13 (Mon, 08 Apr 2019 12:54:44 GMT):
Has joined the channel.

TristanBustillo (Thu, 11 Apr 2019 04:04:01 GMT):
Has joined the channel.

bilalahmed (Fri, 12 Apr 2019 11:02:11 GMT):
Has joined the channel.

emeakai (Mon, 15 Apr 2019 07:44:33 GMT):
Has joined the channel.

GuillaumeTong (Tue, 16 Apr 2019 02:54:52 GMT):
Has joined the channel.

GuillaumeTong (Tue, 16 Apr 2019 03:03:51 GMT):
Hi all, I am trying to package and sign a java chaincode with ```./peer.sh chaincode package -n -p -v -s -S -l java -i ``` And then I sign the package with another admin: ```./peer.sh chaincode signpackage ``` But then when I try to instantiate it I get ```Error: error extracting chaincode deployment spec(illegal file detected in payload: "META-INF/statedb/couchdb/indexes/index.json")``` Why is this happening and what can I do about it? That file is a DB index and will affect the performance of the chaincode. I should not have to remove it.

GuillaumeTong (Tue, 16 Apr 2019 03:03:51 GMT):
Hi all, I am trying to package and sign a java chaincode with ``` ./peer.sh chaincode package -n -p -v -s -S -l java -i ``` And then I sign the package with another admin: ``` ./peer.sh chaincode signpackage ``` But then when I try to instantiate it I get ```Error: error extracting chaincode deployment spec(illegal file detected in payload: "META-INF/statedb/couchdb/indexes/index.json")``` Why is this happening and what can I do about it? That file is a DB index and will affect the performance of the chaincode. I should not have to remove it.

GuillaumeTong (Tue, 16 Apr 2019 03:03:51 GMT):
Hi all, I am trying to package and sign a java chaincode with ` ./peer.sh chaincode package -n -p -v -s -S -l java -i ` And then I sign the package with another admin: ` ./peer.sh chaincode signpackage ` But then when I try to instantiate it I get `Error: error extracting chaincode deployment spec(illegal file detected in payload: "META-INF/statedb/couchdb/indexes/index.json")` Why is this happening and what can I do about it? That file is a DB index and will affect the performance of the chaincode. I should not have to remove it.

GuillaumeTong (Tue, 16 Apr 2019 03:03:51 GMT):
Hi all, I am trying to package and sign a java chaincode with `./peer.sh chaincode package -n -p -v -s -S -l java -i ` And then I sign the package with another admin: `./peer.sh chaincode signpackage ` But then when I try to instantiate it I get `Error: error extracting chaincode deployment spec(illegal file detected in payload: "META-INF/statedb/couchdb/indexes/index.json")` Why is this happening and what can I do about it? That file is a DB index and will affect the performance of the chaincode. I should not have to remove it.

bilalahmed (Tue, 16 Apr 2019 06:47:08 GMT):
Hello Everyone, I have just started working with HyperLedger Fabric Chaincode Development. I have setup the network setup. Now, I want to develop/implement chaincode and deploy it on network. Can anyone please share any tutorial/guide regarding chaincode development? I explored JAVA SDK but that is for client applications want to access and query deployed chaincode.

bilalahmed (Tue, 16 Apr 2019 08:32:03 GMT):
peer chaincode install ... Error: Bad response: 500 - access denied for [install]: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]

bilalahmed (Tue, 16 Apr 2019 08:32:09 GMT):
Anyone faced this issue?>

muellerdberlin (Wed, 24 Apr 2019 08:49:52 GMT):
Has joined the channel.

muellerdberlin (Wed, 24 Apr 2019 08:52:43 GMT):
Hi there! I'm developing java chaincode for Hyperledger. I need to know the exact issuer of the chaincode. I googled around and found the cid library for go. But how can i use it for Java implementation of the chaincode? Maybe you have a quick answer for that. Thank you! :)

muellerdberlin (Wed, 24 Apr 2019 09:21:57 GMT):
lib: https://github.com/hyperledger/fabric/tree/release-1.1/core/chaincode/lib/cid

bilalahmed (Wed, 24 Apr 2019 09:23:08 GMT):
https://github.com/hyperledger/fabric-chaincode-java

muellerdberlin (Wed, 24 Apr 2019 09:38:41 GMT):
thank you, @bilalahmed but is there any documentation or example? Can I use the org.hyperledger.fabric.protos.msp.Identities for that? How can i get the issuer identity going this way? Thank you very much! :)

muellerdberlin (Wed, 24 Apr 2019 09:38:41 GMT):
thank you, @bilalahmed but is there any documentation or example? Can I use the `org.hyperledger.fabric.protos.msp.Identities` for that? How can i get the issuer identity going this way? Thank you very much! :)

bilalahmed (Wed, 24 Apr 2019 10:28:20 GMT):
Are you working with gateway?

muellerdberlin (Wed, 24 Apr 2019 10:51:09 GMT):
I'm using REST for testing purpose (did you mean that?)

bilalahmed (Wed, 24 Apr 2019 11:31:24 GMT):
REST Gateway? Sorry! Can you please elaborate it a bit more?

bilalahmed (Wed, 24 Apr 2019 11:32:41 GMT):
Not sure , if you are looking for this: Wallet wallet = createWallet(); //my own custom method Gateway.Builder builder = Gateway.createBuilder(); builder.identity(wallet, "bayUser");

muellerdberlin (Wed, 24 Apr 2019 11:44:59 GMT):
I'm working on Java chaincode deployed on Oracle Cloud (Hyperledger). What i need to know: if someone calls the `createAsset()` function i want to save the `owner/creator` of the asset as attribute. For example if i want to delete/deactivate the asset, only the owner should be able to do so. It's a kind of access control list. I found the `cid library` which offers exact this - writing your own access control rules. But i did not find this library for Java. So my problem is: in my Java chaincode i couldnt simply get the exact identity yet. Now i tried some work with `stub.getSignedProposal()` which includes the certificcate of the issuer. But to be honest I dont know if this is the right way to identify the user. (doesnt matter if via REST or SDK).

muellerdberlin (Wed, 24 Apr 2019 15:13:16 GMT):
see: https://stackoverflow.com/questions/55832361/identify-chaincode-issuer-for-hyperledger-java-smart-contract-on-oracle

darapich92 (Fri, 26 Apr 2019 07:03:36 GMT):
Has joined the channel.

darapich92 (Fri, 26 Apr 2019 15:23:32 GMT):
hello everybody, today i try to instantiate Java Chaincode in the fabric java sdk 1.4.0. i got success from peers admin but when i instantiate this chaincode to Channel i receive message "Java chaincode is work-in-progress and disabled" and receive status Failure, Could you explain me Why?

RahulHundet (Mon, 29 Apr 2019 05:57:06 GMT):
Has joined the channel.

TristanBustillo (Mon, 29 Apr 2019 07:46:24 GMT):
have you guys tried having a private data collection with 2 orgs then overriding the endorsement policy to add one more org through state-based EP?

TristanBustillo (Mon, 29 Apr 2019 07:48:16 GMT):
i'm trying that scenario, and after adding the third org, i still cannot query the private data... I'm suspecting that maybe the private data is not synced to other org... any idea? proper setup of anchor peers? transient store?

dave.enyeart (Mon, 29 Apr 2019 09:53:57 GMT):
@TristanBustillo You cannot add private data to a 3rd org using state-based EP

TristanBustillo (Mon, 29 Apr 2019 09:55:31 GMT):
how about this scenario private collection with only org1 then org1 creates a state in private collection and also setting the state-based ep for that particular state to org1 and org2?

TristanBustillo (Mon, 29 Apr 2019 09:57:26 GMT):
or will this work? private collection with org1 and org2 EP is org1 OR org2 then org1 creates a state in that collection setting state-based ep to his org only then updates the state and setting EP to org1 and org2 now

dave.enyeart (Mon, 29 Apr 2019 09:57:50 GMT):
for public data, state based EP must be a subset of channel members. for private data, state based EP must be a subset of collection members.

TristanBustillo (Mon, 29 Apr 2019 09:59:03 GMT):
then my second scenario will work, am i getting it right?

dave.enyeart (Mon, 29 Apr 2019 09:59:30 GMT):
yes

TristanBustillo (Mon, 29 Apr 2019 09:59:58 GMT):
got it... thanks @dave.enyeart

TristanBustillo (Mon, 29 Apr 2019 10:02:09 GMT):

Screenshot 2019-04-29 at 6.01.07 PM.png

TristanBustillo (Mon, 29 Apr 2019 10:02:39 GMT):
transientstore?

TristanBustillo (Mon, 29 Apr 2019 10:05:27 GMT):
network setup is: 4 orgs with 1 peer each, and those peers were anchor peers as well

dave.enyeart (Mon, 29 Apr 2019 10:20:41 GMT):
did you configure gossip external endpoint on each of the peers?

AndresMartinezMelgar.itcl (Mon, 29 Apr 2019 11:30:50 GMT):
Hi, I'm trying to instantiate a smart contract (the example chaincode_example02 in java version) with the java sdk but I'm unable. I get to install it, but not instantiator. I do not get any error message, only "failed instantiation" Does anyone have any ideas? or do you know of any tutorial where it is explained? I'm using kuberntes. I have seen that there is a docker called "java-env" I do not know if it is necessary for a smarcontract in java to be instantiated. Thank you

AndresMartinezMelgar.itcl (Mon, 29 Apr 2019 11:30:50 GMT):
Hi, I'm trying to instantiate a smart contract (the example chaincode_example02 in java version) with the java sdk but I'm unable. I get to install it, but not instantiator. I do not get any error message, only "failed instantiation" Does anyone have any ideas? or do you know of any tutorial where it is explained? I'm using kuberntes. I have seen that there is a docker called "java-env" I do not know if it is necessary for a smarcontract in java to be instantiated. Thank you

AndresMartinezMelgar.itcl (Mon, 29 Apr 2019 11:30:50 GMT):
Hi, I'm trying to instantiate a smart contract (the example chaincode_example02 in java version) with the java sdk but I'm unable. I get to install it, but not instantiator. My network is in 1.3v I do not get any error message, only "failed instantiation" Does anyone have any ideas? or do you know of any tutorial where it is explained? I'm using kuberntes. I have seen that there is a docker called "java-env" I do not know if it is necessary for a smarcontract in java to be instantiated. Thank you

TristanBustillo (Tue, 30 Apr 2019 01:22:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Ec82ubXxTLw6H2tyM) @dave.enyeart hmm,, yeah, i'll try that @dave.enyeart

TristanBustillo (Tue, 30 Apr 2019 01:22:15 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=Ec82ubXxTLw6H2tyM) @dave.enyeart hmm,, yeah, i'll try that

TristanBustillo (Tue, 30 Apr 2019 02:06:34 GMT):
it works fine

gennadyl (Wed, 01 May 2019 07:31:46 GMT):
@darapich92 What your peer version?

mahoney1 (Thu, 02 May 2019 11:34:20 GMT):
eminder that the Fabric Developer Community call today is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android:https://zoom.us/my/hyperledger.community - agenda is here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call - be great to hear from you later ! 🙂 regards Paul

mahoney1 (Thu, 02 May 2019 11:34:20 GMT):
reminder that the Fabric Developer Community call today is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android:https://zoom.us/my/hyperledger.community - agenda is here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call - be great to hear from you later ! 🙂 regards Paul

albert.lacambra (Sat, 04 May 2019 20:25:29 GMT):
i am getting the following error while running "peer lifecycle chaincode approveformyorg --channelID mychannel --name pc_0 --version 0.0.3 --package-id $CC_PACKAGE_ID --sequence 1 --waitForEvent" "Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': could not set defaults for chaincode definition in channel mychannel: Policy '/Channel/Application/Endorsement' must be defined for channel 'mychannel' before chaincode operations can be attempted" not sure what it exactly means with "backing implementation" some hint?

AndresMartinezMelgar.itcl (Tue, 07 May 2019 06:57:28 GMT):
is there any special way to instantiate a chaincode in java with the SDK ?? I get the following error

AndresMartinezMelgar.itcl (Tue, 07 May 2019 06:57:28 GMT):
is there any special way to instantiate a chaincode in java with the SDK ?? I've put the type Type.JAVA as a language I get the following error

AndresMartinezMelgar.itcl (Tue, 07 May 2019 06:57:33 GMT):

Clipboard - May 7, 2019 8:57 AM

AndresMartinezMelgar.itcl (Tue, 07 May 2019 06:58:25 GMT):
if i try to instantiate a chaincode in GOLANG i havent got any problem

AndresMartinezMelgar.itcl (Tue, 07 May 2019 07:35:17 GMT):

Clipboard - May 7, 2019 9:34 AM

Jelle.Diet (Thu, 16 May 2019 13:40:17 GMT):
Has joined the channel.

Jelle.Diet (Thu, 16 May 2019 13:40:18 GMT):
What is your chaincode running on? local fabric?

AndresMartinezMelgar.itcl (Fri, 17 May 2019 11:48:48 GMT):
@Jelle.Diet i am using HLF on k8

Jelle.Diet (Fri, 17 May 2019 13:11:23 GMT):
Does k8 support java chaincode? I know for example that the IBM BaaS platform only supports GO and Node, perhaps it's a similar problem here

AndresMartinezMelgar.itcl (Fri, 17 May 2019 14:16:40 GMT):
dont know, in the end i implements it in GO

circlespainter (Sat, 18 May 2019 07:39:07 GMT):
Has joined the channel.

muralisr (Sun, 19 May 2019 13:23:41 GMT):
[object Object]

muralisr (Sun, 19 May 2019 13:25:28 GMT):
https://chat.hyperledger.org/channel/fabric-chaincode-dev?msg=zbiW9ZWYFMrSnKAmn

muralisr (Sun, 19 May 2019 13:27:06 GMT):
@DVasin ^^^

DVasin (Sun, 19 May 2019 13:27:06 GMT):
Has joined the channel.

yeousunn (Mon, 20 May 2019 03:16:36 GMT):
Has joined the channel.

DVasin (Mon, 20 May 2019 13:03:25 GMT):
Guys, hello. Another question. Are only Gradle supporting for building Java CC, or Maven is supported as well? Thanks in advance!

dan13 (Tue, 21 May 2019 15:48:00 GMT):
@DVasin yes, Maven is supported

SatheeshNehru (Thu, 23 May 2019 09:49:36 GMT):
getcreator

SatheeshNehru (Thu, 23 May 2019 10:45:32 GMT):
how to use getcreator api it returns byte array is there any possibility of getting sumbmitter id??

kn3118 (Thu, 23 May 2019 16:44:24 GMT):
Has joined the channel.

mahoney1 (Fri, 24 May 2019 09:31:26 GMT):
GetCreator returns marshaled serialized identity of the client - see code snippet #2, in this Stack Overflow answer for getting info from the cert https://stackoverflow.com/questions/55983466/hyperledger-fabric-implementing-chaincode-level-access-control - see also the docs https://fabric-chaincode-java.github.io/org/hyperledger/fabric/shim/ChaincodeStub.html#getCreator--

SatheeshNehru (Fri, 24 May 2019 09:35:22 GMT):
thanks:slight_smile:

Jelle.Diet (Fri, 24 May 2019 13:03:45 GMT):
there's an example here https://github.com/hyperledger/fabric-chaincode-java/tree/release-1.4/fabric-chaincode-example-maven

klainte (Fri, 24 May 2019 13:48:00 GMT):
Has joined the channel.

klainte (Mon, 27 May 2019 07:09:20 GMT):
Hi everyone, I'm trying to install Java chaincode using the command `peer chaincode install -l java -n ${CHAINCODE_NAME} -v 1.0 -p "${CHAINCODE_PATH}"` where `CHAINCODE_PATH` points to a folder containing the src folder of the chaincode and the pom.xml. This throws the following error `Error reading read /opt/gopath/src/github.com/hyperledger/chaincode/java/src: is a directory`, which, indeed,is a directory. `peer chaincode install only works` if `CHAINCODE_PATH` is a file. I have no idea what is the expected format. Everything I could read online mentions pointing to the folder containing src + pom or src + gradle. I am using Fabric 1.4. Any thoughts ?

Jelle.Diet (Mon, 27 May 2019 07:20:12 GMT):
I think you need to package it first, then install the package

Jelle.Diet (Mon, 27 May 2019 07:21:54 GMT):
packager -> install -> instantiate

Jelle.Diet (Mon, 27 May 2019 07:21:54 GMT):
package -> install -> instantiate

klainte (Mon, 27 May 2019 07:31:17 GMT):
Nice, I'll try this.

klainte (Mon, 27 May 2019 08:56:33 GMT):
Got the same error again (Error reading read [...] is a directory) when running `peer chaincode package -l java -n mycc -p /opt/gopath/src/github.com/hyperledger/chaincode/java/src -v 1 -s -S -i "" ccpack.out`. However, the equivalent command to package go chaincode works just fine

Jelle.Diet (Mon, 27 May 2019 08:58:54 GMT):
I haven't tried packaging java chaincode through CLI, a workaround could be to use the IBM VSCode extension to package your chaincode instead and exporting the CDS

klainte (Mon, 27 May 2019 09:00:14 GMT):
Thanks a lot for your help :thumbsup: , I'll try that.

shrivastava.amit (Mon, 27 May 2019 18:24:56 GMT):
Has joined the channel.

RodrigoMedeiros (Wed, 29 May 2019 17:15:18 GMT):
Has joined the channel.

SatheeshNehru (Fri, 31 May 2019 12:09:21 GMT):
is there any equvalent java class for clientidentity that is defined in node https://medium.com/@avinashvazratkar446022/attribute-based-access-control-in-hyperledger-fabric-9ed7d7bf9905

IgorSim (Fri, 31 May 2019 12:52:14 GMT):
Hi, is there any example or recommendation how to unittest (or test in general) Java chaincode?

hanubc7743 (Sat, 01 Jun 2019 11:57:22 GMT):
Has joined the channel.

Raumo0 (Sun, 02 Jun 2019 15:34:29 GMT):
Has joined the channel.

Raumo0 (Sun, 02 Jun 2019 15:48:19 GMT):
Can someone tell me why I do not see the methods of my contract in fabric gateways (ibm blockchain platform expansion). My contract class is inherited from org.hyperledger.fabric.shim.ChaincodeBase, but when I did a javascript example, my methods were visible, then I inherited from fabric-contract-api.contract.

Jelle.Diet (Mon, 03 Jun 2019 09:55:54 GMT):
The contract api for javascript is a newer model, java and go use the 'init' and 'invoke' pattern where are your calls will go through the invoke function, which should then call the function you want

darapich92 (Fri, 07 Jun 2019 03:40:48 GMT):
Hi everybody, I used to install wallet chaincode based on this https://medium.com/coinmonks/hyperledger-fabric-account-based-wallet-java-chaincode-8cbf80a6fb82. now, i want to change the output from this chaincode. before "{\"message\":{\"walletId\":\"kaka\",\"tokenAmount\":200.0}, \"OK success\":true}" -> "{\"message\":{\"User\":\"kaka\",\"Number\":200.0}, \"OK success\":true}". but i cannot even i restart the network, reinstall chaincode and change variable name in this chaincode. can anyone help me?

hanubc7743 (Thu, 13 Jun 2019 15:49:54 GMT):
Hi, What is the stable version for java sdk?

hanubc7743 (Thu, 13 Jun 2019 16:43:14 GMT):
Anyone can share the sample application development by using java sdk?

SatheeshNehru (Fri, 14 Jun 2019 07:08:48 GMT):
is there java api available for reenrolling identity?

dan13 (Fri, 14 Jun 2019 13:43:40 GMT):
same API as for enrolling, assuming user still has an enrollment left to use (max number of enrollments is set when user is created)

hanubc7743 (Fri, 14 Jun 2019 18:03:23 GMT):
Hi Anyone please suggest me which SDK is best for development?

dan13 (Fri, 14 Jun 2019 18:52:22 GMT):
https://stackoverflow.com/questions/54603029/hyperledger-fabric-chaincode-development-language-nodejs-java-or-go

hanubc7743 (Sun, 16 Jun 2019 17:42:45 GMT):
Hi I am getting below error ./bin/configtxgen -profile OrdererGenesis -outputBlock ./channel-artifacts/genesis.block 2019-06-16 23:07:20.775 IST [common.tools.configtxgen] main -> WARN 001 Omitting the channel ID for configtxgen for output operations is deprecated. Explicitly passing the channel ID will be required in the future, defaulting to 'testchainid'. 2019-06-16 23:07:20.775 IST [common.tools.configtxgen] main -> INFO 002 Loading configuration 2019-06-16 23:07:20.788 IST [common.tools.configtxgen.localconfig] Load -> PANI 003 Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 2019-06-16 23:07:20.788 IST [common.tools.configtxgen] func1 -> PANI 004 Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 panic: Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 [recovered] panic: Error unmarshaling config into struct: 1 error(s) decoding: * '' has invalid keys: v1_1 goroutine 1 [running]: github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000121970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0000b2240, 0xc0002f9804, 0xc00009b1a0, 0x59, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0000b2240, 0xc00009b1a0, 0x59, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0000b2248, 0xc0002f9938, 0x1, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 main.main.func1() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1a9 panic(0xd4fc40, 0xc0003018e0) /opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1b9 github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000121970, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).log(0xc0000b2220, 0xc0002f9c04, 0xc00009b080, 0x59, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6 github.com/hyperledger/fabric/vendor/go.uber.org/zap.(*SugaredLogger).Panicf(0xc0000b2220, 0xc00009b080, 0x59, 0x0, 0x0, 0x0) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79 github.com/hyperledger/fabric/common/flogging.(*FabricLogger).Panic(0xc0000b2228, 0xc0002f9d98, 0x2, 0x2) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75 github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7ffeb116516d, 0xe, 0x0, 0x0, 0x0, 0x1) /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:282 +0x580 main.main() /w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb2f Anyone know any solution please?

SatheeshNehru (Mon, 17 Jun 2019 07:05:26 GMT):
will reenrollment revoke older certs???

lesleyannj (Tue, 18 Jun 2019 15:39:18 GMT):
Has joined the channel.

hanubc7743 (Tue, 18 Jun 2019 19:52:45 GMT):
Hi Anybody know how to work with hyperledger fabric java sdk and ipfs?

kynguyen910 (Wed, 19 Jun 2019 08:19:11 GMT):
Has joined the channel.

Shanmugaapriyan (Wed, 19 Jun 2019 11:18:16 GMT):
Has joined the channel.

Shanmugaapriyan (Wed, 19 Jun 2019 11:28:03 GMT):
Hi guys , I have one question. Is it possible to develop a java chaincode without using maven or gradle repositories for including the dependencies. (i.e) I would like to add the dependencies in the old fashion way by manually adding the jars and zips to the library. Is this possible to create the chaincode in this way ?

Shanmugaapriyan (Wed, 19 Jun 2019 11:28:03 GMT):
Hi guys, I would like to know whether it's possible to develop a java chaincode without using maven or gradle repositories for including the dependencies. (i.e) I would like to add the dependencies in the old fashion way by manually adding the jars and zips to the library. Is this possible to create the chaincode in this way ?

hanubc7743 (Wed, 19 Jun 2019 17:47:14 GMT):
Hi Can we integrate oracle db instead of couch db in hyperledger fabric?

Shanmugaapriyan (Thu, 20 Jun 2019 09:56:00 GMT):
there is no support to do this right now. but we may get it in future

Shanmugaapriyan (Thu, 20 Jun 2019 09:56:00 GMT):
there is no support to do this right now, but we may get it in future

hanubc7743 (Fri, 21 Jun 2019 16:14:33 GMT):
When we can expect?

dan13 (Fri, 21 Jun 2019 20:22:13 GMT):
Oracle is not a document database and not open source. You would probably have to built it yourself, although I have no idea why you would.

dan13 (Fri, 21 Jun 2019 20:24:36 GMT):
If you look at what maven/gradle does (creates a "fat jar"), then yes, you should be able to do the same manually.

SatheeshNehru (Mon, 24 Jun 2019 06:35:01 GMT):
what are option available to store user private key in secure way?

Shanmugaapriyan (Mon, 24 Jun 2019 13:26:11 GMT):
@dan13 Then how should I instantiate

Shanmugaapriyan (Mon, 24 Jun 2019 13:26:11 GMT):
@dan13 Then how do I instantiate such a chaincode ?

Shanmugaapriyan (Mon, 24 Jun 2019 13:26:11 GMT):
Then how do I instantiate such a chaincode ? I have no idea where should I have the dependance jars and in what file structure should I place it .... Can you please share the steps/procedure to achieve the same

Shanmugaapriyan (Mon, 24 Jun 2019 13:26:11 GMT):
Then how do I instantiate such a chaincode ? I have no idea where should I have the dependance jars and in what file structure should I place it .... In case if you have tried, can you please share the steps/procedure to achieve the same ?

dan13 (Mon, 24 Jun 2019 18:23:30 GMT):
If you mean how to create that JAR, then create (or get one) one using Maven or Gradle and reverse engineer it. In the past I found this to be a good primer for java chaincode: https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3

tballast (Tue, 25 Jun 2019 07:28:11 GMT):
I want to write a function to list the keys that have been stored on the ledger. So far what I have is this: ``` private Response keys(ChaincodeStub stub, List args) { QueryResultsIterator range = stub.getStateByRange("", ""); StringBuilder s = new StringBuilder("{ \"keys\": ["); boolean firstElementWritten = false; for(KeyValue kv : range){ if(firstElementWritten) s.append(","); s.append(kv.getKey()); firstElementWritten = true; } s.append("]}"); try{ range.close(); } catch(Exception e){ _logger.error("Couldn't properly close iterator in listing function"); } return newSuccessResponse(s.toString().getBytes()); } ``` However, it always just returns an empty list, as though no keys were found. I can query the chaincode and see that there are in fact other values there. Am I doing something wrong, or does anyone have an example of how to make a listing function?

tballast (Tue, 25 Jun 2019 07:28:11 GMT):
I want to write a function to list the keys that have been stored on the ledger. So far what I have is this: ``` private Response keys(ChaincodeStub stub, List args) {QueryResultsIterator range = stub.getStateByRange("", ""); StringBuilder s = new StringBuilder("{ \"keys\": ["); boolean firstElementWritten = false; for(KeyValue kv : range){ if(firstElementWritten) s.append(","); s.append(kv.getKey()); firstElementWritten = true; } s.append("]}"); try{ range.close(); } catch(Exception e){ _logger.error("Couldn't properly close iterator in listing function"); } return newSuccessResponse(s.toString().getBytes()); } ``` However, it always just returns an empty list, as though no keys were found. I can query the chaincode and see that there are in fact other values there. Am I doing something wrong, or does anyone have an example of how to make a listing function?

tballast (Tue, 25 Jun 2019 07:28:11 GMT):
I want to write a function to list the keys that have been stored on the ledger. So far what I have is this: ``` private Response keys(ChaincodeStub stub, List args) { QueryResultsIterator range = stub.getStateByRange("", ""); StringBuilder s = new StringBuilder("{ \"keys\": ["); boolean firstElementWritten = false; for(KeyValue kv : range){ if(firstElementWritten) s.append(","); s.append(kv.getKey()); firstElementWritten = true; } s.append("]}"); try{ range.close(); } catch(Exception e){ _logger.error("Couldn't properly close iterator in listing function"); } return newSuccessResponse(s.toString().getBytes()); } ``` However, it always just returns an empty list, as though no keys were found. I can query the chaincode and see that there are in fact other values there. Am I doing something wrong, or does anyone have an example of how to make a listing function?

tballast (Tue, 25 Jun 2019 07:28:11 GMT):
I want to write a function to list the keys that have been stored on the ledger. So far what I have is this: ``` private Response keys(ChaincodeStub stub, List args) { QueryResultsIterator range = stub.getStateByRange("", ""); StringBuilder s = new StringBuilder("{ \"keys\": ["); boolean firstElementWritten = false; for(KeyValue kv : range){ if(firstElementWritten) s.append(","); s.append(kv.getKey()); firstElementWritten = true; } s.append("]}"); try{ range.close(); } catch(Exception e){ _logger.error("Couldn't properly close iterator in listing function"); } return newSuccessResponse(s.toString().getBytes()); } ``` However, it always just returns an empty list, as though no keys were found. I can query the chaincode and see that there are in fact other values there. Am I doing something wrong, or does anyone have an example of how to make a listing function?

tballast (Tue, 25 Jun 2019 07:28:11 GMT):
I want to write a function to list the keys that have been stored on the ledger. So far what I have is this: ``` private Response keys(ChaincodeStub stub, List args) { QueryResultsIterator range = stub.getStateByRange("", ""); StringBuilder s = new StringBuilder("{ \"keys\": ["); boolean firstElementWritten = false; for(KeyValue kv : range){ if(firstElementWritten) s.append(","); s.append(kv.getKey()); firstElementWritten = true; } s.append("]}"); try{ range.close(); } catch(Exception e){ _logger.error("Couldn't properly close iterator in listing function"); } return newSuccessResponse(s.toString().getBytes()); } ``` However, it always just returns an empty list, as though no keys were found. I can query the chaincode and see that there are in fact other values there. Am I doing something wrong, or does anyone have an example of how to make a listing function? Edit: It seems that if instead of calling `stub.getStateByRange("", "")` , I call `stub.getStateByRange("a", "z")` then it will return actual values. However, the documentation states that they can be empty strings, which will result in an unbounded search. Am I missing something?

davidkel (Tue, 25 Jun 2019 08:03:31 GMT):
Maybe the documentation is wrong or there is an issue with the java shim ? Might be worth raising a jira.

dan13 (Tue, 25 Jun 2019 16:46:56 GMT):
You may find this interesting: https://stackoverflow.com/questions/42520827/retrieving-hyperledger-complete-world-state.

Shanmugaapriyan (Wed, 26 Jun 2019 05:30:14 GMT):
thank you @dan13. I will try

Shanmugaapriyan (Wed, 26 Jun 2019 05:30:14 GMT):
thank you @dan13.

tballast (Wed, 26 Jun 2019 09:35:23 GMT):
Thanks for the responses. @dan13 I actually saw that response, and there's a comment in there "Doesn't work with Java SDK". I didn't take it seriously when it read it, now I believe it though :P

mahoney1 (Thu, 27 Jun 2019 15:53:17 GMT):
reminder that the Fabric Developer Community call is in 8mins @ 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call

mahoney1 (Thu, 27 Jun 2019 17:04:46 GMT):
recording from today's Fabric Developer community call (0627 zip) has been posted here -> https://wiki.hyperledger.org/display/fabric/Community-Call-Recordings

watts (Mon, 01 Jul 2019 08:09:37 GMT):
Has joined the channel.

sudijovski (Tue, 02 Jul 2019 08:41:28 GMT):
Has joined the channel.

alek (Thu, 04 Jul 2019 13:51:50 GMT):
Hi guys, do you know what are plans regarding java 11 support as a chaincode ? I can see that Fabric 1.4.1 by default has installed openJdk 1.8. WIll Java 11 be supported in next release ?

srinu_chunduru (Fri, 05 Jul 2019 08:36:20 GMT):
Has joined the channel.

srinu_chunduru (Fri, 05 Jul 2019 08:36:20 GMT):
Hi Team, I am working on HyperLedger Fabric Java chain code. I feel there is some issue with getStateByRange method. when i pass startKey and endKey as empty, it is not returning any data. But it is working with empty values in GO and NodeJS. Documentation show that both can be empty, but it's not working. Can you please help me in this?

mattiabolzonella1 (Fri, 05 Jul 2019 15:09:43 GMT):
Has joined the channel.

tballast (Mon, 08 Jul 2019 11:33:35 GMT):
Is there a way to pull _just_ the MSP ID from the byte array returned from `getCreator()`? I've implemented the following, which works, but I'm not positive it's a good idea: ``` private static String getSubmitter(byte[] creator) { byte delim = 0x12; // A delimiter that occurs in the array after the MSPID String int offset = 2; // The index of the first character of the MSPID String int idx = ArrayUtils.indexOf(creator, delim); // Safe if array is null if (idx == ArrayUtils.INDEX_NOT_FOUND) return null; return new String(Arrays.copyOfRange(creator, offset, idx)); } ```

tballast (Tue, 09 Jul 2019 06:41:22 GMT):
Just in case anyone find this later and wants to know the answer, I found another way which will work better. ``` public static String getSubmitterId(byte[] creator) { Identities.SerializedIdentity id = getSerializedIdentity(creator); String subId = null; if (id != null) subId = id.getMspid(); return subId; } ``` where the `creator` bytes can be obtained with `ChaincodeStub.getCreator()`

tballast (Tue, 09 Jul 2019 09:29:14 GMT):
Hey @srinu_chunduru I had the exact same issue, and I've seen others report it too. There should probably a jira ticket for it. What i ended up doing was passing in something like "a" and "z" and it gave me the keyss in between, however it's a hack and not a solution.

dan13 (Tue, 09 Jul 2019 13:31:58 GMT):
@tballast you may find this interesting: https://stackoverflow.com/questions/55983466/hyperledger-fabric-implementing-chaincode-level-access-control

tballast (Tue, 09 Jul 2019 13:52:21 GMT):
@dan13 thanks!

SatheeshNehru (Thu, 11 Jul 2019 05:45:50 GMT):
is there any way to view chaincode inside the peer ??

SatheeshNehru (Thu, 11 Jul 2019 06:03:56 GMT):
chaincode peeer

mahoney1 (Thu, 11 Jul 2019 15:43:15 GMT):
FYI - reminder that the Fabric Developer Community call is in ~ 17mins - 4pm UTC (5pm UK, 12pm ET, 9am PT) Meeting Id: https://zoom.us/my/hyperledger.community - agenda is here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call

mahoney1 (Thu, 25 Jul 2019 14:31:59 GMT):
reminder that the Fabric Developer Community call today is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call

Bentipe (Mon, 29 Jul 2019 10:30:57 GMT):
hello guys, on instantiating a chaincode Im getting the following error: ``` failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` I am using docker-compose with the following environment variables: ``` - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=$FABRIC_PEER_NAME - FABRIC_LOGGING_SPEC=debug - CORE_CHAINCODE_LOGGING_LEVEL=debug - CORE_PEER_LOCALMSPID=$LOCAL_MSPID - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/crypto-config/peer/msp - CORE_PEER_ADDRESS=$FABRIC_PEER_NAME:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=$FABRIC_PEER_GOSSIP_BOOTSTRAP - CORE_PEER_GOSSIP_EXTERNALENDPOINT=$FABRIC_PEER_NAME:7051 - CORE_PEER_GOSSIP_USELEADERELECTION=true - CORE_PEER_GOSSIP_ORGLEADER=false - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/crypto-config/peer/tls-msp/signcerts/cert.pem - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/crypto-config/peer/tls-msp/keystore/$CATLSKEYFILENAME - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/crypto-config/peer/tls-msp/cacerts/$TLSCACERT ``` If someone can help me, thanks.

Bentipe (Mon, 29 Jul 2019 13:10:33 GMT):
hello again: during installation of chaincode I am given the following error, 019-07-29 12:57:32.291 UTC [container] WriteFileToPackage -> DEBU 05e Writing file to tarball: src/gradle/wrapper/gradle-wrapper.jar fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7f4efdd1e3f8] runtime stack: runtime.throw(0x1272c18, 0x2a) /opt/go/src/runtime/panic.go:608 +0x72 runtime.sigpanic() /opt/go/src/runtime/signal_unix.go:374 +0x2f2

Bentipe (Mon, 29 Jul 2019 13:10:33 GMT):
hello again: during installation of chaincode I am given the following error:

Bentipe (Mon, 29 Jul 2019 13:12:38 GMT):
``` 2019-07-29 12:57:32.273 UTC [msp] GetDefaultSigningIdentity -> DEBU 041 Obtaining default signing identity 2019-07-29 12:57:32.273 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 042 Using default escc 2019-07-29 12:57:32.273 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 043 Using default vscc 2019-07-29 12:57:32.273 UTC [chaincode.platform.java] GetDeploymentPayload -> DEBU 044 Packaging java project from path platform.blockchain.chaincodes.process/ 2019-07-29 12:57:32.274 UTC [container] WriteJavaProjectToPackage -> DEBU 045 Packaging Java project from path platform.blockchain.chaincodes.process 2019-07-29 12:57:32.274 UTC [container] WriteFolderToTarPackage -> DEBU 046 rootDirectory = platform.blockchain.chaincodes.process 2019-07-29 12:57:32.275 UTC [container] WriteFileToPackage -> DEBU 047 Writing file to tarball: src/.gradle/4.10.3/fileChanges/last-build.bin 2019-07-29 12:57:32.277 UTC [container] WriteFileToPackage -> DEBU 048 Writing file to tarball: src/.gradle/4.10.3/fileContent/fileContent.lock 2019-07-29 12:57:32.277 UTC [container] WriteFileToPackage -> DEBU 049 Writing file to tarball: src/.gradle/4.10.3/fileHashes/fileHashes.bin 2019-07-29 12:57:32.278 UTC [container] WriteFileToPackage -> DEBU 04a Writing file to tarball: src/.gradle/4.10.3/fileHashes/fileHashes.lock 2019-07-29 12:57:32.278 UTC [container] WriteFileToPackage -> DEBU 04b Writing file to tarball: src/.gradle/4.10.3/fileHashes/resourceHashesCache.bin 2019-07-29 12:57:32.279 UTC [container] WriteFileToPackage -> DEBU 04c Writing file to tarball: src/.gradle/4.10.3/gc.properties 2019-07-29 12:57:32.279 UTC [container] WriteFileToPackage -> DEBU 04d Writing file to tarball: src/.gradle/4.10.3/javaCompile/classAnalysis.bin 2019-07-29 12:57:32.280 UTC [container] WriteFileToPackage -> DEBU 04e Writing file to tarball: src/.gradle/4.10.3/javaCompile/jarAnalysis.bin 2019-07-29 12:57:32.280 UTC [container] WriteFileToPackage -> DEBU 04f Writing file to tarball: src/.gradle/4.10.3/javaCompile/javaCompile.lock 2019-07-29 12:57:32.280 UTC [container] WriteFileToPackage -> DEBU 050 Writing file to tarball: src/.gradle/4.10.3/javaCompile/taskHistory.bin 2019-07-29 12:57:32.281 UTC [container] WriteFileToPackage -> DEBU 051 Writing file to tarball: src/.gradle/4.10.3/taskHistory/taskHistory.bin 2019-07-29 12:57:32.284 UTC [container] WriteFileToPackage -> DEBU 052 Writing file to tarball: src/.gradle/4.10.3/taskHistory/taskHistory.lock 2019-07-29 12:57:32.284 UTC [container] WriteFileToPackage -> DEBU 053 Writing file to tarball: src/.gradle/buildOutputCleanup/buildOutputCleanup.lock 2019-07-29 12:57:32.285 UTC [container] WriteFileToPackage -> DEBU 054 Writing file to tarball: src/.gradle/buildOutputCleanup/cache.properties 2019-07-29 12:57:32.285 UTC [container] WriteFileToPackage -> DEBU 055 Writing file to tarball: src/.gradle/buildOutputCleanup/outputFiles.bin 2019-07-29 12:57:32.286 UTC [container] WriteFileToPackage -> DEBU 056 Writing file to tarball: src/.gradle/vcs-1/gc.properties 2019-07-29 12:57:32.286 UTC [container] WriteFileToPackage -> DEBU 057 Writing file to tarball: src/.idea/gradle.xml 2019-07-29 12:57:32.286 UTC [container] WriteFileToPackage -> DEBU 058 Writing file to tarball: src/.idea/misc.xml 2019-07-29 12:57:32.287 UTC [container] WriteFileToPackage -> DEBU 059 Writing file to tarball: src/.idea/vcs.xml 2019-07-29 12:57:32.287 UTC [container] WriteFileToPackage -> DEBU 05a Writing file to tarball: src/.idea/workspace.xml 2019-07-29 12:57:32.288 UTC [container] WriteFileToPackage -> DEBU 05b Writing file to tarball: src/CHANGES.md 2019-07-29 12:57:32.288 UTC [container] WriteFileToPackage -> DEBU 05c Writing file to tarball: src/README.md 2019-07-29 12:57:32.290 UTC [container] WriteFileToPackage -> DEBU 05d Writing file to tarball: src/build.gradle 2019-07-29 12:57:32.291 UTC [container] WriteFileToPackage -> DEBU 05e Writing file to tarball: src/gradle/wrapper/gradle-wrapper.jar ```

Bentipe (Mon, 29 Jul 2019 13:14:23 GMT):

Bentipe - Installation error.txt

Bentipe (Mon, 29 Jul 2019 14:25:33 GMT):
Hey guys, so, I have a chaincode called ProcessChaincode that throws that error on installing. If the name is changed it works

Bentipe (Mon, 29 Jul 2019 14:25:56 GMT):
So, do you have guys that name reserved or something?

Bentipe (Tue, 30 Jul 2019 08:13:17 GMT):
Hello again, so I have 2 chaincodes, one that instantiates and another that wont, both have dependencies, good chaincode has 1 and bad chaincode has 2, both have one in common, If I add the dependency that is not in the good one, from the bad one, the good one will not instantiate, and the only error that I am given is the following: ``` 2019-07-30 07:52:17.685 UTC [endorser] SimulateProposal -> ERRO 176c [demochannel][f974b8c0] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Is there any way to know what does not like about this dependencies?

Bentipe (Tue, 30 Jul 2019 08:14:33 GMT):
well, also I am given this error: ``` 2019-07-30 07:52:17.655 UTC [chaincode] Launch -> DEBU 175f stopping due to error while launching: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ```

Bentipe (Tue, 30 Jul 2019 08:20:54 GMT):
They both build correctly and create the shadow jar correctly

Bentipe (Tue, 30 Jul 2019 08:27:42 GMT):
I have TLS activated on the peers, does that affect any way?

mahoney1 (Wed, 07 Aug 2019 17:26:08 GMT):
reminder that the Fabric Developer Community call tomorrow (Thu) is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here -> https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call

paranjan (Fri, 09 Aug 2019 09:32:30 GMT):
Has joined the channel.

paranjan (Fri, 09 Aug 2019 09:59:13 GMT):
Were you able to solve this? If not, what is the dependency which is causing problem?

paranjan (Fri, 09 Aug 2019 10:01:06 GMT):
For java, the chaincode inside the Peer would be jar. But for other languages eg. node/go where files are simply bundled, it might be seen as eventually, the chaincode would be copied at a location.

Bentipe (Mon, 12 Aug 2019 10:06:53 GMT):
yes

Bentipe (Mon, 12 Aug 2019 10:07:09 GMT):
After a lot of try and error we had to exclude this dependencies: exclude group: 'com.amazonaws' exclude group: 'software.amazon.kinesis' exclude group: 'net.openhft' exclude group: 'org.bouncycastle'

SatheeshNehru (Tue, 13 Aug 2019 06:05:10 GMT):
what is the differrence in writing chaincode by implementing contract interface and extending chaincodebaseclass?

sstone1 (Tue, 13 Aug 2019 06:55:00 GMT):
“Implementing contract interface” is the new programming model for Java smart contracts. It provides a much simpler experience than the old programming model “extending chaincodebaseclass”.

sstone1 (Tue, 13 Aug 2019 06:56:11 GMT):
See https://lists.hyperledger.org/g/fabric/message/6573 for the announce

SatheeshNehru (Tue, 13 Aug 2019 06:57:30 GMT):
thank you is there any significant feature in contract interface thats not in chaincode base

sstone1 (Tue, 13 Aug 2019 07:10:23 GMT):
Not yet, but that will be changing soon

sstone1 (Tue, 13 Aug 2019 07:10:23 GMT):
it will remain in beta for 1-2 weeks whilst we finish off the documentation. unless you're planning to go into production tomorrow i recommend using the new high level programming model for Java. the APIs won't change at this point.

sstone1 (Tue, 13 Aug 2019 07:10:23 GMT):
Not yet, but that will change soon.

Jelle.Diet (Wed, 14 Aug 2019 07:46:16 GMT):
This is still in beta right? should not be used yet for live applications?

sstone1 (Wed, 14 Aug 2019 08:11:53 GMT):
it will remain in beta for 1-2 weeks whilst we finish off the documentation. unless you're planning to go into production tomorrow i recommend using the new high level programming model for Java. the APIs won't change at this point.

knagware9 (Fri, 16 Aug 2019 07:13:54 GMT):
@sstone1 private data feature, attribute access control,key level endorsement are available in new programming model Node/Java both ?

sstone1 (Fri, 16 Aug 2019 07:39:39 GMT):
Everything is available in the new programming model

knagware9 (Fri, 16 Aug 2019 07:40:51 GMT):
Great , Thank you

knagware9 (Fri, 16 Aug 2019 07:43:24 GMT):
Do we any fabric samples which includes all above features , I know about commercial paper but i think there is no private data in the sample

jtonline (Mon, 19 Aug 2019 09:36:33 GMT):
Has joined the channel.

galaxystar (Tue, 20 Aug 2019 01:22:34 GMT):
Has joined the channel.

bjcawanglu (Tue, 20 Aug 2019 02:02:25 GMT):
Has joined the channel.

mikelee89 (Tue, 20 Aug 2019 10:20:56 GMT):
Has joined the channel.

mikelee89 (Tue, 20 Aug 2019 10:22:07 GMT):
Hi, I am trying to instatiate chaincode from commercial papers sample. But getting this error . How do I resolve this? dev-peer0.org1.example.com-papercontract-0|09:04:15:188 INFO org.hyperledger.fabric.contract.metadata.MetadataBuilder validate Running schema test validation dev-peer0.org1.example.com-papercontract-0|Exception in thread "main" org.everit.json.schema.SchemaException: #/definitions/objecttype/properties/%24id: expected type: String, found: JsonObject dev-peer0.org1.example.com-papercontract-0| at org.everit.json.schema.loader.LoadingState.createSchemaException(LoadingState.java:151) dev-peer0.org1.exa

mikelee89 (Tue, 20 Aug 2019 14:51:52 GMT):
Commercial-paper example chain code instantiation fail

paranjan (Wed, 21 Aug 2019 09:53:44 GMT):
Has left the channel.

rthatcher (Wed, 21 Aug 2019 15:15:33 GMT):
Has joined the channel.

mahoney1 (Thu, 22 Aug 2019 14:17:53 GMT):
reminder that the Fabric Developer Community call today is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call

gunso (Wed, 28 Aug 2019 05:41:09 GMT):
Has joined the channel.

superafro12 (Tue, 03 Sep 2019 08:48:18 GMT):
Has joined the channel.

superafro12 (Tue, 03 Sep 2019 08:48:19 GMT):
Hello! How do you setup a dev environment for chaincode in Java?

rthatcher (Thu, 05 Sep 2019 14:23:33 GMT):
reminder that the Fabric Application Developer Community call today is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Community+Call

gunso (Fri, 06 Sep 2019 00:29:32 GMT):
Hello, on instantiating a java chaincode behind proxy I'm getting the following error: ``` Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "Gradle build Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details :compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':compileClasspath'. > Could not resolve org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.+. Required by: project : > Failed to list versions for org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim. > Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/maven-metadata.xml. > Could not get resource 'https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/maven-metadata.xml'. > Could not GET 'https://repo.maven.apache.org/maven2/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/maven-metadata.xml'. > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.196.215] failed: connect timed out * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org 1 actionable task: 1 executed BUILD FAILED in 37s " ``` Anyone know how to build java chaincode behind proxy?

gunso (Fri, 06 Sep 2019 00:32:14 GMT):
I'm using sample chaincode (fabirc-samples/chaincode/chaincode-example02/java)

Jelle.Diet (Fri, 06 Sep 2019 11:31:56 GMT):
I would recommend using the IBM vscode plugin, you can find it here https://github.com/IBM-Blockchain/blockchain-vscode-extension

pradeeppadmarajaiah (Mon, 09 Sep 2019 08:31:44 GMT):
How to install and start custom java chaincode. ?? Could you please provide the tutorial link . i see for node and go. https://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html

mahoney1 (Mon, 09 Sep 2019 10:27:39 GMT):
to do via CLI, check out the [README](https://github.com/hyperledger/fabric-samples/tree/release-1.4/commercial-paper#install-and-instantiate-the-contract) in Fabric Samples - otherwise would recommend the free IBM VS Code extension mentioned [previously](https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform) to install/start/manage/debug etc, the custom Java chaincode project in your dev environment

pradeeppadmarajaiah (Tue, 10 Sep 2019 07:10:17 GMT):
Thank u

Bentipe (Thu, 19 Sep 2019 14:33:49 GMT):
hey guys, can you have a look at this please? https://jira.hyperledger.org/browse/FAB-16633?jql=project%20%3D%20FAB%20AND%20component%20%3D%20fabric-chaincode-java

mahoney1 (Thu, 19 Sep 2019 15:22:01 GMT):
reminder that the Fabric Application Developer Community call today is at 4pm UTC (5pm UK, 12pm ET, 9am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas%3A+Fabric+Application+Developer+Community+Call

sstone1 (Thu, 19 Sep 2019 15:25:10 GMT):
you don't need the version. a channel can only have a single version of a chaincode instantiated at any one time. once you've upgraded a chaincode on a channel, then you cannot call the old version of that chaincode on that channel.

Bentipe (Fri, 20 Sep 2019 07:12:52 GMT):
TY :)

jaehyun (Mon, 23 Sep 2019 06:13:11 GMT):
Has joined the channel.

jaehyun (Mon, 23 Sep 2019 06:13:15 GMT):
Hello! everyone. When I write chaincode in golang , I must define functions in Invoke(). For example, if function == "initMarble" { //create a new marble return t.initMarble(stub, args) } else if function == "transferMarble" { //change owner of a specific marble return t.transferMarble(stub, args) .. and so on. But, when I write chaincode in node or java, there are no need to define function names in chaincode. It seems that chaincode.contract in java and chaincode-contract-api in node those are helping to find function interactively.

jaehyun (Mon, 23 Sep 2019 06:13:15 GMT):
Hello! everyone. When I write chaincode in golang , I must define functions in Invoke(). For example, if function == "initMarble" { //create a new marble return t.initMarble(stub, args) } else if function == "transferMarble" { //change owner of a specific marble return t.transferMarble(stub, args) .. and so on. But, when I write chaincode in node or java, there are no need to define function names in chaincode. It seems that chaincode.contract in java and chaincode-contract-api in node those are helping to find function interactively. Will chaincode in golang change like node and java? Thank you for any help! :grinning:

mahoney1 (Thu, 03 Oct 2019 10:46:13 GMT):
reminder that the Fabric Application Developer Community call today is at **3pm** UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Fabric+Application+Developer+Community+Call

AbhishekDudhrejia (Fri, 04 Oct 2019 05:31:17 GMT):
Has joined the channel.

icordoba (Fri, 04 Oct 2019 17:46:23 GMT):
Hello I am trying to go through FabCar tutorial in java. I can't start the network. Executing ./startFabric.sh java will finally endup with:

icordoba (Fri, 04 Oct 2019 17:46:24 GMT):
Instantiating smart contract on mychannel + docker exec -e CORE_PEER_LOCALMSPID=Org1MSP -e CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp cli peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n fabcar -l java -v 1.0 -c '{"Args":[]}' -P 'AND('\''Org1MSP.member'\'','\''Org2MSP.member'\'')' --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem --peerAddresses peer0.org1.example.com:7051 --tlsRootCertFiles /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt 2019-10-04 17:39:29.300 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc 2019-10-04 17:39:29.301 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1

icordoba (Fri, 04 Oct 2019 17:46:56 GMT):
Any recommended java chaincode development tutorial for 1.4.3?

icordoba (Thu, 10 Oct 2019 19:25:46 GMT):
I have done some more tests and all my java chaincode implementing ContractInterface fails peer chaincode instantiate with previous error while if I rewrite it extending (I thing old now) ChaincodeBase class works perfect. Can anybody confirm ContractInterface java chaincode is working ok on 1.4.3? Thanks.

icordoba (Fri, 11 Oct 2019 11:41:52 GMT):
Can you confirm if the contract interface is working on last 1.4.3 version? I keep on getting an error everytime I try to instantiate this type of chaincode: "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 "

mbwhite (Fri, 11 Oct 2019 13:02:56 GMT):
Yes - it should be working... are there any other error messages you can see in the docker logs?

mbwhite (Fri, 11 Oct 2019 13:13:39 GMT):
You mention tutorials @icordoba If you're a VSCode user I'd install https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform and look at the tutorial in there.

mbwhite (Fri, 11 Oct 2019 13:14:11 GMT):
Also I have some notes on http://proterra.me.uk/nx01/programming/2019/07/31/201/

mbwhite (Fri, 11 Oct 2019 13:14:33 GMT):
(due to other events not been able to pay attention to this channel as much as would have been liked... please @ just in case!)

icordoba (Fri, 11 Oct 2019 21:55:48 GMT):
HI @mbwhite and thanks for your help. This is the only logs I see in orderer.example.com:

icordoba (Fri, 11 Oct 2019 21:55:50 GMT):
2019-10-11 21:54:52.173 UTC [orderer.common.broadcast] Handle -> WARN 063 Error reading from 192.168.144.15:41930: rpc error: code = Canceled desc = context canceled 2019-10-11 21:54:52.173 UTC [comm.grpc.server] 1 -> INFO 064 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=192.168.144.15:41930 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=28.3411008s

icordoba (Fri, 11 Oct 2019 21:56:07 GMT):
I can't find any other logs in orderer or peer nodes

icordoba (Fri, 11 Oct 2019 22:06:01 GMT):
BTW; I have Java 12.0.1 installed. Could this be the problem? (In the gradle build file of the chaincode I set Java 8 as version of course)

mbwhite (Mon, 14 Oct 2019 09:06:57 GMT):
that shouldn't be a problem. have you tried the approach in vscode?

mbwhite (Mon, 14 Oct 2019 11:01:04 GMT):
Based on one of the sample contracts, I've sketched out quickly the minimal steps, purely on the command line using Hyperledger Fabric 1.4.3 https://gist.github.com/mbwhite/73630b4f24acab1e1ece2f726ea526f9 This was from me running those commands this morning, there may be errors and probably typos.. Any feedback welcome, and I'll work to getting this properly published.

chill37 (Tue, 15 Oct 2019 04:26:55 GMT):
Has joined the channel.

chill37 (Tue, 15 Oct 2019 04:27:00 GMT):
@mbwhite Hi. I'm having same issue. I've tried your way (written in your gist), but I'm still getting the same error. After the successful build of Gradle, Chaincode container puts out error and chaincode instantiation fails dev-peer0.org1.example.com-fabcar-1|Error: Main method not found in class org.hyperledger.fabric.samples.fabcar.FabCar, please define the main method as: dev-peer0.org1.example.com-fabcar-1| public static void main(String[] args) dev-peer0.org1.example.com-fabcar-1|or a JavaFX application class must extend javafx.application.Application peer0.org1.example.com|2019-10-15 01:29:27.351 UTC [endorser] callChaincode -> INFO 042 [mychannel][9d6ee03b] Exit chaincode: name:"lscc" (96511ms) peer0.org1.example.com|2019-10-15 01:29:27.351 UTC [endorser] SimulateProposal -> ERRO 043 [mychannel][9d6ee03b] failed to invoke chaincode name:"lscc" , error: container exited with 1 peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 peer0.org1.example.com|runtime.goexit peer0.org1.example.com| /opt/go/src/runtime/asm_amd64.s:1333 peer0.org1.example.com|chaincode registration failed

chill37 (Tue, 15 Oct 2019 04:27:00 GMT):
@mbwhite Hi. I'm having same issue. I've tried your way (written in your gist), but I'm still getting the same error. After the successful build of Gradle, Chaincode container puts out error and chaincode instantiation fails (fabric 1.4.3, trying to instantiate fabcar java) dev-peer0.org1.example.com-fabcar-1|Error: Main method not found in class org.hyperledger.fabric.samples.fabcar.FabCar, please define the main method as: dev-peer0.org1.example.com-fabcar-1| public static void main(String[] args) dev-peer0.org1.example.com-fabcar-1|or a JavaFX application class must extend javafx.application.Application peer0.org1.example.com|2019-10-15 01:29:27.351 UTC [endorser] callChaincode -> INFO 042 [mychannel][9d6ee03b] Exit chaincode: name:"lscc" (96511ms) peer0.org1.example.com|2019-10-15 01:29:27.351 UTC [endorser] SimulateProposal -> ERRO 043 [mychannel][9d6ee03b] failed to invoke chaincode name:"lscc" , error: container exited with 1 peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 peer0.org1.example.com|runtime.goexit peer0.org1.example.com| /opt/go/src/runtime/asm_amd64.s:1333 peer0.org1.example.com|chaincode registration failed

icordoba (Tue, 15 Oct 2019 07:45:10 GMT):
Thanks a log @mbwhite I have been trying last days with the VSCode example and that made the trick. Also your latest simple tutorial is very helpful. My problem was different... I think I was getting error 500 because in old code the class of the smart contract needs to be specific in the shadowJar Manifest in gradle build, while a generic class needs to be specific in the new ContractInterface:

icordoba (Tue, 15 Oct 2019 07:45:21 GMT):
attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter'

icordoba (Tue, 15 Oct 2019 07:45:39 GMT):
I was settin there my SmartContract class.

icordoba (Tue, 15 Oct 2019 07:47:31 GMT):
I have prepared a basic network based on BYFN with Raft and CouchDB and my code is correctly instantiated. Invoking and querying also work. Again, thanks a lot for your help.

mbwhite (Tue, 15 Oct 2019 07:56:11 GMT):
I think the key thing is that the main class must be defined as `attributes 'Main-Class': 'org.hyperledger.fabric.contract.ContractRouter' ` NOT the contract class.

icordoba (Tue, 15 Oct 2019 08:26:24 GMT):
@chill37 Please check that as that was my problem

mbwhite (Tue, 15 Oct 2019 08:32:51 GMT):
The Contract interface in both Node, and Java works a little differently from the 'chaincode' interface. You can code multiple class the extend the contract interface, say for different parts of the overall application. Each 'transaction function' on these classes can be individually addressed. To achieve this the main class is fixed - in the Java case to the 'org.hyperledger.fabric.contract.ContractRouter' class. This will introspect your contracts and types and start everything up and runinnng.

chill37 (Wed, 16 Oct 2019 05:07:55 GMT):
@mbwhite @icordoba Hi. Thanks for the reply. I tried it with your solution but still coming up with error. My error is as following(Gradle build was successful): dev-peer0.org1.example.com-fabcar-1|04:17:38:690 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request dev-peer0.org1.example.com-fabcar-1|04:17:38:704 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for: [] dev-peer0.org1.example.com-fabcar-1|04:17:38:708 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:unknownTransaction:org.hyperledger.fabric.samples.fabcar.FabCar dev-peer0.org1.example.com-fabcar-1|04:17:38:876 SEVERE org.hyperledger.fabric.Logger error Undefined contract method calledorg.hyperledger.fabric.shim.ChaincodeException: Undefined contract method called dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.ContractInterface.unknownTransaction(ContractInterface.java:74) dev-peer0.org1.example.com-fabcar-1| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) dev-peer0.org1.example.com-fabcar-1| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) dev-peer0.org1.example.com-fabcar-1| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) dev-peer0.org1.example.com-fabcar-1| at java.lang.reflect.Method.invoke(Method.java:498) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:103) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.shim.impl.Handler.lambda$handleInit$0(Handler.java:281) dev-peer0.org1.example.com-fabcar-1| at java.lang.Thread.run(Thread.java:748) dev-peer0.org1.example.com-fabcar-1| dev-peer0.org1.example.com-fabcar-1|04:17:38:885 SEVERE org.hyperledger.fabric.shim.impl.Handler lambda$handleInit$0 [1497be37] Init failed. Sending ERROR peer0.org1.example.com|2019-10-16 04:17:38.899 UTC [endorser] callChaincode -> INFO 043 [mychannel][1497be37] Exit chaincode: name:"lscc" (91843ms) peer0.org1.example.com|2019-10-16 04:17:38.900 UTC [endorser] SimulateProposal -> ERRO 044 [mychannel][1497be37] failed to invoke chaincode name:"lscc" , error: transaction returned with failure: Undefined contract method called peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:266

chill37 (Wed, 16 Oct 2019 05:07:55 GMT):
@mbwhite @icordoba Hi. Thanks for the reply. I tried it and it worked! My error is as following(Gradle build was successful): dev-peer0.org1.example.com-fabcar-1|04:17:38:690 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request dev-peer0.org1.example.com-fabcar-1|04:17:38:704 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for: [] dev-peer0.org1.example.com-fabcar-1|04:17:38:708 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:unknownTransaction:org.hyperledger.fabric.samples.fabcar.FabCar dev-peer0.org1.example.com-fabcar-1|04:17:38:876 SEVERE org.hyperledger.fabric.Logger error Undefined contract method calledorg.hyperledger.fabric.shim.ChaincodeException: Undefined contract method called dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.ContractInterface.unknownTransaction(ContractInterface.java:74) dev-peer0.org1.example.com-fabcar-1| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) dev-peer0.org1.example.com-fabcar-1| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) dev-peer0.org1.example.com-fabcar-1| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) dev-peer0.org1.example.com-fabcar-1| at java.lang.reflect.Method.invoke(Method.java:498) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:103) dev-peer0.org1.example.com-fabcar-1| at org.hyperledger.fabric.shim.impl.Handler.lambda$handleInit$0(Handler.java:281) dev-peer0.org1.example.com-fabcar-1| at java.lang.Thread.run(Thread.java:748) dev-peer0.org1.example.com-fabcar-1| dev-peer0.org1.example.com-fabcar-1|04:17:38:885 SEVERE org.hyperledger.fabric.shim.impl.Handler lambda$handleInit$0 [1497be37] Init failed. Sending ERROR peer0.org1.example.com|2019-10-16 04:17:38.899 UTC [endorser] callChaincode -> INFO 043 [mychannel][1497be37] Exit chaincode: name:"lscc" (91843ms) peer0.org1.example.com|2019-10-16 04:17:38.900 UTC [endorser] SimulateProposal -> ERRO 044 [mychannel][1497be37] failed to invoke chaincode name:"lscc" , error: transaction returned with failure: Undefined contract method called peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:266

chill37 (Wed, 16 Oct 2019 05:07:55 GMT):
@mbwhite @icordoba Hi. Thanks for the reply. I tried it and it worked! My error is as following(Gradle build was successful): dev-peer0.org1.example.com-fabcar-4|06:28:35:839 INFO io.grpc.netty.GrpcSslContexts defaultSslProvider netty-tcnative unavailable (this may be normal) dev-peer0.org1.example.com-fabcar-4|java.lang.ClassNotFoundException: io.netty.internal.tcnative.SSL dev-peer0.org1.example.com-fabcar-4| at java.net.URLClassLoader.findClass(URLClassLoader.java:382) dev-peer0.org1.example.com-fabcar-4| at java.lang.ClassLoader.loadClass(ClassLoader.java:424) dev-peer0.org1.example.com-fabcar-4| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) dev-peer0.org1.example.com-fabcar-4| at java.lang.ClassLoader.loadClass(ClassLoader.java:357) dev-peer0.org1.example.com-fabcar-4| at java.lang.Class.forName0(Native Method) dev-peer0.org1.example.com-fabcar-4| at java.lang.Class.forName(Class.java:348) ... dev-peer0.org1.example.com-fabcar-4|06:28:35:858 SEVERE org.hyperledger.fabric.Logger error Unable to start routingorg.hyperledger.fabric.contract.ContractRuntimeException: Unable to start routing dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.startRouting(ContractRouter.java:72) dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.main(ContractRouter.java:139) dev-peer0.org1.example.com-fabcar-4| dev-peer0.org1.example.com-fabcar-4|Exception in thread "main" org.hyperledger.fabric.contract.ContractRuntimeException: Unable to start routing dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.startRouting(ContractRouter.java:72) dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.main(ContractRouter.java:139) peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [endorser] callChaincode -> INFO 0cc [mychannel][36dcc1cb] Exit chaincode: name:"lscc" (4504ms) peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [endorser] SimulateProposal -> ERRO 0cd [mychannel][36dcc1cb] failed to invoke chaincode name:"lscc" , error: container exited with 1 peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 peer0.org1.example.com|runtime.goexit peer0.org1.example.com| /opt/go/src/runtime/asm_amd64.s:1333 peer0.org1.example.com|chaincode registration failed peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [comm.grpc.server] 1 -> INFO 0ce unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.240.13:35230 grpc.code=OK grpc.call_duration=4.5077198s orderer.example.com|2019-10-16 06:28:36.542 UTC [orderer.common.broadcast] Handle -> WARN 043 Error reading from 192.168.240.13:35864: rpc error: code = Canceled desc = context canceled

chill37 (Wed, 16 Oct 2019 05:07:55 GMT):
@mbwhite @icordoba Hi. Thanks for the reply. I tried it and it worked! (using basic network and your gist method) My error is as following(Gradle build was successful): dev-peer0.org1.example.com-fabcar-4|06:28:35:839 INFO io.grpc.netty.GrpcSslContexts defaultSslProvider netty-tcnative unavailable (this may be normal) dev-peer0.org1.example.com-fabcar-4|java.lang.ClassNotFoundException: io.netty.internal.tcnative.SSL dev-peer0.org1.example.com-fabcar-4| at java.net.URLClassLoader.findClass(URLClassLoader.java:382) dev-peer0.org1.example.com-fabcar-4| at java.lang.ClassLoader.loadClass(ClassLoader.java:424) dev-peer0.org1.example.com-fabcar-4| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) dev-peer0.org1.example.com-fabcar-4| at java.lang.ClassLoader.loadClass(ClassLoader.java:357) dev-peer0.org1.example.com-fabcar-4| at java.lang.Class.forName0(Native Method) dev-peer0.org1.example.com-fabcar-4| at java.lang.Class.forName(Class.java:348) ... dev-peer0.org1.example.com-fabcar-4|06:28:35:858 SEVERE org.hyperledger.fabric.Logger error Unable to start routingorg.hyperledger.fabric.contract.ContractRuntimeException: Unable to start routing dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.startRouting(ContractRouter.java:72) dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.main(ContractRouter.java:139) dev-peer0.org1.example.com-fabcar-4| dev-peer0.org1.example.com-fabcar-4|Exception in thread "main" org.hyperledger.fabric.contract.ContractRuntimeException: Unable to start routing dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.startRouting(ContractRouter.java:72) dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.main(ContractRouter.java:139) peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [endorser] callChaincode -> INFO 0cc [mychannel][36dcc1cb] Exit chaincode: name:"lscc" (4504ms) peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [endorser] SimulateProposal -> ERRO 0cd [mychannel][36dcc1cb] failed to invoke chaincode name:"lscc" , error: container exited with 1 peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 peer0.org1.example.com|runtime.goexit peer0.org1.example.com| /opt/go/src/runtime/asm_amd64.s:1333 peer0.org1.example.com|chaincode registration failed peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [comm.grpc.server] 1 -> INFO 0ce unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.240.13:35230 grpc.code=OK grpc.call_duration=4.5077198s orderer.example.com|2019-10-16 06:28:36.542 UTC [orderer.common.broadcast] Handle -> WARN 043 Error reading from 192.168.240.13:35864: rpc error: code = Canceled desc = context canceled

chill37 (Wed, 16 Oct 2019 05:07:55 GMT):
@mbwhite @icordoba Hi. Thanks for the reply. I tried it and it worked! (using basic network and your gist method) However, when I try it with first-network using fabcar/startfabric.sh java, it still makes an error. error is as following(Gradle build was successful): dev-peer0.org1.example.com-fabcar-4|06:28:35:839 INFO io.grpc.netty.GrpcSslContexts defaultSslProvider netty-tcnative unavailable (this may be normal) dev-peer0.org1.example.com-fabcar-4|java.lang.ClassNotFoundException: io.netty.internal.tcnative.SSL dev-peer0.org1.example.com-fabcar-4| at java.net.URLClassLoader.findClass(URLClassLoader.java:382) dev-peer0.org1.example.com-fabcar-4| at java.lang.ClassLoader.loadClass(ClassLoader.java:424) dev-peer0.org1.example.com-fabcar-4| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) dev-peer0.org1.example.com-fabcar-4| at java.lang.ClassLoader.loadClass(ClassLoader.java:357) dev-peer0.org1.example.com-fabcar-4| at java.lang.Class.forName0(Native Method) dev-peer0.org1.example.com-fabcar-4| at java.lang.Class.forName(Class.java:348) ... dev-peer0.org1.example.com-fabcar-4|06:28:35:858 SEVERE org.hyperledger.fabric.Logger error Unable to start routingorg.hyperledger.fabric.contract.ContractRuntimeException: Unable to start routing dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.startRouting(ContractRouter.java:72) dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.main(ContractRouter.java:139) dev-peer0.org1.example.com-fabcar-4| dev-peer0.org1.example.com-fabcar-4|Exception in thread "main" org.hyperledger.fabric.contract.ContractRuntimeException: Unable to start routing dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.startRouting(ContractRouter.java:72) dev-peer0.org1.example.com-fabcar-4| at org.hyperledger.fabric.contract.ContractRouter.main(ContractRouter.java:139) peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [endorser] callChaincode -> INFO 0cc [mychannel][36dcc1cb] Exit chaincode: name:"lscc" (4504ms) peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [endorser] SimulateProposal -> ERRO 0cd [mychannel][36dcc1cb] failed to invoke chaincode name:"lscc" , error: container exited with 1 peer0.org1.example.com|github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 peer0.org1.example.com| /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 peer0.org1.example.com|runtime.goexit peer0.org1.example.com| /opt/go/src/runtime/asm_amd64.s:1333 peer0.org1.example.com|chaincode registration failed peer0.org1.example.com|2019-10-16 06:28:36.538 UTC [comm.grpc.server] 1 -> INFO 0ce unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=192.168.240.13:35230 grpc.code=OK grpc.call_duration=4.5077198s orderer.example.com|2019-10-16 06:28:36.542 UTC [orderer.common.broadcast] Handle -> WARN 043 Error reading from 192.168.240.13:35864: rpc error: code = Canceled desc = context canceled

mbwhite (Wed, 16 Oct 2019 09:12:55 GMT):
We have seen one report of that previously; but that we believe was a mix of the master branch and 1.4.3..

mbwhite (Wed, 16 Oct 2019 09:13:10 GMT):
could that be the case here? (am checking as well)

chill37 (Wed, 16 Oct 2019 09:58:34 GMT):
@mbwhite I think I got it working. The problem is with the "tls" when I removed the word "tls" from startfabric.sh (line 121, tag 1.4.3), it worked. (probably why it worked with basic-network you advised with your gist) Still not sure why it works when tls is disabled. would you happen to know why?

chill37 (Wed, 16 Oct 2019 10:00:14 GMT):
as far as I see it, I downloaded and branched all fabric-downloads with 1.4.3(release-1.4)

mbwhite (Wed, 16 Oct 2019 10:00:30 GMT):
that would match up with my thinking as well.. I *think* that the errors relating to SSL that are marked as ok may be being treated as not ok

mbwhite (Wed, 16 Oct 2019 10:00:41 GMT):
(aside just reproduced it here)

mbwhite (Wed, 16 Oct 2019 10:13:07 GMT):
for the moment... go with no TLS

gunso (Wed, 16 Oct 2019 10:21:21 GMT):
Hi, we're planning to use fabric-chaincode-java v1.4.3 in production. Is it OK to use contract in v1.4.3? I heard that contract has some bugs.

chill37 (Wed, 16 Oct 2019 10:33:39 GMT):
@mbwhite alright. Thanks for the checkup!

mbwhite (Wed, 16 Oct 2019 10:45:40 GMT):
@chill37 believe the solution is quite simple... in the `fabcar/java/build.gradle` the dependency is wrong... it should be ``` implementation 'org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4.3' ```

mbwhite (Wed, 16 Oct 2019 10:46:25 GMT):
sorry!

chill37 (Wed, 16 Oct 2019 10:48:37 GMT):
@mbwhite I see! I did wonder if fabric-chaincode-shim was only available in 2.0.0. should've asked that first. Thanks!!

mbwhite (Wed, 16 Oct 2019 10:49:16 GMT):
It was only when I went to start to debug into the problem I spotted it...

mbwhite (Wed, 16 Oct 2019 10:49:38 GMT):
got a few fixes to do the tests :-)

mahoney1 (Thu, 17 Oct 2019 09:04:32 GMT):
reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Fabric+Application+Developer+Community+Call

gunso (Thu, 17 Oct 2019 09:40:54 GMT):
Hi, I'm trying to instantiate fabcar's chaincode and getting this error.

chill37 (Thu, 17 Oct 2019 09:47:33 GMT):
file

gunso (Thu, 17 Oct 2019 09:49:26 GMT):
@mbwhite Hi, I'm trying to instantiate fabcar's chaincode and getting this error. ``` [chaincodeCmd] checkChaincodeCmdParams -> INFO 047 Using default escc [chaincodeCmd] checkChaincodeCmdParams -> INFO 048 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 1 ``` ``` org.hyperledger.fabric.contract.metadata.MetadataBuilder initialize Validating scehma created org.hyperledger.fabric.contract.metadata.MetadataBuilder validate Running schema test validation Exception in thread "main" java.io.UncheckedIOException: java.net.UnknownHostException: json-schema.org Caused by: java.net.UnknownHostException: json-schema.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.http.HttpClient.(HttpClient.java:242) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:357) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) at java.net.URLConnection.getContent(URLConnection.java:739) at java.net.URL.getContent(URL.java:1059) at org.everit.json.schema.loader.internal.DefaultSchemaClient.get(DefaultSchemaClient.java:18) ``` It seems to fail validating json schema. Does anyone have good ideas?

mbwhite (Thu, 17 Oct 2019 09:57:46 GMT):
@gunso a change was made in https://jira.hyperledger.org/browse/FAB-16217 to remove the need to access json-schema.org. At times, as you've found, if that host is not available then things fail.

gunso (Thu, 17 Oct 2019 10:02:17 GMT):
@mbwhite the jira is closed, so could you suggest which version of java-chaincode-shim should I use to solve this issue ? I am using 1.4.3

mbwhite (Thu, 17 Oct 2019 10:03:13 GMT):
1.4.4 hasn't yet been published; but there are 1.4.4-SNAPSHOTS

gunso (Thu, 17 Oct 2019 10:05:01 GMT):
@mbwhite We plan to use the contract chaincode in production from mid November, is there any timeline for when will 1.4.4 be published?

mbwhite (Thu, 17 Oct 2019 10:07:11 GMT):
good to hear it's going to be used; as to 1.4.4 would be good to get this out in October..

mbwhite (Thu, 17 Oct 2019 10:08:00 GMT):
are you running the infrastructure in K8S ?

gunso (Thu, 17 Oct 2019 10:10:17 GMT):
@mbwhite No, we're running the hyperledger network on private cloud, without K8S.

mbwhite (Thu, 17 Oct 2019 10:12:36 GMT):
thanks!

chill37 (Fri, 18 Oct 2019 09:27:57 GMT):
Hi. I have one more question. I am trying to utilize the Context class. To better utilize, I am trying to extend it (MyContext extends Context). However, when I put MyContext class in my query method instead of Context, it gives me an error. ( public void initLedger(final MyContext ctx, final string key) {...} ) Are there some other java-chaincode examples that utilize on context? That would be of great help! 08:02:56:433 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 08:02:56:437 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:initLedger [] 08:02:56:440 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:initLedger:org.hyperledger.fabric.samples.fabcar.FabCar 08:02:56:571 SEVERE org.hyperledger.fabric.Logger error argument type mismatchjava.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:57) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:87) at org.hyperledger.fabric.contract.ContractRouter.init(ContractRouter.java:103) at org.hyperledger.fabric.shim.impl.Handler.lambda$handleInit$0(Handler.java:281) at java.lang.Thread.run(Thread.java:748) 08:02:56:577 SEVERE org.hyperledger.fabric.shim.impl.Handler lambda$handleInit$0 [24af4311] Init failed. Sending ERROR

heatherp (Mon, 21 Oct 2019 08:53:05 GMT):
Has joined the channel.

cenkozan (Mon, 21 Oct 2019 13:55:41 GMT):
Has joined the channel.

cenkozan (Mon, 21 Oct 2019 14:17:27 GMT):
Hi, all. Beginner here. Can anyone point me how to develop, debug, and deploy chaincode?

heatherp (Mon, 21 Oct 2019 14:56:58 GMT):
Hey, the docs here should help you: https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html. they make references to samples, found here: https://github.com/hyperledger/fabric-samples - the fabcar sample is a good place to start. This extension for VS Code covers what you want to know in it's tutorials too: https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform#overview

cenkozan (Mon, 21 Oct 2019 15:26:24 GMT):
Hi, Heather! Thx a lot for your answer! If I am managing my own HLF, then I can't use IBM's extension - can I still make use of it, please? Thanks in advance.

heatherp (Mon, 21 Oct 2019 15:42:45 GMT):
You can create a fabric environment in the vscode extension, details here: https://github.com/IBM-Blockchain/blockchain-vscode-extension#connecting-to-another-instance-of-hyperledger-fabric

cenkozan (Mon, 21 Oct 2019 15:54:17 GMT):
Thx a lot, Heather! I will go into this.

ikar (Tue, 22 Oct 2019 10:25:45 GMT):
Has joined the channel.

ikar (Tue, 22 Oct 2019 10:25:46 GMT):
Hello there! can anyone point me on where to start if I want to access some blockdata? E.g.: header, signatures etc. I use java chaincode sdk for accessing the "world state" - the couchDB data. But how would i access some metadata?

mbwhite (Tue, 22 Oct 2019 11:00:48 GMT):
hi - that could be a defect; we'd need to reproduce and take a look... any chance of raising a JIRA pleasE?

Adryx86 (Tue, 22 Oct 2019 11:40:23 GMT):
Has joined the channel.

Adryx86 (Tue, 22 Oct 2019 11:40:24 GMT):
Hello, i'm trying to understand how to wrote a clean chaincode using java. I found 2 ways to do it, first implementing the ContractInterface (i did it following this way and it works well), the second way is extending the ChaincodeBase class and writing code this way is so different. Why there are this possibility on how to implement chaincode ? Thanks in advance

mbwhite (Tue, 22 Oct 2019 11:59:39 GMT):
Hello; the ContractInterface is the preferred way; the ChaincodeBase class extension was the original manner of writing chaincode - but feedback and experience showed that there were many advantages to a highlevel of abstraction. So what you'll see referred to as the 'updated programming model'. This is implemented now across, Node, Java, (and coming soon Go) at 1.4.

Adryx86 (Tue, 22 Oct 2019 12:05:34 GMT):
Thanks for the reply.. i've two other questions.. there is a way to get the identity of the user is invoking a chaincode ? i found the getCreator() method but i was not able to parse it. Also it is a good practice to set submit=false for method related to queries ?

mbwhite (Tue, 22 Oct 2019 12:40:45 GMT):
yes do add the submit=false - but the chaincode doesn't enforce this - it's an indication to the client side that the transaction doesn't need to be submitted rather evaluate. Yes getCreator() is way forward - need to find where there's an example that does that!

Adryx86 (Tue, 22 Oct 2019 12:51:25 GMT):
Thank you so much..

medikent (Tue, 22 Oct 2019 14:44:54 GMT):
Has joined the channel.

medikent (Tue, 22 Oct 2019 14:47:37 GMT):
What are some possible causes for getting a gRPC *access denied* failure when getting the ConfigBlock? I am using a newly generated fabric identity to invoke a chaincode function on a channel. Do I need to create a user with access to a given channel? Below is my stack trace: ``` org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.TransactionException: org.hyperledger.fabric.sdk.exception.ProposalException: getConfigBlock for channel alexchannel failed with peer alex.example.org. Status FAILURE, details: Channel Channel{id: 4, name: alexchannel} Sending proposal with transaction: c88ec73a833a8a8e026e4f03090e058c44b9efec15873470ddd9e8dc2e22cdcc to Peer{ id: 1, name: alex.example.org, channelName: alexchannel, url: grpc://alex.example.org:8051} failed because of: gRPC failure=Status{code=UNKNOWN, description=access denied: channel [alexchannel] creator org [AlexMSP], cause=null} ```

dan13 (Tue, 22 Oct 2019 14:57:26 GMT):
@Adryx86 see https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=vPK9FiLFssjXTG6z2 (or search this channel for "getCreator" find the thread from July 8). HTH

icordoba (Tue, 22 Oct 2019 15:31:11 GMT):
Hello, any recommendation or good practice on which data type to use to store currencty amounts (with cents) in chaincode transaction methods? (I am using Java. In this case, is BigDecimal ok?

Bavaji (Tue, 22 Oct 2019 16:27:03 GMT):
Has joined the channel.

chill37 (Thu, 24 Oct 2019 01:55:49 GMT):
@mbwhite I just raised a bug JIRA!

chill37 (Thu, 24 Oct 2019 08:13:54 GMT):
Is there a way to install a text file when installing chaincode? I tried to put test.txt in 1) same folder as source file, 2) src/main/resources folder. In both case, after instantiation, the chaincode was not able to find the text.txt file that I've installed.

mbwhite (Thu, 24 Oct 2019 08:28:01 GMT):
any chance you share the number please?

mbwhite (Thu, 24 Oct 2019 08:30:04 GMT):
found it... https://jira.hyperledger.org/browse/FAB-16931

chill37 (Thu, 24 Oct 2019 08:38:45 GMT):
@mbwhite yes :smile:

mbwhite (Thu, 24 Oct 2019 08:57:51 GMT):
Yes this can be done; first check I'd suggest is to build the chaincode jar yourself, unpack it to check the maven/gradle script is correct. The harder part is getting Java code to find the file!

chill37 (Thu, 24 Oct 2019 10:15:57 GMT):
I did 2 things to find the file: 1) search through the dev-peer-container to see where the file is (I couldn't find it) 2) write java code to search (search through resources folder or all folders in current position) default void loadFile() throws Exception { System.out.println("loadfile1"); File file = new File(getClass().getClassLoader().getResource("config.properties").getFile()); System.out.println("File Found : " + file.exists()); if (file != null && file.exists()) { FileReader reader = new FileReader(file); BufferedReader br = new BufferedReader(reader); String line; while ((line = br.readLine()) != null) { System.out.println(line); } br.close(); } else { System.out.println("no file"); } } default void loadFile2() throws Exception { System.out.println("loadfile2"); File file2 = new File("."); File[] list = file2.listFiles(); for (int i = 0; i < list.length; i++) { String n = list[i].getName(); System.out.println(n); } System.out.println(list); File file = new File("./test.txt"); if (file != null && file.exists()) { FileReader reader = new FileReader(file); BufferedReader br = new BufferedReader(reader); String line; while ((line = br.readLine()) != null) { System.out.println(line); } br.close(); } else { System.out.println("no file2"); } }

chill37 (Thu, 24 Oct 2019 10:15:57 GMT):
I did 2 things to find the file: 1) search through the dev-peer-container to see where the file is (I couldn't find it) 2) write java code to search (search through resources folder or all folders in current position) still couldn't find it. could you shine some light to where it would be? for the time being I will try to unpack the jar and search it just in case. default void loadFile() throws Exception { System.out.println("loadfile1"); File file = new File(getClass().getClassLoader().getResource("config.properties").getFile()); System.out.println("File Found : " + file.exists()); if (file != null && file.exists()) { FileReader reader = new FileReader(file); BufferedReader br = new BufferedReader(reader); String line; while ((line = br.readLine()) != null) { System.out.println(line); } br.close(); } else { System.out.println("no file"); } } default void loadFile2() throws Exception { System.out.println("loadfile2"); File file2 = new File("."); File[] list = file2.listFiles(); for (int i = 0; i < list.length; i++) { String n = list[i].getName(); System.out.println(n); } System.out.println(list); File file = new File("./test.txt"); if (file != null && file.exists()) { FileReader reader = new FileReader(file); BufferedReader br = new BufferedReader(reader); String line; while ((line = br.readLine()) != null) { System.out.println(line); } br.close(); } else { System.out.println("no file2"); } }

mbwhite (Thu, 24 Oct 2019 12:40:00 GMT):
are you using gradle or maven ?

mattiabolzonella1 (Thu, 24 Oct 2019 15:13:59 GMT):
Hi, i'm trying the new programming model, I can install the chaincode but cannot instatiate it. I recevive the following error: `Error: could not assemble transaction, err proposal response was not successful, error code 500, msg could not find chaincode with name [chaincode name]`, but it's installed and i can see it using `peer chaincode list --installed` (using cli). I'm using peer v 1.4.1, maybe that's the problem?

mattiabolzonella1 (Thu, 24 Oct 2019 15:22:27 GMT):
I've restarted the network and now, in the peer logs I have the following error: ``` failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` Maybe there's an error in my chaincode

mbwhite (Thu, 24 Oct 2019 15:50:55 GMT):
@icordoba are looking to pass this as a parameter to transaction functions - or store in the ledger only ( or both!)

mbwhite (Thu, 24 Oct 2019 15:51:58 GMT):
I'll point you to does that help... https://gist.github.com/mbwhite/73630b4f24acab1e1ece2f726ea526f9

shrivastava.amit (Thu, 24 Oct 2019 16:49:47 GMT):
Hello, I am developing an application using Java SDK and Java for chaincode. he whole setup is deployed to 3 virtual boxes using Docker swarm.

shrivastava.amit (Thu, 24 Oct 2019 16:50:20 GMT):
Kafka and Zookeeper is used for fault tolerence.

shrivastava.amit (Thu, 24 Oct 2019 16:52:30 GMT):
When whole setup is deployed, the chaincode execute successfully and all transaction works fine. But if this setup is left ideal for 30 mins or more. The existing chaincode containers are removed and new containers are launched. This causes any insert operation failure.

shrivastava.amit (Thu, 24 Oct 2019 16:53:03 GMT):
Though the newly launched chaincode containers work fine for search queries

shrivastava.amit (Thu, 24 Oct 2019 16:53:34 GMT):
Any idea why this behavior ?

shrivastava.amit (Thu, 24 Oct 2019 16:54:22 GMT):
I am not finding any directions to look about this problem.

shrivastava.amit (Thu, 24 Oct 2019 16:54:29 GMT):
Thanks a lot in advance

chill37 (Fri, 25 Oct 2019 00:37:53 GMT):
@mbwhite I'm using Gradle. I'm basically modifying from fabcar example.

dan13 (Fri, 25 Oct 2019 02:37:58 GMT):
BigDecimal is fine, in general, for currency with proper scaling and rounding. There are also currency-specific classes, see: https://www.baeldung.com/java-money-and-currency

mattiabolzonella1 (Fri, 25 Oct 2019 06:41:18 GMT):
Thanks for the link, I've recently migrated from java chaincode v 1.4.1 to 1.4.3. I've coded a simple chaincode, merely only the empty constructor and a function that writes on couch db. I'm using maven if it helps understand my problem

mattiabolzonella1 (Fri, 25 Oct 2019 08:21:38 GMT):
I think the error is this https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=oEaSNczmunKx2uTSm

mattiabolzonella1 (Fri, 25 Oct 2019 08:35:14 GMT):
Yes the problem was that i've changed the MainClass attribute in the pom.xml and the chaincode works fine

mattiabolzonella1 (Fri, 25 Oct 2019 08:35:14 GMT):
Yes the problem was that. I've changed the MainClass attribute in the pom.xml and the chaincode works fine

Adryx86 (Fri, 25 Oct 2019 09:49:00 GMT):
Hi, i'm facing an issue with a list of objects as type resul of a transaction method. I modeled my asset and i querying it from the state db (couchdb) using getQueryResult with appropriate selector. This query retrieves 5 object that i serialized in in a list of 5 elements of a specified type. The transaction returns that strongly typed list. The client receives a protobuffer; after the deserialization i have this json as result : {"last":{"date":"","year":"2005","id":"UNI/CT 123/MR","type":"org.horsa.it.model.Norma","version":"05","key":"org.horsa.it.model.Norma@UNI/CT 123/MR:05:2005"},"first":{"date":"","year":"2018","id":"UNI/CT 001/AB","type":"org.horsa.it.model.Norma","version":"01","key":"org.horsa.it.model.Norma@UNI/CT 001/AB:01:2018"}} Where is the List result of the transaction call ?

Adryx86 (Fri, 25 Oct 2019 09:49:00 GMT):
Hi, i'm facing an issue with a list of objects as type result of a transaction method. I stored my assets and i querying them from the state db (couchdb) using getQueryResult with appropriate selector. This query retrieves 5 objects that i serialized then added to a list of 5 elements of a specified type. The transaction returns that strongly typed list. The client receives a protobuffer where after the deserialization i have this json as result : {"last":{"date":"","year":"2005","id":"UNI/CT 123/MR","type":"org.horsa.it.model.Norma","version":"05","key":"org.horsa.it.model.Norma@UNI/CT 123/MR:05:2005"},"first":{"date":"","year":"2018","id":"UNI/CT 001/AB","type":"org.horsa.it.model.Norma","version":"01","key":"org.horsa.it.model.Norma@UNI/CT 001/AB:01:2018"}} Where is the List result of the transaction call ? Is the problem in the java chaincode or in the client side ?

Adryx86 (Fri, 25 Oct 2019 09:58:27 GMT):
Sorry i looked at the examples and i found the chaincode should return an array instead of a List. May i ask for the reason behind this requirment ? Thanks.. i want only to know how to write chaincode in a perfect way,

shrivastava.amit (Fri, 25 Oct 2019 13:23:34 GMT):
Guys, any thoughts on this problem? I am struggling with for past 3 weeks. Thanks in advance.

shrivastava.amit (Fri, 25 Oct 2019 13:23:34 GMT):
Guys, any thoughts on this problem? I am struggling with it for the past 3 weeks. Thanks in advance.

mbwhite (Fri, 25 Oct 2019 13:46:27 GMT):
Good - think we need to make sure that's front and center in the docs ;-)

mbwhite (Fri, 25 Oct 2019 13:47:03 GMT):
Can you explain in more detail please what the issue is?

mbwhite (Fri, 25 Oct 2019 13:48:22 GMT):
just read back and found the comments - I think the issue sounds more like the general config of the whole network - there's nothing in the chaincode or peer to remove containers.

shrivastava.amit (Fri, 25 Oct 2019 13:50:55 GMT):
Thanks for quick reply.

shrivastava.amit (Fri, 25 Oct 2019 13:51:07 GMT):
What details you need?

mbwhite (Fri, 25 Oct 2019 13:51:49 GMT):
actually I would recommend discussing this is the main fabric channel - it'll be related to how the docker swarm is handling containers rather than a specificiallychaincode

shrivastava.amit (Fri, 25 Oct 2019 13:52:48 GMT):
Sure

shrivastava.amit (Fri, 25 Oct 2019 13:53:05 GMT):
I will put the question in fabric channel

shrivastava.amit (Fri, 25 Oct 2019 13:53:37 GMT):
thanks for directions

mbwhite (Fri, 25 Oct 2019 13:58:52 GMT):
FYI https://github.com/jitpack/jitpack.io/issues/3973 is an issue that we're seeing quite a bit in the UK. Not sure how widespread this is or if it's load dependent.

bestbeforetoday (Fri, 25 Oct 2019 15:28:38 GMT):
Has joined the channel.

Shabana1717344 (Sun, 27 Oct 2019 07:09:41 GMT):
Has joined the channel.

Bolzo 1 (Mon, 28 Oct 2019 09:23:51 GMT):
Has joined the channel.

mbwhite (Mon, 28 Oct 2019 10:06:49 GMT):
General question to the channel - we've 'fabric-chaincode-dev' and 'fabric-java-chaincode' but three languages to write chaincode in.. nodejs, Java, Golang... nodejs and Java have the updated programming model, and golang on it's way... Do you think it would better to have 1 channel per language, or just one channel for all languages?

chill37 (Tue, 29 Oct 2019 00:43:45 GMT):
I think all languages are pretty different and would make it harder for us one-language-users hard to find past questions

Adryx86 (Tue, 29 Oct 2019 13:17:57 GMT):
I agree with @chill37.. i wrote chaincode in 3 different languages (Java, Node and Scala) and i'm planning a test of a fourth language (Kotlin).. I think the correct answer should be to create a general programming chaincode channel where a user can ask question related to development of chaincode, i mean not related to a specific language.. Than mantain the current channel for specific java chaincode questions..

mbwhite (Tue, 29 Oct 2019 13:19:53 GMT):
Thanks for the your feedback....

mbwhite (Tue, 29 Oct 2019 13:20:07 GMT):
@Adryx86 have you seen the Kotlin examples we have?

Adryx86 (Tue, 29 Oct 2019 13:21:44 GMT):
Last time i downloaded the samples didn't saw them.. Are them available right now ?

mbwhite (Tue, 29 Oct 2019 13:23:53 GMT):
https://github.com/hyperledger/fabric-chaincode-java/tree/master/fabric-chaincode-example-sacc-kotlin

mbwhite (Tue, 29 Oct 2019 13:24:13 GMT):
I'd like to refresh the examples in the main repo as I think it's bit hard to see what's there

Adryx86 (Tue, 29 Oct 2019 13:25:44 GMT):
Thanks.. if kotlin works as my expectation i probably will use it as my first preference on writing chaincode..

mbwhite (Tue, 29 Oct 2019 13:26:20 GMT):
:-) It should be workable with the Contract interface as well... I was sure Simon had pushed one of those to the repo.. but can I see it !

Adryx86 (Tue, 29 Oct 2019 13:26:21 GMT):
Maybe the scala sample could be interesting for you guys ?

Adryx86 (Tue, 29 Oct 2019 13:28:41 GMT):
basically i studied how the image of java-chaincode will be builded and i first tried to implement the changes to us SBT to make it working.. but i failed that way.. it was too hard.. So i solved building a jar using maven.. Let me know if i can contribute

mbwhite (Tue, 29 Oct 2019 13:36:03 GMT):
certainly would be good to see a Scala example.

Adryx86 (Tue, 29 Oct 2019 13:36:34 GMT):
@mbwhite it seems the link you give is a java chaincode sample (in spite of the name of the folder)

mbwhite (Tue, 29 Oct 2019 13:37:24 GMT):
oops sorry - it's kotlin for the gradle file...

mbwhite (Tue, 29 Oct 2019 13:37:59 GMT):
.. need to dig around... Hope my memory isn't failing me.. sure we had one

Adryx86 (Tue, 29 Oct 2019 13:38:05 GMT):
no probl.. ;)

mbwhite (Tue, 29 Oct 2019 13:39:48 GMT):
it's in the Yeoman generator that we use within the VSCode extension... you can run this outside vs code if you have Yeoman installed.

mbwhite (Tue, 29 Oct 2019 13:39:49 GMT):
https://github.com/IBM-Blockchain/generator-fabric

Adryx86 (Tue, 29 Oct 2019 13:41:14 GMT):
ok, i will start from that

Adryx86 (Tue, 29 Oct 2019 13:41:17 GMT):
thanks

chill37 (Tue, 29 Oct 2019 13:47:03 GMT):
If i may ask one or two as well =) 1. What is the use of the Contract annotation? I can see that it makes use in ContractImpl.java but can it be used within my chaincode for example? 2. this is just a thought...do u think using Spring Statemachine in chaincode would be a good idea to implement state changes in fabric? just a vague question. experimenting with things right now.

mbwhite (Tue, 29 Oct 2019 13:47:48 GMT):
Sure...

mbwhite (Tue, 29 Oct 2019 13:48:29 GMT):
The `@Contract` identifies the contract to the 'runtime' and also allows you to specify meta-information such as author version, repo etc.

mbwhite (Tue, 29 Oct 2019 13:49:00 GMT):
This information is available to clients, for example if you look at how the VSCode extension works, it pulls metadata from the contracts to show you functions are available etc.

mbwhite (Tue, 29 Oct 2019 13:50:03 GMT):
Spring Statemachine - not one I'd heard of but will take a look... we've planing on updating the stub api - and ideas welcome.

chill37 (Tue, 29 Oct 2019 13:52:48 GMT):
@mbwhite thanks! I knew about the vscode extension but havent checked it out yet. Will look into it for some reference about contract annotation.

chill37 (Tue, 29 Oct 2019 13:55:22 GMT):
As for state machine, i saw someone talking about using it in chaincode (in stackoverflow), and i thought it was an interesting approach for something like the commercial paper type of codes.

Adryx86 (Tue, 29 Oct 2019 13:55:32 GMT):
Hi to all.. i have a question related to retrieving data from external resource in chaincode.. Is it a good idea by an architectural point of view? For example i have a list of assets mantained from am international registry

Adryx86 (Tue, 29 Oct 2019 13:55:32 GMT):
Hi to all.. i have a question related to retrieving data from external resource in chaincode.. Is it a good idea by an architectural point of view? For example i have a list of assets mantained from a registry outside the network..

mbwhite (Tue, 29 Oct 2019 13:56:55 GMT):
I'd be nervous about do that,

mbwhite (Tue, 29 Oct 2019 13:56:55 GMT):
I'd be nervous about doing that, especially if it was in a transaction that needed to the signed by multiple peers.

mbwhite (Tue, 29 Oct 2019 13:57:57 GMT):
The challenge is (a) the time to get the external data and (b) would each chaincode running in different parts of the network get the same data?

Adryx86 (Tue, 29 Oct 2019 13:58:26 GMT):
you hit the point..

Adryx86 (Tue, 29 Oct 2019 13:59:59 GMT):
So i thought i should send to the transaction all the data i want to store..

Adryx86 (Tue, 29 Oct 2019 14:03:41 GMT):
That means i need to write an application that should retrieve data from external resources and than invoke the transaction.. Is that correct ?

Adryx86 (Tue, 29 Oct 2019 14:03:41 GMT):
That means i need to write an application that should retrieve data from external resources and than invoke the transaction.. Is that correct ? By an architectural point of you this layer will affect the security of the overall system.. isn't it?

mbwhite (Tue, 29 Oct 2019 15:05:21 GMT):
Wouldn't say the security would be adversely affected... Assuming there's a API key or similar to get the data then each instance of the chaincode that is running will need this.

mbwhite (Tue, 29 Oct 2019 15:06:24 GMT):
If the data is just been used say as part of a calculation and in and of itself doesn't need to be stored on chain it could be passed as transient data.

ikar (Wed, 30 Oct 2019 08:40:28 GMT):
Hey there! I got to the project that is based on BYFN sample, but limited to one organisation only. In my app when I call following code: ``` private Contract getContract(Gateway gw) { return gw.getNetwork("mychannel").getContract("realchain"); } ``` following error is produced: ``` 2019-10-30 09:34:51.433 INFO 23108 --- [nio-8080-exec-3] org.hyperledger.fabric.gateway.Gateway : Unable to load channel configuration from connection profile: org.hyperledger.fabric.sdk.exception.NetworkConfigurationException: Channel configuration has no channels defined. at org.hyperledger.fabric.sdk.NetworkConfig.loadChannel(NetworkConfig.java:519) ~[fabric-sdk-java-1.4.5-20190620.151745-1.jar:na] at org.hyperledger.fabric.sdk.HFClient.loadChannelFromConfig(HFClient.java:161) ~[fabric-sdk-java-1.4.5-20190620.151745-1.jar:na] at org.hyperledger.fabric.gateway.impl.GatewayImpl.getNetwork(GatewayImpl.java:258) ~[fabric-gateway-java-1.4.0-20191002.055106-31.jar:na] ... ``` ...the app recovers somehow itself, but I suspect this error to slow down the whole interaction with the ledger. Also I'd love to keep my logs clean from exceptions if possible ;) Anyone encountered and resolved the same error?

davidkel (Wed, 30 Oct 2019 09:06:56 GMT):
@ikar Think your question would be more appropriate on the #fabric-sdk-java channel

ikar (Wed, 30 Oct 2019 09:10:18 GMT):
thanks @davidkel ! will do

jaehyun (Thu, 31 Oct 2019 00:18:09 GMT):
According to https://fabric-shim.github.io/release-1.4/fabric-contract-api.Contract.html, we can use before or afterTransaction for logging, event publishing and permissions checks. I wonder that how to use event publishing and permissions checks. can anyone show some examples about that? Thank you :)

jaehyun (Thu, 31 Oct 2019 00:18:09 GMT):
According to https://fabric-shim.github.io/release-1.4/fabric-contract-api.Contract.html, we can use before or afterTransaction for logging, event publishing and permissions checks. I wonder that how to use event publishing and permissions checks. Can anyone show some examples about that? Thank you :

jaehyun (Thu, 31 Oct 2019 00:18:09 GMT):
According to https://fabric-shim.github.io/release-1.4/fabric-contract-api.Contract.html, we can use before or afterTransaction for logging, event publishing and permissions checks. I wonder that how to use event publishing and permissions checks. Can anyone show some examples about that? Thank you :D

mbwhite (Thu, 31 Oct 2019 15:27:40 GMT):
That's a good use of the after/beforeTransaction; will try and search out examles

Adryx86 (Tue, 05 Nov 2019 07:53:37 GMT):
Hi guys.. can someone of you tell me how to get the binaries (eg cryptogen) builded using the 1.4-release branch ? I searched for binaries of that version but i found on hl nexus only the versions 1.4.3 and 2.0.0-alpha.. I need the 1.4.4 version because it contains some fixes made after 1.4.3 version release..

Adryx86 (Tue, 05 Nov 2019 07:54:28 GMT):
I already asked the same question on different channels but nobody answered

heatherp (Tue, 05 Nov 2019 09:59:21 GMT):
@mbwhite can you get back to @Adryx86 please?

davidkel (Tue, 05 Nov 2019 12:56:22 GMT):
@Adryx86 hyperledger fabric 1.4.4 should be coming very soon ``` fabric v1.4.4 update - we plan to get last commits in this week, do some additional system testing, and then release v1.4.4 next week ``` If you really can't wait then you will have to download the source code yourself and compile the binaries. I'm guessing that information might be found somewhere from this link https://hyperledger-fabric.readthedocs.io/en/release-1.4/CONTRIBUTING.html#contribution-guide.

davidkel (Tue, 05 Nov 2019 12:56:22 GMT):
@Adryx86 hyperledger fabric 1.4.4 should be coming very soon ``` fabric v1.4.4 update - we plan to get last commits in this week, do some additional system testing, and then release v1.4.4 next week ``` If you really can't wait then you will have to download the source code yourself and compile the binaries. I'm guessing that information might be found somewhere from this link https://hyperledger-fabric.readthedocs.io/en/release-1.4/CONTRIBUTING.html#contribution-guide. However this wouldn't be the right channel to ask this question, this channel is for questions around the java chaincode API.

Adryx86 (Tue, 05 Nov 2019 13:22:41 GMT):
Thank you to everyone.. i'll wait for the update..

liujianglin1 (Mon, 11 Nov 2019 13:37:34 GMT):
Has joined the channel.

liujianglin1 (Mon, 11 Nov 2019 13:37:36 GMT):
i want to know why `QueryResultsIterator query = stub.getStateByRange("", ""); Iterator queryIterator = query.iterator();`can't return any key from chaincode,and i know there have keys in chaincode which can return by getStates.

liujianglin1 (Mon, 11 Nov 2019 13:37:36 GMT):
i want to know why `QueryResultsIterator query = stub.getStateByRange("", ""); Iterator queryIterator = query.iterator();`can't return any key from chaincode,and i know there have keys in chaincode which can return by getStates. complete function is `public Response findMyAssetTask(ChaincodeStub stub, List args) { StringBuffer buf=new StringBuffer("begin:"); QueryResultsIterator query = stub.getStateByRange("", ""); Iterator queryIterator = query.iterator(); while(queryIterator.hasNext()){ buf.append("key:"+queryIterator.next().getKey()+","); } if(!buf.equals(null)) return newSuccessResponse(buf.toString(), ByteString.copyFrom(buf.toString(), UTF_8).toByteArray()); else return newErrorResponse("no key exist"); }`

liujianglin1 (Mon, 11 Nov 2019 13:37:36 GMT):
i want to know why dose getStateByRange not work; it can't return any key from chaincode,and i know there have keys in chaincode which can return by getStates. complete function is `public Response findMyAssetTask(ChaincodeStub stub, List args) { StringBuffer buf=new StringBuffer("begin:"); QueryResultsIterator query = stub.getStateByRange("", ""); Iterator queryIterator = query.iterator(); while(queryIterator.hasNext()){ buf.append("key:"+queryIterator.next().getKey()+","); } if(!buf.equals(null)) return newSuccessResponse(buf.toString(), ByteString.copyFrom(buf.toString(), UTF_8).toByteArray()); else return newErrorResponse("no key exist"); }`

davidkel (Mon, 11 Nov 2019 14:17:32 GMT):
I've seen other people also mention that this doesn't work, but I had a look on jira and can't find the issue raised anywhere. I would suggest you raise a jira about it

liujianglin1 (Mon, 11 Nov 2019 14:55:29 GMT):
"getStateByRange" can work in my another function with almost seem codes,that make me very confused.i can show you that function tomorrow.

liujianglin1 (Tue, 12 Nov 2019 02:48:45 GMT):
This function seems to work. public Response findMyAssetMinResource(ChaincodeStub stub, List args) { String resourceType = args.get(0); Map map = new HashMap(); Map returnmap = new HashMap(); String lastnumber = new String("0"); List value = new ArrayList(); int n=0; String nextMinValue = "0"; String minValue = "0"; int number = Integer.parseInt(args.get(1)); Map judge = new HashMap(); while(number > 0){ nextMinValue = "0"; minValue = "0"; String[] str=new String[4]; QueryResultsIterator query = stub.getStateByRange("00000", "99999"); Iterator queryIterator = query.iterator(); while(queryIterator.hasNext()){ MyAsset asset = this.readMyAsset(stub, queryIterator.next().getKey()); if(judge.get(asset.getNodeID())=="true") { System.out.println(number); continue; } str = null; str = asset.getMinResource(resourceType); if(str != null){ if(minValue.equals("0") || Integer.parseInt(str[3]) < Integer.parseInt(minValue)){ nextMinValue=minValue; map.put(n+"", str); minValue=str[3]; }else if (nextMinValue.equals("0") || Integer.parseInt(str[3]) < Integer.parseInt(nextMinValue)){ nextMinValue = str[3]; } } } judge.put(map.get(n+"")[0], "true"); String str1[]=new String[4]; for(int i=0;i<4;i++) { str1[i]=map.get(n+"")[i]; } str1[2]=Integer.toString(Math.min(Integer.parseInt(str1[2]),number)); returnmap.put(n+"",str1); if( number >= Integer.parseInt(map.get(n+"")[2])) number = number - Integer.parseInt(map.get(n+"")[2]); else{ lastnumber = number + ""; number = 0; } n++; if(!nextMinValue.equals("0")) { value.add(nextMinValue); } else { value.add(minValue); } } if(map.isEmpty())return (newErrorResponse("Error")); else { for(int i =0;i

davidkel (Tue, 12 Nov 2019 08:13:00 GMT):
I have heard that this call ``` QueryResultsIterator query = stub.getStateByRange("", ""); ``` with 2 blank values doesn't work in Java chaincode

liujianglin1 (Tue, 12 Nov 2019 08:16:55 GMT):
i had try ("0",""),("0","9"),("","9"),but still didn't work

davidkel (Tue, 12 Nov 2019 08:22:33 GMT):
Maybe the java implementation doesn't handle blank strings in any field. Can't comment on the "0", "9" and why that doesn't work. All I can suggest is you raise a Jira with details about the problem and provide examples of code that defines the keys used.

davidkel (Tue, 12 Nov 2019 08:28:21 GMT):
jira.hyperledger.org and select fabric-chaincode-java as the component

liujianglin1 (Tue, 12 Nov 2019 08:49:16 GMT):
THX,I will check my code again,if I still find mistake,I will ask on jira

davidkel (Tue, 12 Nov 2019 08:59:00 GMT):
You could also try doing the same thing in node chaincode or GO chaincode to see if it works in those environments. That would help confirm if it is an issue in the java chaincode implementation

liujianglin1 (Tue, 12 Nov 2019 13:00:47 GMT):
it is my fault,the stub.getStateByRange("0", "9");can work

jaehyun (Wed, 13 Nov 2019 10:01:38 GMT):
Hi, can I Know about blockInfomation in the chaincode? (for example, stub.getBlockInfo() ) Thank U for any answer !:D

jyxie2007 (Mon, 18 Nov 2019 03:59:02 GMT):
Has joined the channel.

Bolzo 1 (Mon, 18 Nov 2019 15:37:33 GMT):
Already posted on #fabric-questions but I don't know if is a container issue or it's specific to the chaincode itself: After upgrading to 1.4.4 i receive the following error in my chaincode logs: transaction returned with failure: Failed to submit task for processing I'm sending transaction in a multithread envirorment, it's not supported anymore?

Bolzo 1 (Mon, 18 Nov 2019 15:37:33 GMT):
Already posted on #fabric-questions but I don't know if is a container issue or it's specific to the chaincode itself: After upgrading to 1.4.4 i receive the following error in my chaincode logs: `transaction returned with failure: Failed to submit task for processing` I'm sending transaction in a multithread envirorment, it's not supported anymore?

Bolzo 1 (Mon, 18 Nov 2019 15:37:33 GMT):
Already posted on #fabric-questions but I don't know if is a container issue or it's specific to the chaincode itself: After upgrading to 1.4.4 i receive the following error in my chaincode logs: `transaction returned with failure: Failed to submit task for processing` I'm sending transactions in a multithread envirorment, it's not supported anymore?

Bolzo 1 (Mon, 18 Nov 2019 15:37:33 GMT):
Already posted on #fabric-questions but I don't know if is a container issue or it's specific to the chaincode itself: After upgrading to 1.4.4 i receive the following error in my chaincode logs: `transaction returned with failure: Failed to submit task for processing` I'm sending transactions in a multithread envirorment, it's not supported anymore? @mbwhite

Bolzo 1 (Mon, 18 Nov 2019 16:21:27 GMT):
this is the log ``` Failed to submit task 59b660ce9c5bd315ad00ffbcdd09fc cccb55f0f31eed010203e4aca5de6f7795Task java.util.concurrent.CompletableFuture$AsyncRun@6377a680 rejected from org.hyperledger.fabric.shim.impl.Innvocation TaskExecutor@fafd38c[Running, pool size = 1, active threads = 1, queued tasks = 1, completed tasks = 51] java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.CompletableFuture$AsyncRun@6377a680 rejected from org.hyperledger.fabric.shim.i mpl.InnvocationTaskExecutor@fafd38c[Running, pool size = 1, active threads = 1, queued tasks = 1, completed tasks = 51] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) at java.util.concurrent.CompletableFuture.asyncRunStage(CompletableFuture.java:1640) at java.util.concurrent.CompletableFuture.runAsync(CompletableFuture.java:1858) at org.hyperledger.fabric.shim.impl.InnvocationTaskManager.newTask(InnvocationTaskManager.java:226) at org.hyperledger.fabric.shim.impl.InnvocationTaskManager.handleMsg(InnvocationTaskManager.java:172) at org.hyperledger.fabric.shim.impl.InnvocationTaskManager.onChaincodeMessage(InnvocationTaskManager.java:141) at org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$1.onNext(ChaincodeSupportClient.java:86) at org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$1.onNext(ChaincodeSupportClient.java:82) at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onMessage(ClientCalls.java:429) at io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33) at io.grpc.ForwardingClientCallListener.onMessage(ForwardingClientCallListener.java:33) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInternal(ClientCallImpl.java:599) at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:584) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) ```

Bolzo 1 (Mon, 18 Nov 2019 16:32:12 GMT):
if i return to the chaincode version 1.4.3 i cannot instantiate the chaincode :``` failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher .go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed```

Bolzo 1 (Mon, 18 Nov 2019 16:36:07 GMT):
I've attached the chaincode container logs and it seems that there is some problem with `org.reflections.Reflections`

Bolzo 1 (Mon, 18 Nov 2019 16:36:07 GMT):
I've attached the chaincode container logs and it seems that there is some problem with `org.reflections.Reflections` (chaincode 1.4.3)

mbwhite (Tue, 19 Nov 2019 09:16:58 GMT):
@Bolzo 1 ... sorry to hear of the issue... can investigate this.

mbwhite (Tue, 19 Nov 2019 09:17:56 GMT):
Can you give me some more information on the client sending in txs?

tschulshuh (Tue, 19 Nov 2019 09:19:40 GMT):
Has joined the channel.

tschulshuh (Tue, 19 Nov 2019 09:19:41 GMT):
I got a similar error, when instantiating chaincode on v1.4.2 and v1.4.3, even on a generated vscode chaincode projekt.

tschulshuh (Tue, 19 Nov 2019 09:19:47 GMT):

Clipboard - November 19, 2019 10:19 AM

mbwhite (Tue, 19 Nov 2019 09:20:08 GMT):
yes- that we believe is a problem that is fixed in 1.4.4

mbwhite (Tue, 19 Nov 2019 09:20:08 GMT):
yes- that we believe is a problem that is fixed in 1.4.4 (https://jira.hyperledger.org/browse/FAB-16217?jql=project%20%3D%20FAB%20AND%20component%20%3D%20fabric-chaincode-java)

Bolzo 1 (Tue, 19 Nov 2019 09:20:40 GMT):
Sure, I'm using the java SDK (not gateway) version 1.4.5. Basically I create n threads (each one using a separate HFClient) and send transaction to multiple endorsing peer (random_selection)

tschulshuh (Tue, 19 Nov 2019 09:20:56 GMT):
strange, it started to occur yesterday. Code was fine on friday

Bolzo 1 (Tue, 19 Nov 2019 09:21:05 GMT):
Same

mbwhite (Tue, 19 Nov 2019 09:21:45 GMT):
Yes, we saw that yesterday and was able to reproduce it, tried 1.4.4 and it was resolved

mbwhite (Tue, 19 Nov 2019 09:22:48 GMT):
ok, and is the chaincode using the contract interface or extending chaincode base?

Bolzo 1 (Tue, 19 Nov 2019 09:22:59 GMT):
using the contract interface

tschulshuh (Tue, 19 Nov 2019 09:23:35 GMT):
same for me

tschulshuh (Tue, 19 Nov 2019 09:24:24 GMT):
strange, its working for me with 1.4.4 aswell now

tschulshuh (Tue, 19 Nov 2019 09:24:39 GMT):
@Bolzo 1 u tried 1.4. for your issue ?

Bolzo 1 (Tue, 19 Nov 2019 09:25:30 GMT):
1.4.4? yes, the contract is kinda working execept sometimes when it returns failuire about task submission

tschulshuh (Tue, 19 Nov 2019 09:25:48 GMT):
*1.4.4

mbwhite (Tue, 19 Nov 2019 09:26:08 GMT):
On the threading problem I'll need to investigate a bit more.. The thing that's new inside 1.4.4 is a pool of threads per transaction execution.

mbwhite (Tue, 19 Nov 2019 09:26:52 GMT):
Previously a thread was created for ever transaction, and if you really pushed the chaincode the JVM spent so much time thread switching.. you ended up with tx failures

Bolzo 1 (Tue, 19 Nov 2019 09:26:53 GMT):
As I see from the logs (posted in this discussion) the pool is composed by one thread, right?

mbwhite (Tue, 19 Nov 2019 09:27:19 GMT):
One thing to check... but you can configure it

mbwhite (Tue, 19 Nov 2019 09:27:27 GMT):
``` TP_CORE_POOL_SIZE=5 TP_MAX_POOL_SIZE=5 TP_QUEUE_SIZE=5000 ```

Bolzo 1 (Tue, 19 Nov 2019 09:27:27 GMT):
Oh yes?

Bolzo 1 (Tue, 19 Nov 2019 09:27:45 GMT):
in the core.yalm or docker-compose I suppose

mbwhite (Tue, 19 Nov 2019 09:27:50 GMT):
Put that into a config.props file within the chaincode package.

Bolzo 1 (Tue, 19 Nov 2019 09:28:34 GMT):
I have no config.props, is there any procedure to follow in order to generate it?

mbwhite (Tue, 19 Nov 2019 09:28:52 GMT):
so for example.. if the contract is in `src/main/java/MyContract.java` put this in `src/main/resources/config.props`

mbwhite (Tue, 19 Nov 2019 09:28:56 GMT):
it's a plain text file.

mbwhite (Tue, 19 Nov 2019 09:29:12 GMT):
standard Java properties format

Bolzo 1 (Tue, 19 Nov 2019 09:29:25 GMT):
Ok, I'll try it now

Bolzo 1 (Tue, 19 Nov 2019 09:29:28 GMT):
thanks

mbwhite (Tue, 19 Nov 2019 09:30:00 GMT):
```CHAINCODE_METRICS_ENABLED=true```

mbwhite (Tue, 19 Nov 2019 09:30:21 GMT):
if you add that to the file as well - you should get some metrics coming out in the chaincode log as well..

Bolzo 1 (Tue, 19 Nov 2019 09:30:33 GMT):
nice, thanks

mbwhite (Tue, 19 Nov 2019 09:31:46 GMT):
Let me know if it works - as I've just checked what the default values are... I thought they had been set to those in the file above... but don't think that they have.

tschulshuh (Tue, 19 Nov 2019 09:32:08 GMT):
thanks @mbwhite, sorry fot the troubles

mbwhite (Tue, 19 Nov 2019 09:32:57 GMT):
no problem.. sorry that you've had problems :-)

mbwhite (Tue, 19 Nov 2019 09:36:50 GMT):
just an FYI... this has caught me out many times - if you update your contract code - Fabric may reuse the already built docker image - if you give it the same name. This can be very confusing! Remember to check to `dev..` docker images (`docker images`) and remove them. It's also well wort in dev running a monitoring script to capture the docker output when the chaincode container is being built. This container doesn't last very long but often the output there will point in the correct direction

mbwhite (Tue, 19 Nov 2019 09:42:46 GMT):
Have raised https://jira.hyperledger.org/browse/FAB-17110

mbwhite (Tue, 19 Nov 2019 09:46:37 GMT):
Docs reference for the above file.. https://hyperledger.github.io/fabric-chaincode-java/release-1.4/api/org/hyperledger/fabric/metrics/package-summary.html

Bolzo 1 (Tue, 19 Nov 2019 09:50:33 GMT):
No result, maybe I'm doing something wrong... I've included the resource folder in my maven build configuration. I can istantiate the chaincode but the errror persists

mbwhite (Tue, 19 Nov 2019 09:51:28 GMT):
can you see if the values are output in the chaincode log?

Bolzo 1 (Tue, 19 Nov 2019 09:51:34 GMT):
the pool size is 1, so the confing.props is not used

mbwhite (Tue, 19 Nov 2019 09:52:16 GMT):
might be worth just double checking the file has main it it into the chaincode.jar

Bolzo 1 (Tue, 19 Nov 2019 09:53:12 GMT):
I'm sure, I not doing the thing correctly. As soon as i can configure it correctly I'll came back to you, thanks

Bolzo 1 (Tue, 19 Nov 2019 09:53:12 GMT):
I'm sure, I'm not doing the thing correctly. As soon as i can configure it correctly I'll came back to you, thanks

mbwhite (Tue, 19 Nov 2019 09:53:24 GMT):
np -)

Bolzo 1 (Tue, 19 Nov 2019 11:06:33 GMT):
when i run maven install on my local machine the config.props is in the root of the chaincode.jar is that correct?

mbwhite (Tue, 19 Nov 2019 11:06:46 GMT):
correct

mbwhite (Tue, 19 Nov 2019 11:07:42 GMT):
need to present for a few minutes so will drop off line.

Bolzo 1 (Tue, 19 Nov 2019 11:08:33 GMT):
then I transfer the project onto the remote machine precisely I transfer, the src folder, resource folder and pom. Then, I run peer chaincode install in each endorsing peer and i proceed to istantiate the chaincode.

Bolzo 1 (Tue, 19 Nov 2019 11:17:17 GMT):
The error is the same, the pool is composed by one thread

Bolzo 1 (Tue, 19 Nov 2019 11:27:28 GMT):
The ```config.props``` is not being loaded

mbwhite (Tue, 19 Nov 2019 11:43:23 GMT):
Merged a PR for updating the defaults https://github.com/hyperledger/fabric-chaincode-java/pull/42

Bolzo 1 (Tue, 19 Nov 2019 12:02:53 GMT):
Thanks!

Bolzo 1 (Tue, 19 Nov 2019 12:02:53 GMT):
Thanks! When will be available on nexus.hyperledger.org?

mbwhite (Tue, 19 Nov 2019 12:07:08 GMT):
It's fully moved over to github now so nexus isn't being used. At present the JARs etc are added to the build result (https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_build/results?buildId=2187&view=results) we'd like to get snapshots pushed to the github registry.

Bolzo 1 (Tue, 19 Nov 2019 14:40:16 GMT):
a

Bolzo 1 (Tue, 19 Nov 2019 14:41:10 GMT):
@mbwhite I'm sorry to bother you but apparently I cannot reply in a thread... I have an update: I was looking at the wrong chaincode.jar, now after further inspection in the chaincode container i can see that there is no config.props in the jar generate after the instantiation

Bolzo 1 (Tue, 19 Nov 2019 14:41:10 GMT):
@mbwhite I'm sorry to bother you but apparently I cannot reply in a thread... I have an update: I was looking at the wrong chaincode.jar, now after further inspection in the chaincode container i can see that there is no config.props in the jar generate after the instantiation even though, on my local machine, if I run maven install the chaincode.jar generated contains the config.props file

tschulshuh (Tue, 19 Nov 2019 15:01:24 GMT):
For some strange reason i will get "Undefined Contract method called" while Instantiating, tough im sure the contract logic is on the peer. Ive tried to clear docker images and network.

mbwhite (Tue, 19 Nov 2019 15:36:05 GMT):
That sounds like how the code is being installed on the peer might not be including the correct files... can you outline how you're doing that part pleasE?

mbwhite (Tue, 19 Nov 2019 15:36:44 GMT):
What arguments are you giving for the instantiation

Bolzo 1 (Tue, 19 Nov 2019 15:41:10 GMT):
Of course, at the moment I simply transfer the `pom.xml` , `src` folder containing my chaincode an in it there is the `resources` folder which contains the `config.props`. These files are transfered to a remote machine wich host two peers and orderer (I have other 2 machine like this, so i replicate the steps). The files are placed in a folder which is synchronized with the peer container and using the cli I launch the usual commands in order to install and instantiate the chaincode

Bolzo 1 (Tue, 19 Nov 2019 15:41:10 GMT):
Of course, at the moment I simply transfer the `pom.xml` , `src` folder containing my chaincode an in it there is the `resources` folder which contains the `config.props`. These files are transfered to a remote machine wich hosts two peers and orderer (I have other 2 machine like this, so i replicate the steps). The files are placed in a folder which is synchronized with the peer container and using the cli, I launch the usual commands in order to install and instantiate the chaincode

Bolzo 1 (Tue, 19 Nov 2019 15:41:10 GMT):
Of course, at the moment I simply transfer the `pom.xml` , `src` folder containing my chaincode an in it there is the `resources` folder which contains the `config.props`. These files are transfered to a remote machine which hosts two peers and orderer (I have other 2 machine like this, so i replicate the steps). The files are placed in a folder which is synchronized with the peer container and using the cli, I launch the usual commands in order to install and instantiate the chaincode

mbwhite (Tue, 19 Nov 2019 15:44:27 GMT):
I've not done it quite like that.. .. but can't think they that wouldn't have the file in... Unless I'm using vscode I'll use the fabric-tools docker cli container.

tschulshuh (Tue, 19 Nov 2019 15:46:49 GMT):
Usually i was instantiating directly with a "createAsset" function, i got 2 Asset Types and 2 different Contracts which im both instantiating trough script. Strangely the first asset works fine but the second wont find any method

mbwhite (Tue, 19 Nov 2019 15:47:30 GMT):
Do you have one contract marked as the default one?

tschulshuh (Tue, 19 Nov 2019 15:50:03 GMT):
Had both marked as default, tested with one, still doesnt work

mbwhite (Tue, 19 Nov 2019 15:52:26 GMT):
when you reference the once that wasn't default did you fully qualify the name of the transaction function?

tschulshuh (Tue, 19 Nov 2019 15:54:08 GMT):
peer chaincode instantiate -o orderer.network.com:7050 --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/network.com/orderers/orderer.network.com/msp/tlscacerts/tlsca.network.com-cert.pem -C networkchannel -n part009 -l java -v 1.0 -c '{"Args":["createPart", "1001","14","nail","76", "11","5000", "inprod", "123"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer','Org4MSP.peer','Org5MSP.peer','Org6MSP.peer')"

mbwhite (Tue, 19 Nov 2019 15:54:41 GMT):
so that would be looking for the createPart in the default contract

Bolzo 1 (Tue, 19 Nov 2019 15:54:55 GMT):
The strange thing is that in my local jar the config is included but not in the jar on the chaincode container... Maybe maven issue?

tschulshuh (Tue, 19 Nov 2019 15:55:36 GMT):
ok ok, that sound wrong :sweat_smile:

tschulshuh (Tue, 19 Nov 2019 15:57:47 GMT):
how do i reference a specific contract ?

tschulshuh (Tue, 19 Nov 2019 15:58:16 GMT):
tough this would already be done with the -n tag

mbwhite (Tue, 19 Nov 2019 15:58:23 GMT):
as an example.. if you look at https://github.com/hyperledgendary/hackathon-starter/blob/master/basic-contract/java-contract/src/main/java/org/example/MyAssetContract.java There's a name in the contract annotation that can be used to identify the methods in the contract.

mbwhite (Tue, 19 Nov 2019 15:58:52 GMT):
so in that case `MyAssetContract:createMyAsset`

mbwhite (Tue, 19 Nov 2019 15:59:05 GMT):
though as it's the default it wouldn't be strictly be needed

mbwhite (Tue, 19 Nov 2019 15:59:28 GMT):
if you create another class that's how you would refer to it.

mbwhite (Tue, 19 Nov 2019 15:59:51 GMT):
the -n though is abit different - that's referrring to the chaincode container - the docker image that is running the your contracts

tschulshuh (Tue, 19 Nov 2019 16:01:08 GMT):
Ok got it, so for the non-default contract i would go with --> {"Args":["PartContract:initPart"]}

tschulshuh (Tue, 19 Nov 2019 16:01:24 GMT):
? or {"PartContract":["initPart"]}

mbwhite (Tue, 19 Nov 2019 16:02:12 GMT):
first

tschulshuh (Tue, 19 Nov 2019 16:09:50 GMT):
Seems to work, thanks again for saving my day ! :)

mbwhite (Tue, 19 Nov 2019 16:10:08 GMT):
:-)

mbwhite (Tue, 19 Nov 2019 16:10:17 GMT):
Do you know about the metadata that the contract produces?

mbwhite (Tue, 19 Nov 2019 16:10:33 GMT):
this will give you the full names that could be useful

mbwhite (Tue, 19 Nov 2019 16:11:56 GMT):
```peer chaincode query -o orderer.example.com:7050 --channelID mychannel --name pc_0 -c '{"Args":["org.hyperledger.fabric:GetMetadata"]}' --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA | jq```

mbwhite (Tue, 19 Nov 2019 16:12:09 GMT):
with adjustments to the channel name, etc..

tschulshuh (Tue, 19 Nov 2019 16:13:03 GMT):
Nice, great to know. Must have overread this in the docs ^

Bolzo 1 (Wed, 20 Nov 2019 09:13:33 GMT):
Resolved. In order to include the resource, the `IncludeResourceTrasformer` of the `maven-shade-plugin` is needed. Include the resource using the usual `` in `` in the `pom.xml`. Here's an example: ``` org.apache.maven.plugins maven-shade-plugin ${maven-source-plugin.version} package shade chaincode org.hyperledger.fabric.contract.ContractRouter config.props [PATH TO]\config.props *:* META-INF/*.SF META-INF/*.DSA META-INF/*.RSA ```

mbwhite (Wed, 20 Nov 2019 09:16:40 GMT):
ah! thank you for the update!

mbwhite (Wed, 20 Nov 2019 09:16:55 GMT):
don't suppose you'd like to make a PR on the samples to update it :-)

Bolzo 1 (Wed, 20 Nov 2019 09:17:56 GMT):
Sure! Today or tomorrow I'll open a PR

mbwhite (Wed, 20 Nov 2019 09:18:15 GMT):
:-) thanks.. let me know if you need any help

mbwhite (Wed, 20 Nov 2019 09:18:19 GMT):
process wise

Bolzo 1 (Wed, 20 Nov 2019 09:19:37 GMT):
Actually yes, I can open a PR like usual or there is a different process for Fabric?

Bolzo 1 (Wed, 20 Nov 2019 09:19:37 GMT):
Actually yes, Can I open a PR as usual or there is a different process for Fabric?

mbwhite (Wed, 20 Nov 2019 09:19:59 GMT):
just a PR from your own fork... standard github process.

Bolzo 1 (Wed, 20 Nov 2019 09:20:09 GMT):
Ok, thanks!

Bolzo 1 (Wed, 20 Nov 2019 09:47:51 GMT):
@mbwhite The thread pool size is fixed to 5 by default, is there some guideline about the maximum pool size?

mbwhite (Wed, 20 Nov 2019 09:50:53 GMT):
we need to do some performance work to find out more; those figures so far have seemed resonable and using Caliper gave matching performance with the node.js implementation. Partly it will also come down to the machine that is running the JVM... how many cores... etc. See this for more info https://jobs.zalando.com/tech/blog/how-to-set-an-ideal-thread-pool-size/?gh_src=4n3gxh1

Bolzo 1 (Wed, 20 Nov 2019 09:54:16 GMT):
Thanks a lot. About performance, i can see that the memory limit for the chaincode container is 2GB, is this value esay to configure?

mbwhite (Wed, 20 Nov 2019 09:56:35 GMT):
where are you seeing that 2GB limit.. the docker-image itself is not limited, nor the VM

Bolzo 1 (Wed, 20 Nov 2019 09:57:01 GMT):
i ran docker stat on a chaincode container

mbwhite (Wed, 20 Nov 2019 09:57:16 GMT):
ah... will look into that :-)

Bolzo 1 (Wed, 20 Nov 2019 09:57:34 GMT):
the peer containter has the limit set to the RAM available on the host machine

Bolzo 1 (Wed, 20 Nov 2019 09:57:34 GMT):
the other containters have the limit set to the RAM available on the host machine

SatheeshNehru (Sun, 24 Nov 2019 03:53:33 GMT):
Is there any sdk to replace configtxgen configtxlator and docker operation?will be glad if sample code is shared?

yeousunn (Mon, 25 Nov 2019 01:25:26 GMT):
Hi, I am having issue instantiating chaincode since last few days. I am getting this error ``` 2019-11-25 01:15:23.499 UTC [endorser] SimulateProposal -> ERRO 080 [mychannel][c64c7e03] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1337 chaincode registration failed ``` after adding `CORE_VM_DOCKER_ATTACHSTDOUT=true` I can see error message for JSON. ``` 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 399 Exception in thread "main" org.everit.json.schema.SchemaException: A JSONObject text must begin with '{' at 1 [character 2 line 1] 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39a at org.everit.json.schema.loader.JsonPointerEvaluator.executeWith(JsonPointerEvaluator.java:91) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39b at org.everit.json.schema.loader.JsonPointerEvaluator.lambda$forURL$1(JsonPointerEvaluator.java:121) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39c at org.everit.json.schema.loader.JsonPointerEvaluator.query(JsonPointerEvaluator.java:151) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39d at org.everit.json.schema.loader.ReferenceLookup.lookup(ReferenceLookup.java:173) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39e at org.everit.json.schema.loader.ReferenceSchemaExtractor.extract(SchemaExtractor.java:193) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39f at org.everit.json.schema.loader.AbstractSchemaExtractor.extract(SchemaExtractor.java:113) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a0 at org.everit.json.schema.loader.SchemaLoader.runSchemaExtractors(SchemaLoader.java:383) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a1 at org.everit.json.schema.loader.SchemaLoader.loadSchemaObject(SchemaLoader.java:360) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a2 at org.everit.json.schema.loader.JsonValue$Multiplexer.requireAny(JsonValue.java:46) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a3 at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:434) 2019-11-25 01:00:26.013 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a4 at org.everit.json.schema.loader.SchemaLoader.loadChild(SchemaLoader.java:438) ``` it used to work before. Any idea what is happening here? I am facing same issue on version 1.4.4 and 1.4.3

yeousunn (Mon, 25 Nov 2019 01:25:26 GMT):
Hi, I am having issue instantiating java chaincode since last few days. I am getting this error ``` 2019-11-25 01:15:23.499 UTC [endorser] SimulateProposal -> ERRO 080 [mychannel][c64c7e03] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1337 chaincode registration failed ``` after adding `CORE_VM_DOCKER_ATTACHSTDOUT=true` I can see error message for JSON. ``` 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 399 Exception in thread "main" org.everit.json.schema.SchemaException: A JSONObject text must begin with '{' at 1 [character 2 line 1] 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39a at org.everit.json.schema.loader.JsonPointerEvaluator.executeWith(JsonPointerEvaluator.java:91) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39b at org.everit.json.schema.loader.JsonPointerEvaluator.lambda$forURL$1(JsonPointerEvaluator.java:121) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39c at org.everit.json.schema.loader.JsonPointerEvaluator.query(JsonPointerEvaluator.java:151) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39d at org.everit.json.schema.loader.ReferenceLookup.lookup(ReferenceLookup.java:173) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39e at org.everit.json.schema.loader.ReferenceSchemaExtractor.extract(SchemaExtractor.java:193) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 39f at org.everit.json.schema.loader.AbstractSchemaExtractor.extract(SchemaExtractor.java:113) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a0 at org.everit.json.schema.loader.SchemaLoader.runSchemaExtractors(SchemaLoader.java:383) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a1 at org.everit.json.schema.loader.SchemaLoader.loadSchemaObject(SchemaLoader.java:360) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a2 at org.everit.json.schema.loader.JsonValue$Multiplexer.requireAny(JsonValue.java:46) 2019-11-25 01:00:26.012 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a3 at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:434) 2019-11-25 01:00:26.013 UTC [peer.chaincode.dev-peer0.org1.example.com-copyrightinfo-1.0] func2 -> INFO 3a4 at org.everit.json.schema.loader.SchemaLoader.loadChild(SchemaLoader.java:438) ``` it used to work before. Any idea what is happening here? I am facing same issue on version 1.4.4 and 1.4.3

yeousunn (Mon, 25 Nov 2019 03:32:28 GMT):
upon using IBM Blockchain Extension on VS Code and creating new chaincode using java have the same issue.

davidkel (Mon, 25 Nov 2019 07:55:49 GMT):
see https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/1658

yeousunn (Tue, 26 Nov 2019 01:04:37 GMT):
@davidkel thank you. This solved the issue.

mahoney1 (Thu, 28 Nov 2019 11:58:52 GMT):
reminder that the Fabric Application Developer Community call today is at 4pm UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Fabric+Application+Developer+Community+Call

bubogunz (Thu, 28 Nov 2019 15:52:19 GMT):
Has joined the channel.

icordoba (Sun, 01 Dec 2019 22:18:24 GMT):
Hello, I am adding unit tests to my java chaincode with code like "when(stub.getState(reference)).thenReturn(objectMapper.writeValueAsString(object).getBytes(UTF_8));" but how can I add a result for "when(stub.getStateByRange("", "")).thenReturn(...)"? (I mean, how can I specify there a QueryResultsIterator object?

mbwhite (Wed, 04 Dec 2019 10:08:33 GMT):
Within the Java Chaincode Repo - there's 8 examples; at the top level... I'd like to move these to a subdirectory - so the repo is overall a lot clearer. And also make sure there are samples for using the Contract API - that don't appear to be in the master branch. Any concerns with this approach please shout.

icordoba (Wed, 04 Dec 2019 13:57:34 GMT):
Thanks mbwhite. Solved it thanks to those examples... now a different issue:

icordoba (Wed, 04 Dec 2019 13:57:34 GMT):
Thanks @mbwhite . Solved it thanks to those examples... now a different issue:

icordoba (Wed, 04 Dec 2019 13:57:55 GMT):
I am trying to get all entries in the ledger (Fabric 1.4.4, using Java Chaincode): QueryResultsIterator iterator = ctx.getStub().getStateByRange("",""); But I always get an empty iterator. Is this the correct way to get all entries?

bubogunz (Thu, 05 Dec 2019 11:04:29 GMT):
Hi everyone! I somehow manage to set up my custom, yet basic network involving a peer, an orderer and a CLI. A channel named "smartcontract" has been created succesfully. Now I need to instantiate a super basic chaincode who puts a stupid JSON to the channel's ledger. The installation procedure goes well, but at the instantiation moment che CLI bash freezes. Any suggestion?

bubogunz (Thu, 05 Dec 2019 11:07:20 GMT):
P.S. Has someone a COMPLETE developer guide on how to succesfully develop java chaincode? I found the Fabric documentation quite lacking on that side

icordoba (Thu, 05 Dec 2019 13:13:36 GMT):
@bubogunz I recommend you install Visual Studio Code and follow the tutorial part of the Hyperledger Plugin for VSC by IBM. That is how I got everything tested and running

bubogunz (Thu, 05 Dec 2019 13:32:27 GMT):
@icordoba thanks! I'll let you know if it works the same for me :')

jaehyun (Fri, 06 Dec 2019 02:23:34 GMT):
hello! I am trying to use v1.4.4, but there are error logs below

jaehyun (Fri, 06 Dec 2019 02:23:34 GMT):
hello! I am trying to use v1.4.4, but there are error logs below

jaehyun (Fri, 06 Dec 2019 02:23:34 GMT):
hello! I am trying to use v1.4.4, but it doesn't work. chaincode command is 1) peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"Args":["initLedger"]}' and then 2) peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCarsByRangeWithPageTest", "CAR001", "CAR009", "3", ""]}' and I found some logs below ------------------------------------------------------ 01:54:39:073 INFO org.hyperledger.fabric.shim.impl.ChaincodeInnvocationTask invoke Sending message to the peer CAR009 01:54:39:073 FINE org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$2 accept > sendToPeer CAR009 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager onChaincodeMessage [CAR009 ] { "type": "ERROR", "payload": "R0VUX1NUQVRFX0JZX1JBTkdFIGZhaWxlZDogdHJhbnNhY3Rpb24gSUQ6IENBUjAwOTogbm8gbGVkZ2VyIGNvbnRleHQ=", "txid": "CAR009", "channelId": "CAR001" } 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager handleMsg [CAR009 ] Received ERROR 01:54:39:083 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager sendToTask > sendToTask CAR009 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$2 accept < sendToPeer CAR009 ----------------------------------------------------------------------

jaehyun (Fri, 06 Dec 2019 02:23:34 GMT):
hello! I am trying to use v1.4.4, but it doesn't work. chaincode command is 1) peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"Args":["initLedger"]}' and then 2) peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCarsByRangeWithPageTest", "CAR001", "CAR009", "3", ""]}' and I found some logs below ------------------------------------------------------ 01:54:39:073 INFO org.hyperledger.fabric.shim.impl.ChaincodeInnvocationTask invoke Sending message to the peer CAR009 01:54:39:073 FINE org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$2 accept > sendToPeer CAR009 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager onChaincodeMessage [CAR009 ] { "type": "ERROR", "payload": "R0VUX1NUQVRFX0JZX1JBTkdFIGZhaWxlZDogdHJhbnNhY3Rpb24gSUQ6IENBUjAwOTogbm8gbGVkZ2VyIGNvbnRleHQ=", "txid": "CAR009", "channelId": "CAR001" } 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager handleMsg [CAR009 ] Received ERROR 01:54:39:083 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager sendToTask > sendToTask CAR009 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$2 accept < sendToPeer CAR009 ---------------------------------------------------------------------- So I track to org.hyperledger.fabric.shim.impl.InnvocationStubImpl and comparing to two methods.. ---------------------------------------------------------------------- private QueryResultsIteratorWithMetadataImpl executeGetStateByRangeWithMetadata(String collection, String startKey, String endKey, ByteString metadata) { ByteString payload = GetStateByRange.newBuilder().setCollection(collection).setStartKey(startKey) .setEndKey(endKey).setMetadata(metadata).build().toByteString(); ChaincodeMessage requestMessage = ChaincodeMessageFactory.newEventMessage(GET_STATE_BY_RANGE, startKey, endKey, payload); ByteString response = this.handler.invoke(requestMessage); return new QueryResultsIteratorWithMetadataImpl<>(this.handler, getChannelId(), getTxId(), response, queryResultBytesToKv.andThen(KeyValueImpl::new)); } private QueryResultsIterator executeGetStateByRange(String collection, String startKey, String endKey) { ByteString requestPayload = GetStateByRange.newBuilder().setCollection(collection).setStartKey(startKey) .setEndKey(endKey).build().toByteString(); ChaincodeMessage requestMessage = ChaincodeMessageFactory.newEventMessage(GET_STATE_BY_RANGE, channelId, txId, requestPayload); ByteString response = handler.invoke(requestMessage); return new QueryResultsIteratorImpl(this.handler, channelId, txId, response, queryResultBytesToKv.andThen(KeyValueImpl::new)); } ------------------------------------------------------------- ChaincodeMessageFactory.newEventMessage 's input parameter are different each other. Thank You and Merry Christmas!

jaehyun (Fri, 06 Dec 2019 02:23:34 GMT):
hello! I am trying to use core v1.4.4, but it doesn't work. chaincode command is 1) peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"Args":["initLedger"]}' and then 2) peer chaincode query -C mychannel -n fabcar -c '{"Args":["queryAllCarsByRangeWithPageTest", "CAR001", "CAR009", "3", ""]}' and I found some logs below ------------------------------------------------------ 01:54:39:073 INFO org.hyperledger.fabric.shim.impl.ChaincodeInnvocationTask invoke Sending message to the peer CAR009 01:54:39:073 FINE org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$2 accept > sendToPeer CAR009 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager onChaincodeMessage [CAR009 ] { "type": "ERROR", "payload": "R0VUX1NUQVRFX0JZX1JBTkdFIGZhaWxlZDogdHJhbnNhY3Rpb24gSUQ6IENBUjAwOTogbm8gbGVkZ2VyIGNvbnRleHQ=", "txid": "CAR009", "channelId": "CAR001" } 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager handleMsg [CAR009 ] Received ERROR 01:54:39:083 FINE org.hyperledger.fabric.shim.impl.InnvocationTaskManager sendToTask > sendToTask CAR009 01:54:39:082 FINE org.hyperledger.fabric.shim.impl.ChaincodeSupportClient$2 accept < sendToPeer CAR009 ---------------------------------------------------------------------- So I track to org.hyperledger.fabric.shim.impl.InnvocationStubImpl and comparing to two methods.. ---------------------------------------------------------------------- private QueryResultsIteratorWithMetadataImpl executeGetStateByRangeWithMetadata(String collection, String startKey, String endKey, ByteString metadata) { ByteString payload = GetStateByRange.newBuilder().setCollection(collection).setStartKey(startKey) .setEndKey(endKey).setMetadata(metadata).build().toByteString(); ChaincodeMessage requestMessage = ChaincodeMessageFactory.newEventMessage(GET_STATE_BY_RANGE, startKey, endKey, payload); ByteString response = this.handler.invoke(requestMessage); return new QueryResultsIteratorWithMetadataImpl<>(this.handler, getChannelId(), getTxId(), response, queryResultBytesToKv.andThen(KeyValueImpl::new)); } private QueryResultsIterator executeGetStateByRange(String collection, String startKey, String endKey) { ByteString requestPayload = GetStateByRange.newBuilder().setCollection(collection).setStartKey(startKey) .setEndKey(endKey).build().toByteString(); ChaincodeMessage requestMessage = ChaincodeMessageFactory.newEventMessage(GET_STATE_BY_RANGE, channelId, txId, requestPayload); ByteString response = handler.invoke(requestMessage); return new QueryResultsIteratorImpl(this.handler, channelId, txId, response, queryResultBytesToKv.andThen(KeyValueImpl::new)); } ------------------------------------------------------------- ChaincodeMessageFactory.newEventMessage 's input parameter are different each other. Thank You and Merry Christmas!

jaehyun (Fri, 06 Dec 2019 02:24:22 GMT):

Clipboard - December 6, 2019 11:24 AM

mbwhite (Tue, 10 Dec 2019 12:35:16 GMT):
Hello - thanks for reporting this.. I'll check into it and get back!

mbwhite (Tue, 10 Dec 2019 12:38:29 GMT):
ah yes.. I see what you mean :-)

billd100 (Wed, 11 Dec 2019 14:55:47 GMT):
Has joined the channel.

mahoney1 (Thu, 12 Dec 2019 10:07:55 GMT):
reminder that the Fabric Application Developer Community call today is at 4pm UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Meeting+Agendas:+Fabric+Application+Developer+Community+Call

mbwhite (Thu, 12 Dec 2019 15:25:13 GMT):
^ I'll be talking about the Ledger API RFC

JohnRuben (Sat, 21 Dec 2019 17:46:27 GMT):
Has joined the channel.

JohnRuben (Sat, 21 Dec 2019 17:46:28 GMT):
tutorial

rahulsingh79 (Wed, 25 Dec 2019 06:37:55 GMT):
Has joined the channel.

konda.kalyan (Thu, 26 Dec 2019 05:59:31 GMT):
Has joined the channel.

andreevym (Thu, 02 Jan 2020 22:11:09 GMT):
Has joined the channel.

andreevym (Thu, 02 Jan 2020 22:24:18 GMT):
hi, i want know about https://github.com/hyperledger/fabric-chaincode-java> Task :fabric-chaincode-shim:dependencyCheckAnalyze Unable to download meta file: https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-2020.meta; received 404 -- resource not found Caused by: org.owasp.dependencycheck.utils.ResourceNotFoundException: Requested resource does not exists - received a 404

andreevym (Thu, 02 Jan 2020 22:24:55 GMT):
this gradle task have dependency from external server

andreevym (Thu, 02 Jan 2020 22:25:26 GMT):
by default plugin for gradle build plugin "dependency-check" use parameter "Base URL for each year’s CVE JSON data feed, the %d will be replaced with the year." https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration.html then start 2020 year if you use gradle plugin "dependency-check" you catch not found error

andreevym (Thu, 02 Jan 2020 22:25:58 GMT):
"happy new year problem"

andreevym (Thu, 02 Jan 2020 22:26:32 GMT):
https://github.com/jeremylong/DependencyCheck/issues/2403

mbwhite (Mon, 06 Jan 2020 09:36:39 GMT):
:-) looks like this one has been closed and I believe Java builds have gone through ok now...

kelvinzhong (Wed, 08 Jan 2020 10:01:56 GMT):
@mbwhite hi, I wonder if java chaincode can write test unit, and debug locally without install in a peer?

mbwhite (Wed, 08 Jan 2020 10:03:52 GMT):
to a limited extent; if you have contracts it should be possible to use something like mockito to replace the context, so and mock the stub API

kelvinzhong (Wed, 08 Jan 2020 10:35:37 GMT):
okay, thanks!

medikent (Mon, 13 Jan 2020 18:37:36 GMT):
Yes, that is possible. I have a working example with *mockk* in Kotlin if you'd like

medikent (Mon, 13 Jan 2020 19:47:19 GMT):
When extending `org.hyperledger.fabric.contract.ContractInterface` is there an easy way to call a method on chaincode instantiation or is the only way to do so as arguments to the `peer chaincode instantiate` command?

heatherp (Tue, 14 Jan 2020 13:09:14 GMT):
Hi everyone, I am requesting that we enter the final comment period for the ledger-api RFC, link: https://github.com/hyperledger/fabric-rfcs/pull/16. We're looking for any final comments, objections, and support 🙂, from those interested in fabric api development. I'm proposing that it is merged at the end of this period, in one week. Please reach out to mbwhite or me with any queries

mbwhite (Fri, 17 Jan 2020 12:52:45 GMT):
Hello - we've released a v1.4.5 of the Java Chaincode and Contract libraries; the docker image is on dockerhub, but it seems that Maven central is delayed in updating the main repos.

medikent (Fri, 17 Jan 2020 22:31:45 GMT):
The Ledger API seems to make sense to me. Where is the best place to leave comments?

RCConnolly (Sat, 18 Jan 2020 22:14:56 GMT):
Has joined the channel.

RCConnolly (Sat, 18 Jan 2020 22:14:58 GMT):
When running any of the build commands listed in the README (https://github.com/hyperledger/fabric-chaincode-java/tree/release-1.4), the build fails with the following output ``` ```

RCConnolly (Sat, 18 Jan 2020 22:14:58 GMT):
When running any of the build commands listed in the README (https://github.com/hyperledger/fabric-chaincode-java/tree/release-1.4), the build fails with the following output ```Execution failed for task ':fabric-chaincode-shim:jacocoTestCoverageVerification'. > Rule violated for class org.hyperledger.fabric.shim.impl.InnvocationTaskManager: instructions covered ratio is 0.62, but expected minimum is 0.71 ```

heatherp (Mon, 20 Jan 2020 09:47:24 GMT):
Hey @medikent, that's good :) best place for comments right now is here: https://github.com/hyperledger/fabric-rfcs/pull/16

medikent (Wed, 22 Jan 2020 00:23:12 GMT):
I just posted a PR for some typos I found in the chaincode classes. Who should I connect with to get it reviewed? https://github.com/hyperledger/fabric-chaincode-java/pull/72

mbwhite (Wed, 22 Jan 2020 09:36:15 GMT):
that's great work thanks @medikent

mbwhite (Wed, 22 Jan 2020 12:07:33 GMT):
realised what the issue with code coverage was. the names are mentioned in the fabric-chaincode-shim/build.gradle!

medikent (Wed, 22 Jan 2020 17:04:53 GMT):
Glad to. I'd love to write some documentation and examples for the Java SDK.

YashShukla (Sun, 26 Jan 2020 12:07:36 GMT):
Has joined the channel.

YashShukla (Sun, 26 Jan 2020 12:10:41 GMT):
is there any link for the dev mode to build compile and run java Chaincode? similar to this one https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4ade.html#testing-using-dev-mode which is for go

bubogunz (Mon, 27 Jan 2020 16:45:22 GMT):
Hi everyone! Recently I saw some java chaincode on Medium, it is a simple chaincode who stores a key-value pair (https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3). The developer implements the ChaincodeBase interface, which is not a best practice. However, I dig up on the javadoc documentation and I found that two classes are mainly used to develop java chaincode: _ContractInterface_ and the _Chaincode_ interface. I wish to learn how to implement the _*Chaincode*_ interface and

bubogunz (Mon, 27 Jan 2020 16:45:22 GMT):
Hi everyone! Recently I saw some java chaincode on Medium, it is a simple chaincode who stores a key-value pair (https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3). The developer implements the ChaincodeBase interface, which is not a best practice. However, I dig up on the javadoc documentation and I found that two classes are mainly used to develop java chaincode: _ContractInterface_ and the _Chaincode_ interface. I wish to learn how to implement the _*Chaincode*_ interface and looking for some advices! Here's my GitHub repo: https://github.com/bubogunz/CarMileageChaincode I somehow managed to mvn install without errors, but an error occurs while instantiating the chaincode: _Could not find or load main class it.synclab.hyperledger.fabric.carmileagechaincode.CarMileageChaincode.java_ Seems that fabric cannot see the main class, but it's there. If I try to run the uber-jar _chaincode.jar_ it works pretty fine, so I don't know where I did wrong.

bubogunz (Mon, 27 Jan 2020 16:45:22 GMT):
Hi everyone! Recently I saw some java chaincode on Medium, it is a simple chaincode who stores a key-value pair (https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3). The developer implements the ChaincodeBase interface, which is not a best practice. However, I dig up on the javadoc documentation and I found that two classes are mainly used to develop java chaincode: _ContractInterface_ and the _Chaincode_ interface. I wish to learn how to implement the _*Chaincode*_ interface and looking for some advices! Here's my GitHub repo: https://github.com/bubogunz/CarMileageChaincode I somehow managed to mvn install without errors, but an error occurs while instantiating the chaincode: _Could not find or load main class it.synclab.hyperledger.fabric.carmileagechaincode.CarMileageChaincode.java_ Seems that fabric cannot see the main class, but it's there. If I try to run the uber-jar _chaincode.jar_ it works pretty fine, so I don't know where I did wrong. Thanks in advantage to anyone!

bubogunz (Mon, 27 Jan 2020 16:45:22 GMT):
Hi everyone! Recently I saw some java chaincode on Medium, it is a simple chaincode which stores a key-value pair (https://medium.com/@aleksobol/explained-java-chaincode-in-hyperledger-fabric-fc63fccc84a3). The developer implements the ChaincodeBase interface, which is not a best practice. However, I dig up on the javadoc documentation and I found that two classes are mainly used to develop java chaincode: _ContractInterface_ and the _Chaincode_ interface. I wish to learn how to implement the _*Chaincode*_ interface and looking for some advices! Here's my GitHub repo: https://github.com/bubogunz/CarMileageChaincode I somehow managed to mvn install without errors, but an error occurs while instantiating the chaincode: _Could not find or load main class it.synclab.hyperledger.fabric.carmileagechaincode.CarMileageChaincode.java_ Seems that fabric cannot see the main class, but it's there. If I try to run the uber-jar _chaincode.jar_ it works pretty fine, so I don't know where I did wrong. Thanks in advantage to anyone!

bubogunz (Mon, 27 Jan 2020 16:54:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=kj8nhZKjpqkmXLXh6) I forgot to mention that I'm currently running fabric v1.4!

lzaouche (Tue, 28 Jan 2020 09:17:37 GMT):
Has joined the channel.

medikent (Tue, 28 Jan 2020 14:36:26 GMT):
not yet though here is something I saw @mbwhite recommend to start from: https://gist.github.com/mbwhite/73630b4f24acab1e1ece2f726ea526f9

medikent (Tue, 28 Jan 2020 14:37:52 GMT):
Yes, implementing ContractInterface is a good way to go, much better. I suggest using Kotlin as well :)

YashShukla (Wed, 29 Jan 2020 10:58:17 GMT):
:thumbsup:

G596 (Wed, 05 Feb 2020 09:08:34 GMT):
Has joined the channel.

G596 (Wed, 05 Feb 2020 09:08:37 GMT):
Hi I just wanted to know if it is possible to read/write between two chaincodes in the same channel?

mbwhite (Wed, 05 Feb 2020 15:58:22 GMT):
Hello - the Fabric Community call earlier highlighted some of the upcoming work for Fabric 2.0 - one of those being the LedgerRFC. Early feedback has been really positive about this and I've just pushed an update. The PR is at https://github.com/hyperledger/fabric-rfcs/pull/16 and if you want to read the text, my clone of the rfc repo has gh-pages enabled so is easier to read. https://mbwhite.github.io/fabric-rfcs/text/0000-ledger-api.html Please add any comments either way; even just a thumbs-up is appreciated then we know we're on broadly the right path. :-)

jaehyun (Wed, 12 Feb 2020 01:46:02 GMT):
history

jaehyun (Wed, 12 Feb 2020 04:02:56 GMT):

Clipboard - February 12, 2020 1:02 PM

jaehyun (Wed, 12 Feb 2020 04:07:01 GMT):
Hello. I have tried to use on chaincode-java 2.0, but i got an error. network env : fabric-samples/first-network/byfn.sh (git : master) c/c : fabric-samples/chaincode/fabcar/java (git : master) I added two functions about getHistoryForKey and getQueryResultWithPagination. Here are samples : ----------------------------------------------------------------------------- //queryCarHistory //peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' @Transaction() public Object[] queryCarHistory(final Context ctx, final String key) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIterator results = stub.getHistoryForKey(key); for (KeyModification result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return cars.toArray(); } //queryCarPagenation peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarPagenation", "{\"selector\": {\"_id\": {\"$gte\": \"CAR000\",\"$lte\": \"CAR999\"}}}", "2", ""]}' @Transaction() public String queryCarPagenation(final Context ctx, final String query, final int count, final String bookmark) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIteratorWithMetadata results = stub.getQueryResultWithPagination(query, count, bookmark); for (KeyValue result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return results.toString(); } ------------------------------------------------------------------------------------------- I called the function initLedger and queryAllCars .. it works well. And then I called queryCarHistory and queryCarPagenation.. There are some errors below.

jaehyun (Wed, 12 Feb 2020 04:07:01 GMT):
Hello. I have tried to use on chaincode-java 2.0, but i got an error. network env : fabric-samples/first-network/byfn.sh (git : master) c/c : fabric-samples/chaincode/fabcar/java (git : master) I added two functions about getHistoryForKey. Here are samples : ----------------------------------------------------------------------------- //queryCarHistory //peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' @Transaction() public Object[] queryCarHistory(final Context ctx, final String key) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIterator results = stub.getHistoryForKey(key); for (KeyModification result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return cars.toArray(); } ------------------------------------------------------------------------------------------- There are some errors below. >>>>>>cli container bash-5.0# peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' Error: endorsement failure during query. response: status:500 message:"error in simulation: transaction returned with failure: Unexpected error" >>>>>>mycc logs 03:05:49:948 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 03:05:49:951 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:queryCarHistory [CAR001] 03:05:49:952 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:queryCarHistory:org.hyperledger.fabric.samples.fabcar.FabCar 03:05:49:969 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Sending message to the peer c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475 03:05:49:989 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE payload: "\n\223\001\n\220\001\n@4d315eafb0d399cfbdebb2fccef976b71cd00476fa7750ebf13395dbc0c1a6b7\022>{\"color\":\"red\",\"make\":\"Ford\",\"model\":\"Mustang\",\"owner\":\"Brad\"}\032\f\b\206\327\215\362\005\020\204\216\346\257\003\032$8e31d8a3-1547-462f-8ec3-bd0eda778788" txid: "c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475" channel_id: "mychannel" 03:05:50:031 SEVERE org.hyperledger.fabric.Logger error nulljava.lang.NullPointerException at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.normalizeArray(JSONTransactionSerializer.java:136) at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.toBuffer(JSONTransactionSerializer.java:60) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.convertReturn(ContractExecutionService.java:89) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:67) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:115) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:126) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:91) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 03:05:50:038 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [c9c1f9f6] Invoke failed with error code 500. Sending ERROR

jaehyun (Wed, 12 Feb 2020 04:07:01 GMT):
Hello. I have tried to use on chaincode-java 2.0, but i got an error. network env : fabric-samples/first-network/byfn.sh (git : master) c/c : fabric-samples/chaincode/fabcar/java (git : master) I added two functions about getHistoryForKey. Here are samples : ----------------------------------------------------------------------------- //queryCarHistory //peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' @Transaction() public Object[] queryCarHistory(final Context ctx, final String key) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIterator results = stub.getHistoryForKey(key); for (KeyModification result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return cars.toArray(); } ------------------------------------------------------------------------------------------- There are some errors below. >>>>>>cli container bash-5.0# peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' Error: endorsement failure during query. response: status:500 message:"error in simulation: transaction returned with failure: Unexpected error" >>>>>>mycc logs 03:05:49:948 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 03:05:49:951 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:queryCarHistory [CAR001] 03:05:49:952 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:queryCarHistory:org.hyperledger.fabric.samples.fabcar.FabCar 03:05:49:969 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Sending message to the peer c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475 03:05:49:989 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE payload: "\n\223\001\n\220\001\n@4d315eafb0d399cfbdebb2fccef976b71cd00476fa7750ebf13395dbc0c1a6b7\022>{\"color\":\"red\",\"make\":\"Ford\",\"model\":\"Mustang\",\"owner\":\"Brad\"}\032\f\b\206\327\215\362\005\020\204\216\346\257\003\032$8e31d8a3-1547-462f-8ec3-bd0eda778788" txid: "c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475" channel_id: "mychannel" 03:05:50:031 SEVERE org.hyperledger.fabric.Logger error nulljava.lang.NullPointerException at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.normalizeArray(JSONTransactionSerializer.java:136) at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.toBuffer(JSONTransactionSerializer.java:60) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.convertReturn(ContractExecutionService.java:89) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:67) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:115) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:126) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:91) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 03:05:50:038 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [c9c1f9f6] Invoke failed with error code 500. Sending ERROR

jaehyun (Wed, 12 Feb 2020 04:07:01 GMT):
Hello. I have tried to use on chaincode-java 2.0, but i got an error. network env : fabric-samples/first-network/byfn.sh (git : master) c/c : fabric-samples/chaincode/fabcar/java (git : master) I added a functions about getHistoryForKey. Here are samples : ----------------------------------------------------------------------------- //queryCarHistory //peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' @Transaction() public Object[] queryCarHistory(final Context ctx, final String key) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIterator results = stub.getHistoryForKey(key); for (KeyModification result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return cars.toArray(); } ------------------------------------------------------------------------------------------- There are some errors below. >>>>>>cli container bash-5.0# peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' Error: endorsement failure during query. response: status:500 message:"error in simulation: transaction returned with failure: Unexpected error" >>>>>>mycc logs 03:05:49:948 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 03:05:49:951 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:queryCarHistory [CAR001] 03:05:49:952 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:queryCarHistory:org.hyperledger.fabric.samples.fabcar.FabCar 03:05:49:969 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Sending message to the peer c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475 03:05:49:989 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE payload: "\n\223\001\n\220\001\n@4d315eafb0d399cfbdebb2fccef976b71cd00476fa7750ebf13395dbc0c1a6b7\022>{\"color\":\"red\",\"make\":\"Ford\",\"model\":\"Mustang\",\"owner\":\"Brad\"}\032\f\b\206\327\215\362\005\020\204\216\346\257\003\032$8e31d8a3-1547-462f-8ec3-bd0eda778788" txid: "c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475" channel_id: "mychannel" 03:05:50:031 SEVERE org.hyperledger.fabric.Logger error nulljava.lang.NullPointerException at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.normalizeArray(JSONTransactionSerializer.java:136) at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.toBuffer(JSONTransactionSerializer.java:60) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.convertReturn(ContractExecutionService.java:89) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:67) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:115) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:126) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:91) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 03:05:50:038 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [c9c1f9f6] Invoke failed with error code 500. Sending ERROR

jaehyun (Wed, 12 Feb 2020 04:07:01 GMT):
Hello. I have tried to use on chaincode-java 2.0, but i got an error. network env : fabric-samples/first-network/byfn.sh (git : master) c/c : fabric-samples/chaincode/fabcar/java (git : master) I added a function getHistoryForKey. Here are samples : ----------------------------------------------------------------------------- //queryCarHistory //peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' @Transaction() public Object[] queryCarHistory(final Context ctx, final String key) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIterator results = stub.getHistoryForKey(key); for (KeyModification result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return cars.toArray(); } ------------------------------------------------------------------------------------------- There are some errors below. >>>>>>cli container bash-5.0# peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' Error: endorsement failure during query. response: status:500 message:"error in simulation: transaction returned with failure: Unexpected error" >>>>>>mycc logs 03:05:49:948 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 03:05:49:951 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:queryCarHistory [CAR001] 03:05:49:952 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:queryCarHistory:org.hyperledger.fabric.samples.fabcar.FabCar 03:05:49:969 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Sending message to the peer c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475 03:05:49:989 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE payload: "\n\223\001\n\220\001\n@4d315eafb0d399cfbdebb2fccef976b71cd00476fa7750ebf13395dbc0c1a6b7\022>{\"color\":\"red\",\"make\":\"Ford\",\"model\":\"Mustang\",\"owner\":\"Brad\"}\032\f\b\206\327\215\362\005\020\204\216\346\257\003\032$8e31d8a3-1547-462f-8ec3-bd0eda778788" txid: "c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475" channel_id: "mychannel" 03:05:50:031 SEVERE org.hyperledger.fabric.Logger error nulljava.lang.NullPointerException at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.normalizeArray(JSONTransactionSerializer.java:136) at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.toBuffer(JSONTransactionSerializer.java:60) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.convertReturn(ContractExecutionService.java:89) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:67) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:115) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:126) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:91) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 03:05:50:038 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [c9c1f9f6] Invoke failed with error code 500. Sending ERROR

jaehyun (Wed, 12 Feb 2020 04:07:01 GMT):
Hello. I have tried to use on chaincode-java 2.0, but i got an error. network env : fabric-samples/first-network/byfn.sh (git : master) c/c : fabric-samples/chaincode/fabcar/java (git : master) I added a function getHistoryForKey. the sample : ----------------------------------------------------------------------------- //queryCarHistory //peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' @Transaction() public Object[] queryCarHistory(final Context ctx, final String key) { List cars = new ArrayList(); ChaincodeStub stub = ctx.getStub(); QueryResultsIterator results = stub.getHistoryForKey(key); for (KeyModification result : results) { Car car = genson.deserialize(result.getStringValue(), Car.class); cars.add(car); } return cars.toArray(); } ------------------------------------------------------------------------------------------- There are some errors below. >>>>>>cli container bash-5.0# peer chaincode query -C mychannel -n mycc -c '{"Args":["queryCarHistory", "CAR001"]}' Error: endorsement failure during query. response: status:500 message:"error in simulation: transaction returned with failure: Unexpected error" >>>>>>mycc logs 03:05:49:948 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got invoke routing request 03:05:49:951 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got the invoke request for:queryCarHistory [CAR001] 03:05:49:952 INFO org.hyperledger.fabric.contract.ContractRouter processRequest Got routing:queryCarHistory:org.hyperledger.fabric.samples.fabcar.FabCar 03:05:49:969 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Sending message to the peer c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475 03:05:49:989 INFO org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask invoke Got response back from the peertype: RESPONSE payload: "\n\223\001\n\220\001\n@4d315eafb0d399cfbdebb2fccef976b71cd00476fa7750ebf13395dbc0c1a6b7\022>{\"color\":\"red\",\"make\":\"Ford\",\"model\":\"Mustang\",\"owner\":\"Brad\"}\032\f\b\206\327\215\362\005\020\204\216\346\257\003\032$8e31d8a3-1547-462f-8ec3-bd0eda778788" txid: "c9c1f9f6cb0fad5eedd7b826afe867ffc0597b60ffe68098b88617cb51e1e475" channel_id: "mychannel" 03:05:50:031 SEVERE org.hyperledger.fabric.Logger error nulljava.lang.NullPointerException at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.normalizeArray(JSONTransactionSerializer.java:136) at org.hyperledger.fabric.contract.execution.JSONTransactionSerializer.toBuffer(JSONTransactionSerializer.java:60) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.convertReturn(ContractExecutionService.java:89) at org.hyperledger.fabric.contract.execution.impl.ContractExecutionService.executeRequest(ContractExecutionService.java:67) at org.hyperledger.fabric.contract.ContractRouter.processRequest(ContractRouter.java:115) at org.hyperledger.fabric.contract.ContractRouter.invoke(ContractRouter.java:126) at org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask.call(ChaincodeInvocationTask.java:91) at org.hyperledger.fabric.shim.impl.InvocationTaskManager.lambda$newTask$17(InvocationTaskManager.java:225) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 03:05:50:038 SEVERE org.hyperledger.fabric.shim.impl.ChaincodeInvocationTask call [c9c1f9f6] Invoke failed with error code 500. Sending ERROR

mbwhite (Wed, 12 Feb 2020 13:45:58 GMT):
@jaehyun could you try changing the return type of the transaction from Object[] to Car[]

jaehyun (Thu, 13 Feb 2020 00:59:40 GMT):
I have a question. I tested using shim:1.4.5 .. it works return type of Object array. Is there no plan to support to return type of Object array?

jaehyun (Thu, 13 Feb 2020 00:59:40 GMT):
I have a question. I tested using shim:1.4.5 .. it works return type of Object array. From now on, Is there no plan to support to return type of Object array?

mbwhite (Fri, 14 Feb 2020 16:23:12 GMT):
I'll need to check into the code, but I'm away for a few days..

Jelle.Diet (Mon, 24 Feb 2020 09:39:11 GMT):
Is the use of "docType" or similar for an Asset still necessary with the new Chaincode interface (ContractInterface) or is there an alternative for querying a certain asset?

premib (Sat, 07 Mar 2020 11:12:48 GMT):
Has joined the channel.

premib (Sat, 07 Mar 2020 11:16:40 GMT):

log.txt

premib (Sat, 07 Mar 2020 11:16:45 GMT):
I am trying to run my chaincode with maven, but i am getting "Build Success" message with the following message, "cp: cannot stat 'target/chaincode.jar': No such file or directory" and "Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "Copying from /chaincode/input/src/ to /tmp/tmp.ApWv5OL9PH" Complete Message in log file.

premib (Sat, 07 Mar 2020 11:18:30 GMT):

log.txt

Jelle.Diet (Sun, 08 Mar 2020 13:58:50 GMT):
what does your pom look like?

gokulalex (Fri, 20 Mar 2020 12:10:10 GMT):
Has joined the channel.

DVasin (Sun, 22 Mar 2020 11:55:52 GMT):
Hi, guys. I suddenly started having problem: 2020-03-22 11:36:02.142 UTC [endorser] callChaincode -> INFO 3aa [mychannel][d1bd6f5a] Exit chaincode: name:"lscc" (3577ms) 2020-03-22 11:36:02.142 UTC [endorser] SimulateProposal -> ERRO 3ab [mychannel][d1bd6f5a] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed When instantiating my Java chaincode. How can I debug it? I tried to upgrade compose to 1.4.6 from 1.4.3. Then this thing started to happen. I rolled back images to 1.4.3 but the problem persists.

DVasin (Sun, 22 Mar 2020 11:55:52 GMT):
Hi, guys. I suddenly started having problem: ``` 2020-03-22 11:36:02.142 UTC [endorser] callChaincode -> INFO 3aa [mychannel][d1bd6f5a] Exit chaincode: name:"lscc" (3577ms) 2020-03-22 11:36:02.142 UTC [endorser] SimulateProposal -> ERRO 3ab [mychannel][d1bd6f5a] failed to invoke chaincode name:"lscc" , error: container exited with 1 github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1 /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63 runtime.goexit /opt/go/src/runtime/asm_amd64.s:1333 chaincode registration failed ``` When instantiating my Java chaincode. How can I debug it? I tried to upgrade compose to 1.4.6 from 1.4.3. Then this thing started to happen. I rolled back images to 1.4.3 but the problem persists.

aberwag (Tue, 24 Mar 2020 08:09:58 GMT):
Has joined the channel.

yeousunn (Thu, 26 Mar 2020 06:51:39 GMT):
Hi Guys, I have a chaincode written in java. I have used vscode Ibm blockchain platform extension to generate the code. I have the following data ``` @DataType() public class AIData { @Property() private String id; @Property() private List organizations; @Property() private List clients; @Property() private Task task; } ``` When writing into the blockchain it is successful, but when I read the data I get blank json information for the class. ``` {"task":{},"clients":[{}],"id":"1","organizations":[{}]} ``` I find the issue when wrapping the json string to JSONObject and similarly byte[] to String. There are data loss. I debugged and before wrapping the data is proper. I have hopefully fixed the write portion. but I am not sure what to do during the read. ``` ```

yeousunn (Thu, 26 Mar 2020 06:51:39 GMT):
Hi Guys, I have a chaincode written in java. I have used vscode Ibm blockchain platform extension to generate the code. I have the following data ``` @DataType() public class AIData { @Property() private String id; @Property() private List organizations; @Property() private List clients; @Property() private Task task; } ``` When writing into the blockchain it is successful, but when I read the data I get blank json information for the class. ``` {"task":{},"clients":[{}],"id":"1","organizations":[{}]} ``` I find the issue when wrapping the json string to JSONObject and similarly byte[] to String. There are data loss. I debugged and before wrapping the data is proper. I have hopefully fixed the write portion. but I am not sure what to do during the read. ``` Asset newAsset = Asset.fromJSONString(new String(ctx.getStub().getState(taskGroupId),UTF_8)); ```

yeousunn (Thu, 26 Mar 2020 06:51:39 GMT):
Hi Guys, I have a chaincode written in java. I have used vscode Ibm blockchain platform extension to generate the code. I have the following data ``` @DataType() public class AIData { @Property() private String id; @Property() private List organizations; @Property() private List clients; @Property() private Task task; } ``` When writing into the blockchain it is successful, but when I read the data I get blank json information for the class. ``` {"task":{},"clients":[{}],"id":"1","organizations":[{}]} ``` I find the issue when wrapping the json string to JSONObject and similarly byte[] to String. There are data loss. I debugged and before wrapping the data is proper. I have hopefully fixed the write portion. but I am not sure what to do during the read. ``` Asset newAsset = Asset.fromJSONString(new String(ctx.getStub().getState(taskGroupId),UTF_8)); ``` Any suggestion what I can do here?

yeousunn (Thu, 26 Mar 2020 06:51:39 GMT):
Hi Guys, I have a chaincode written in java. I have used vscode Ibm blockchain platform extension to generate the code. I have the following data ``` @DataType() public class Asset { @Property() private String id; @Property() private List organizations; @Property() private List clients; @Property() private Task task; } ``` When writing into the blockchain it is successful, but when I read the data I get blank json information for the class. ``` {"task":{},"clients":[{}],"id":"1","organizations":[{}]} ``` I find the issue when wrapping the json string to JSONObject and similarly byte[] to String. There are data loss. I debugged and before wrapping the data is proper. I have hopefully fixed the write portion. but I am not sure what to do during the read. ``` Asset newAsset = Asset.fromJSONString(new String(ctx.getStub().getState(taskGroupId),UTF_8)); ``` Any suggestion what I can do here?

yeousunn (Thu, 26 Mar 2020 07:40:26 GMT):
abc123*

qubing (Sun, 29 Mar 2020 13:27:53 GMT):
shadowJar

qubing (Sun, 29 Mar 2020 13:35:06 GMT):
Hi guys, anyone can provide build.gradle which can work on fabric 2.0? How to package the chaincode using ContractInterface? Thanks.

qubing (Sun, 29 Mar 2020 15:31:32 GMT):
When I deploy chaincode written with Java, fabric-javaenv needs to download gradle-bin_xx.zip every time, it will cause install transaction timeout. How to avoid to download it in fabric-javaenv container? Thanks.

qubing (Mon, 30 Mar 2020 04:24:46 GMT):
Anyone knows if the new version of 2.0 supports chaincode implementation base on ChaincodeBase like before not ContractInterface in JAVA?

yeousunn (Tue, 31 Mar 2020 06:04:38 GMT):
Hi Guys, I am trying to execute a transaction using java sdk. the transaction proposal is successful and in log I can see that the transaction ran, but the transaction result is not persisted into the ledger. the following is my code. ``` ChaincodeID.Builder chainCodeIDBuilder = ChaincodeID.newBuilder() .setName(chainCodeName) .setVersion(version); ccId = chainCodeIDBuilder.build(); TransactionProposalRequest transactionProposalRequest = client.newTransactionProposalRequest(); transactionProposalRequest.setChaincodeID(ccId); transactionProposalRequest.setChaincodeLanguage(TransactionRequest.Type.JAVA); transactionProposalRequest.setFcn(func); transactionProposalRequest.setArgs(args); transactionProposalRequest.setProposalWaitTime(waitTime); Map tm = new HashMap<>(3); tm.put("HyperLedgerFabric", "TransactionProposalRequest:JavaSDK".getBytes(UTF_8)); tm.put("method", "TransactionProposalRequest".getBytes(UTF_8)); transactionProposalRequest.setTransientMap(tm); Collection transactionPropResp = channel.sendTransactionProposal(transactionProposalRequest, channel.getPeers()); for (ProposalResponse resp : transactionPropResp) { String payload = new String(resp.getChaincodeActionResponsePayload()); System.out.println("response: " + payload); } channel.sendTransaction(transactionPropResp); ``` This is the log on mycc docker. ``` Query Response:{"Name":"a","Amount":"90"} ex02 Invoke Aval = 80, Bval = 220 ex02 Invoke Query Response:{"Name":"a","Amount":"90"} ex02 Invoke Aval = 80, Bval = 220 ex02 Invoke Aval = 80, Bval = 220 ex02 Invoke Query Response:{"Name":"a","Amount":"90"} ex02 Invoke Query Response:{"Name":"b","Amount":"210"} ex02 Invoke Aval = 200, Bval = 100 ex02 Invoke Query Response:{"Name":"b","Amount":"210"} ex02 Invoke Aval = 200, Bval = 100 ex02 Invoke Aval = 200, Bval = 100 ``` as you can see on multiple invoke I am still getting the same result. the balance is not transferred to "a" from "b" Thank you.

yeousunn (Tue, 31 Mar 2020 06:04:38 GMT):
Hi Guys, I am trying to execute a transaction using java sdk. the transaction proposal is successful and in log I can see that the transaction ran, but the transaction result is not persisted into the ledger. the following is my code. ``` ChaincodeID.Builder chainCodeIDBuilder = ChaincodeID.newBuilder() .setName(chainCodeName) .setVersion(version); ccId = chainCodeIDBuilder.build(); TransactionProposalRequest transactionProposalRequest = client.newTransactionProposalRequest(); transactionProposalRequest.setChaincodeID(ccId); transactionProposalRequest.setChaincodeLanguage(TransactionRequest.Type.JAVA); transactionProposalRequest.setFcn(func); transactionProposalRequest.setArgs(args); transactionProposalRequest.setProposalWaitTime(waitTime); Map tm = new HashMap<>(3); tm.put("HyperLedgerFabric", "TransactionProposalRequest:JavaSDK".getBytes(UTF_8)); tm.put("method", "TransactionProposalRequest".getBytes(UTF_8)); transactionProposalRequest.setTransientMap(tm); Collection transactionPropResp = channel.sendTransactionProposal(transactionProposalRequest, channel.getPeers()); for (ProposalResponse resp : transactionPropResp) { String payload = new String(resp.getChaincodeActionResponsePayload()); System.out.println("response: " + payload); } channel.sendTransaction(transactionPropResp); ``` This is the log on mycc docker. ``` Query Response:{"Name":"a","Amount":"90"} ex02 Invoke Aval = 80, Bval = 220 ex02 Invoke Query Response:{"Name":"a","Amount":"90"} ex02 Invoke Aval = 80, Bval = 220 ex02 Invoke Aval = 80, Bval = 220 ex02 Invoke Query Response:{"Name":"a","Amount":"90"} ex02 Invoke Query Response:{"Name":"b","Amount":"210"} ex02 Invoke Aval = 200, Bval = 100 ex02 Invoke Query Response:{"Name":"b","Amount":"210"} ex02 Invoke Aval = 200, Bval = 100 ex02 Invoke Aval = 200, Bval = 100 ``` as you can see on multiple invoke I am still getting the same result. the balance is not transferred to "a" from "b" fabric version 1.4.4 docker images 1.4.4 Any idea what I am doing wrong here? Thank you.

yeousunn (Wed, 01 Apr 2020 04:24:45 GMT):

yeousunn - Wed Apr 01 2020 09:54:16 GMT+0530 (India Standard Time).txt

yeousunn (Wed, 01 Apr 2020 04:37:24 GMT):
Hi Guys, I have facing the following exception ``` 2020-04-01 04:28:08.287 ERROR 23356 --- [ault-executor-1] o.hyperledger.fabric.sdk.OrdererClient : OrdererClient{id: 6, channel: mychannel, name: orderer1.example.com, url: grpcs://localhost:7050} managed channel isTerminated: false, isShutdown: false, state: TRANSIENT_FAILURE 2020-04-01 04:28:08.294 ERROR 23356 --- [ault-executor-1] o.hyperledger.fabric.sdk.OrdererClient : Received error org.hyperledger.fabric.sdk.OrdererClient$1@43c1b07f UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] io.grpc.StatusRuntimeException: UNAVAILABLE: io exception ... ... 2020-04-01 04:28:08.297 ERROR 23356 --- [nio-8181-exec-1] o.hyperledger.fabric.sdk.OrdererClient : OrdererClient{id: 6, channel: mychannel, name: orderer1.example.com, url: grpcs://localhost:7050} grpc status Code:io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], Description UNAVAILABLE, ... ... 2020-04-01 04:28:08.303 ERROR 23356 --- [nio-8181-exec-1] org.hyperledger.fabric.sdk.Channel : Channel mychannel unsuccessful sendTransaction to orderer orderer1.example.com (grpcs://localhost:7050) 2020-04-01 04:28:08.307 ERROR 23356 --- [nio-8181-exec-1] org.hyperledger.fabric.sdk.Channel : Future completed exceptionally: sendTransaction java.lang.Exception: Channel mychannel failed to place transaction aff067d1599f23052ef103ab9c9c610484c4b43d24a03ac270507ced1a8f0af0 on Orderer. Cause: UNSUCCESSFUL. at org.hyperledger.fabric.sdk.Channel.doSendTransaction(Channel.java:5415) [fabric-sdk-java-1.4.8.jar!/:na] ``` I have tried changing the hosts entry and also tried docker container IP address. The exception is thrown only when I try to invoke and write to the ledger, the query transaction works perfectly. thank you.

yeousunn (Wed, 01 Apr 2020 04:37:24 GMT):
Hi Guys, I am facing the following exception ``` 2020-04-01 04:28:08.287 ERROR 23356 --- [ault-executor-1] o.hyperledger.fabric.sdk.OrdererClient : OrdererClient{id: 6, channel: mychannel, name: orderer1.example.com, url: grpcs://localhost:7050} managed channel isTerminated: false, isShutdown: false, state: TRANSIENT_FAILURE 2020-04-01 04:28:08.294 ERROR 23356 --- [ault-executor-1] o.hyperledger.fabric.sdk.OrdererClient : Received error org.hyperledger.fabric.sdk.OrdererClient$1@43c1b07f UNAVAILABLE: io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0] io.grpc.StatusRuntimeException: UNAVAILABLE: io exception ... ... 2020-04-01 04:28:08.297 ERROR 23356 --- [nio-8181-exec-1] o.hyperledger.fabric.sdk.OrdererClient : OrdererClient{id: 6, channel: mychannel, name: orderer1.example.com, url: grpcs://localhost:7050} grpc status Code:io exception Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0], Description UNAVAILABLE, ... ... 2020-04-01 04:28:08.303 ERROR 23356 --- [nio-8181-exec-1] org.hyperledger.fabric.sdk.Channel : Channel mychannel unsuccessful sendTransaction to orderer orderer1.example.com (grpcs://localhost:7050) 2020-04-01 04:28:08.307 ERROR 23356 --- [nio-8181-exec-1] org.hyperledger.fabric.sdk.Channel : Future completed exceptionally: sendTransaction java.lang.Exception: Channel mychannel failed to place transaction aff067d1599f23052ef103ab9c9c610484c4b43d24a03ac270507ced1a8f0af0 on Orderer. Cause: UNSUCCESSFUL. at org.hyperledger.fabric.sdk.Channel.doSendTransaction(Channel.java:5415) [fabric-sdk-java-1.4.8.jar!/:na] ``` I have tried changing the hosts entry and also tried docker container IP address. The exception is thrown only when I try to invoke and write to the ledger, the query transaction works perfectly. thank you.

chill37 (Wed, 01 Apr 2020 06:18:45 GMT):
Simple question. Is it possible to access any web data directly from chaincode?

yeousunn (Wed, 01 Apr 2020 06:24:33 GMT):
what kind of data. I think you can do all sorts of things since you are using java.

chill37 (Wed, 01 Apr 2020 06:29:00 GMT):
I mean, directly from web.(e.g. weather data api) I didn't think its possible but just trying to make sure.

qubing (Thu, 02 Apr 2020 09:57:46 GMT):
By my understanding, because chaincode needs to run in different peers to endorse, it can not read any uncertainty data.

mahoney1 (Thu, 02 Apr 2020 11:11:03 GMT):
reminder that the Fabric Application Developer Community call today is at 4pm UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Agendas:+Fabric+Application+Developer+Community+Call+Meetings

mahoney1 (Thu, 02 Apr 2020 11:11:03 GMT):
reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Agendas:+Fabric+Application+Developer+Community+Call+Meetings

matanyahu (Mon, 06 Apr 2020 17:49:33 GMT):
Has left the channel.

Koushik (Thu, 09 Apr 2020 17:30:20 GMT):
Has joined the channel.

Koushik (Thu, 09 Apr 2020 17:30:20 GMT):
Hi all, Hope everyone is safe in these troubling times. I have a question regarding GRPC error (been debugging more than 2 days), one of our partners is receiving this error, however, we are not when triggering the same chaincode *Error* ```shell An error occurred on the chaincode stream. Shutting down the chaincode stream.io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: io.grpc.netty.NettyClientTransport$3: Frame size 4306126 exceeds maximum: 4194304 ``` *The setup is this * Chaincode is written in JAVA. We are using Node.js Fabric SDK as the middle layer to connect to the Fabric Network I looked into the error more deeply and noticed this JIRA ticket, https://jira.hyperledger.org/browse/FABCJ-187 . The solution I found out in the JIRA ticket was to override the chain code base class in the java SDK, but is there an another method instead of touching the java SDK, such as an environment variable I can configure the in the docker-compose.yamyl file? I looked in the core.yaml settings and I did not notice any settings for GRPC sizes. Or any other way I can change the settings for GRPC without touching the JAVA SDK?

Koushik (Fri, 10 Apr 2020 00:34:37 GMT):
Hi guys, does anyone have the release notes for fabric/java-env for all versions of 1.4.x. I am trying to figure out what differences are there between 1.4.0 to 1.4.2 in regards to java sdk

Koushik (Fri, 10 Apr 2020 00:34:37 GMT):
Hi guys, does anyone have the release notes for fabric/java-env for all versions of 1.4.x. I am trying to figure out what differences are there between 1.4.0 to 1.4.2 in regards to java sdk. I checked on https://github.com/hyperledger/fabric-sdk-java and see that it just says minor changes, I would like to know what changes. I compared the java-env containers from 1.4.0 to 1.4.2 but can see no difference

heatherp (Tue, 14 Apr 2020 09:41:29 GMT):
Hi @Koushik The java env container is published from this repo: https://github.com/hyperledger/fabric-chaincode-java/tree/release-1.4 whereas the java-sdk publishes packages used by client applications. Either way, it's unlikely that there will be breaking changes between 1.4.x builds. This changelog should contain a list of the changes between releases in the java-chaincode repo: https://github.com/hyperledger/fabric-chaincode-java/blob/release-1.4/CHANGELOG.md

jaraujo (Wed, 15 Apr 2020 16:49:47 GMT):
Has joined the channel.

jaraujo (Wed, 15 Apr 2020 16:52:08 GMT):
Hi guys! I've tried several times deploying a Java Contract using Fabric 2.0.1 but every time I commit the chaincode, Fabric can't instantiate a dev-peer. It's just a simple chaincode that implements ContractInterface. Does anyone know what could it be? I'm using Maven as a dependency tool

jaraujo (Wed, 15 Apr 2020 16:52:08 GMT):
Hi @heatherp , every time we commit a chaincode, Fabric starts to instantiate a Docker image to host that chaincode. What happens with me is that every time it starts doing that, it doesn't work. :/

jaraujo (Wed, 15 Apr 2020 16:52:08 GMT):
Hi guys! I've tried several times deploying a Java Contract using Fabric 2.0.1 but every time I commit the chaincode, Fabric can't instantiate a dev-peer. It's just a simple chaincode that implements ContractInterface. Does anyone know what could it be? I'm using Maven as a dependency tool

jaraujo (Wed, 15 Apr 2020 16:52:08 GMT):
Hi @heatherp , thanks for replying. What happens is that when I commit a Java chaincode, Fabric is unable to instantiate a Java docker image to install it. Every time I tried I have the same result.

heatherp (Thu, 16 Apr 2020 08:49:23 GMT):
Instantiate is no longer a deploy step in fabric v2.0, due to the new chaincode lifecycle model, more info here: https://hyperledger-fabric.readthedocs.io/en/latest/chaincode_lifecycle.html

rthatcher (Thu, 16 Apr 2020 14:53:06 GMT):
reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) today - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Agendas:+Fabric+Application+Developer+Community+Call+Meetings

Francesco_P (Thu, 23 Apr 2020 08:59:52 GMT):
Has joined the channel.

Francesco_P (Thu, 23 Apr 2020 08:59:54 GMT):
Hi I'm trying to query ledger data with org.hyperledger.fabric.shim.ChaincodeStub getStateByPartialCompositeKey.I use in that way : i have a state with key "1_1" already stored; so i call "stub.getStateByPartialCompositeKey("1");" but it gives me no results...always as there is no data but I know there is. How can i solve? Thank you

jital (Thu, 23 Apr 2020 09:09:51 GMT):
Has joined the channel.

SuneetBendre (Fri, 24 Apr 2020 17:22:10 GMT):
Has joined the channel.

SuneetBendre (Sat, 25 Apr 2020 14:20:50 GMT):
I am troubleshoot one issue, could you help me? Issue: Java Maven chaincode deployment on Fabric 2.0 **Observation:** -During chain code deployment cycle, 'peer lifecycle chaincode install' command is failing **Error:** Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode **My Analysis:** 1. Gradle java chaincode is working fine (source code and structure is same as maven) 2. After 'install' command container 'hyperledger/fabric-javaenv' getting launched but chaincode container not getting started. **Last Logs :** Downloaded from central: [https://repo.maven.apache.org/maven2/org/vafer/jdependency/1.2/jdependency-1.2.jar](https://repo.maven.apache.org/maven2/org/vafer/jdependency/1.2/jdependency-1.2.jar) (22 kB at 2.7 kB/s) Progress (2): 209 kB | 0.2/2.3 MB Progress (2): 209 kB | 0.2/2.3 MB Downloaded from central: [https://repo.maven.apache.org/maven2/commons-io/commons-io/2.5/commons-io-2.5.jar](https://repo.maven.apache.org/maven2/commons-io/commons-io/2.5/commons-io-2.5.jar) (209 kB at 26 kB/s) 3. I am also using maven-shade plugin for fat jar as per the 'start' script of the chaincode container, along with 'ContractRouter' as mainclass in POM 4. I also tried with mbwhitie's and Jelli Diet's Git repo of maven chaincode, but no luck.

Francesco_P (Mon, 27 Apr 2020 08:28:36 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-java-chaincode?msg=ve5QLP58aAXezCF9R) Is there someone that can help me?

SuneetBendre (Tue, 28 Apr 2020 12:35:21 GMT):
Maven Java chaincode working in 2.1.0 Observation: Maven build on cli during chaincode package is taking 14.3 sec, where as for Gradle is taking 3 sec. During Install i.e after package, fabric-javaenv instance is taking 1.38 min and go-grpc connection is timedout and hence build does not complete and packageId of chaincode is not created. Now that this timeout is better handled on latest version on go1.14 and might be some changes in 2.1.0 fabric. It has resolved the issue. Gradle package Build: BUILD SUCCESSFUL in 3s 3 actionable tasks: 3 up-to-date **Maven package build:** [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.315 s [INFO] Finished at: 2020-04-27T21:37:34+05:30 Install build Java-env container [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:38 min [INFO] Finished at: 2020-04-28T04:41:12Z [INFO] ------------------------------------------------------------------------

SuneetBendre (Tue, 28 Apr 2020 12:40:49 GMT):
is Spring boot java chaincode supported ? i am getting error at init ledger

mahoney1 (Thu, 30 Apr 2020 12:23:13 GMT):
reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Agendas:+Fabric+Application+Developer+Community+Call+Meetings

lviggiano (Thu, 30 Apr 2020 14:45:10 GMT):
Has joined the channel.

Mms 11 (Wed, 06 May 2020 14:52:29 GMT):
Has joined the channel.

Mms 11 (Wed, 06 May 2020 14:54:16 GMT):
Hi here, Can somebody help me with this issue? When calling the CouchDB from a java chaincode for a rather not large data collection (150), the processing of the result takes 50 seconds. I can see from logs that the ChaincodeInvocationTask.invoke got the response rather quick but when it is passed as a response this is taking a long time to process. This class is created from the response, QueryResultsIteratorImpl in the InvocationStubImpl. Anyone had this problem when calling InvocationStubImplgetQueryResult Is there some trick to handle the QueryResultsIteratorImpl to get access to the data without waiting so long ? I'm not doing any high performance operations on the chaincode, just calling the CouchDB ``` ```

Mms 11 (Wed, 06 May 2020 14:54:16 GMT):
Hi here, Can somebody help me with this issue? When calling the CouchDB from a java chaincode for a rather not large data collection (150), the processing of the result takes 50 seconds. I can see from logs that the ChaincodeInvocationTask.invoke got the response rather quick but when it is passed as a response this is taking a long time to process. This class is created from the response, QueryResultsIteratorImpl in the InvocationStubImpl. Anyone had this problem when calling InvocationStubImplgetQueryResult Is there some trick to handle the QueryResultsIteratorImpl to get access to the data without waiting so long ? I'm not doing any high performance operations on the chaincode, just calling the CouchDB ``` public List queryBy(String querySelector) { hasText(querySelector, "QuerySelector is required!"); try (QueryResultsIterator queryResult = ctx.getStub().getQueryResult(querySelector)) { log.info("{}. {} query returned finished {} sec.", LocalDateTime.now(), domainName, querySelector); return stream(queryResult.spliterator(), false) .map(KeyValue::getStringValue) .collect(toList()); } catch (Exception e) { log.error("error when querying the state db", e); throw new RuntimeException("Error when querying the state db", e); } } ```

Mms 11 (Wed, 06 May 2020 14:55:48 GMT):

log_fetch_new.txt

Mms 11 (Wed, 06 May 2020 14:59:04 GMT):
From logs it can be seen the log entries I was talking about. The findDebtByProjectId is chaincode that is invoked, the query is passed to the couchdb and after around 30 ms the `[chaincode] HandleTransaction -> DEBU 2629 [021c0abe] Completed GET_QUERY_RESULT. Sending RESPONSE` is loged. Then 50 seconds....

Mms 11 (Wed, 06 May 2020 14:59:42 GMT):
Can someone please help me with this one, I'm fighting with the issue for 4 days now and I don't have any ideas left.

SuneetBendre (Wed, 06 May 2020 16:37:53 GMT):
QueryResultsIterator results = stub.getStateByRange(startKey, endKey); for (KeyValue result: results) { Car car = genson.deserialize(result.getStringValue(), Car.class); queryResults.add(new CarQueryResult(result.getKey(), car)); }

Mms 11 (Wed, 06 May 2020 17:02:30 GMT):
I already tried the old school forloop, also tried the forEachRemaining method which checks if there is any item left. this line is executed after the entire response is fetched so there is no change in the time of execution.

SuneetBendre (Thu, 07 May 2020 04:37:05 GMT):
Ok.. Do you want to jump on call and do some troubleshoot brainstorming? We can do after 8.30PM IST

Mms 11 (Thu, 07 May 2020 16:05:36 GMT):
Hi, sorry for replaying just now. Thanks for the suggestion, unfortunately I don't have time today for any work. I know David and Brett are working on this issue. There is a JIRA task regarding it: https://jira.hyperledger.org/browse/FABCJ-285

c0deh0use (Mon, 11 May 2020 09:17:33 GMT):
Has joined the channel.

mahoney1 (Thu, 14 May 2020 08:31:02 GMT):
reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Agendas:+Fabric+Application+Developer+Community+Call+Meetings

c0deh0use (Fri, 15 May 2020 11:08:46 GMT):
Hi there, could I please ask someone for help with my performance problem inside chaincode. I have created and almost copy-pasted the existing FabCar java chain code, I only changed it to fit my logic. I'm not able to go to times of execution of the `getQueryResult` rich query feature in CouchDB. The data are of similar volume: 125- 126 records. Bellow you have my repo with two chaincodes and client apps to test the two: https://github.com/Marek00Malik/fabric-samples/tree/chaincode-performance-test Besides the FabCar java chaincode there is a poc-services chaincode, and also a poc-services client app. You will start the network and deploy both chaincodes by running ` ./startFabric.sh fabcar` from the poc-services folder (the client app) The results are 3.5 seconds for the FabCar and around 31 seconds for my chaincode. Can someone review and help me with this one ?

c0deh0use (Sat, 16 May 2020 19:47:34 GMT):
just a quick question, I was trying to build the java chaincode jars locally as described in the readme. Running gradle with commands `clean build install` resulted in an error on the fabric-docker:buildImage task, ``` Task 'javadoc' not found in root project 'shim-src'. .. > Task :fabric-chaincode-docker:buildImage FAILED ``` When running buildImage only this passed, is there any step that I need to go throw before ?

c0deh0use (Sat, 16 May 2020 19:47:34 GMT):
just a quick question, I was trying to build the java chaincode jars locally as described in the readme. Running gradle with commands `clean build install` resulted in an error on the fabric-docker:buildImage task, ``` Task 'javadoc' not found in root project 'shim-src'. .. > Task :fabric-chaincode-docker:buildImage FAILED ``` When running `buildImage` only it is passing, is there any step that I need to go with first ?

c0deh0use (Sat, 16 May 2020 19:47:34 GMT):
just a quick question, I was trying to build the java chaincode jars locally as described in the readme. Running gradle with commands `clean build install` resulted in an error on the fabric-docker:buildImage task, ``` Task 'javadoc' not found in root project 'shim-src'. .. > Task :fabric-chaincode-docker:buildImage FAILED ``` When running `buildImage` only will pass. Is there any step that I need to go with first ?

c0deh0use (Sat, 16 May 2020 19:47:34 GMT):
just a quick question, I was trying to build the java chaincode jars locally as described in the readme. Running gradle with commands `clean build install` resulted in an error on the fabric-docker:buildImage task, ``` FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':fabric-chaincode-docker:buildImage'. > Could not build image: The command '/bin/bash -c gradle clean fabric-chaincode-protos:build fabric-chaincode-protos:install fabric-chaincode-protos:publishToMavenLocal fabric-chaincode-shim:build fabric-chaincode-shim:install fabric-chaincode-shim:publishToMavenLocal -x javadoc -x test -x checkstyleMain -x checkstyleTest' returned a non-zero code: 1 ... ``` When running `buildImage` only will pass. Is there any step that I need to go with first ?

c0deh0use (Sat, 16 May 2020 19:55:53 GMT):
running on the release-2.0x branch

c0deh0use (Sat, 16 May 2020 21:03:50 GMT):
ok, did a workaround and build separately shim & protos sub projects.

famar (Thu, 21 May 2020 07:48:04 GMT):
Has joined the channel.

famar (Thu, 21 May 2020 07:48:05 GMT):
Hi all, is there a way to read all the asset created in the ledger? I know i can read an asset pointing to an ID and if i have enumerated IDs i can scroll through them but if i have random IDs how can i read them all? Thanks

famar (Thu, 21 May 2020 07:48:05 GMT):
Hi all, is there a way to read all the asset created in the ledger? I know i can read an asset pointing to an ID and if i have enumerated IDs i can scroll through them but if i have random IDs how can i read them all? Thanks EDIT: i know i can use this code to read an asset: public Asset readAsset(Context ctx, String assetId){ Asset newAsset = Asset.fromJSONString(new String(ctx.getStub().getState(assetID),UTF_8)); return newAsset; }

famar (Thu, 21 May 2020 07:48:05 GMT):
Hi all, is there a way to read all the asset created in the ledger? I know i can read an asset pointing to an ID and if i have enumerated IDs i can scroll through them but if i have random IDs how can i read them all? Thanks EDIT: i know i can use this code to read an asset: public Asset readAsset(Context ctx, String assetId){ Asset newAsset = Asset.fromJSONString(new String(ctx.getStub().getState(assetID),UTF_8)); return newAsset; } but i need to read all the assets

famar (Mon, 01 Jun 2020 07:14:44 GMT):
Hello, can someone tell me what is the right syntax to use to query the ledger with getQueryResult() while usign vscode extension? Thanks

c0deh0use (Thu, 04 Jun 2020 07:45:28 GMT):
Hi Guys, I'm expecting execution of around 1-2 minutes time of execution when submitting transaction that stores around 150 large records. I'm trying to start to investigate from the chaincode but maybe there is a better place to start from

c0deh0use (Thu, 04 Jun 2020 07:46:24 GMT):
any suggestions ?

c0deh0use (Thu, 04 Jun 2020 07:50:16 GMT):
Running fabric 2.1.1, with 2 orgs and 5 orderers one peer per org.

rmnattas (Wed, 10 Jun 2020 17:15:35 GMT):
Has joined the channel.

darapich92 (Thu, 11 Jun 2020 04:54:27 GMT):
Hi everybody, I get an error when i want to import new library to chaincode. the message is

darapich92 (Thu, 11 Jun 2020 04:54:47 GMT):

Screenshot from 2020-06-11 13-54-03.png

darapich92 (Thu, 11 Jun 2020 04:55:04 GMT):
I hope someone will help me for this.

data_prime (Thu, 25 Jun 2020 19:02:35 GMT):
Has joined the channel.

data_prime (Thu, 25 Jun 2020 19:24:00 GMT):
I want to build a custom chaincode from scratch that doesn't rely on fabric-samples. What do I need to do this? I have Java openjdk 11 and gradle 5.3. After running "gradle init" what dependencies do I need to add? Do I create a "main" method to keep the smart contract running or must the smart contract only implement or extend ContractInterface and the custom methods defined within? Any answers are much appreciated. Thanks in advance! :)

ViokingTung (Mon, 29 Jun 2020 08:38:30 GMT):
Has joined the channel.

SuneetBendre (Wed, 08 Jul 2020 18:03:23 GMT):
Your application 'Main' method is not required. You will have to implement contractInterface. Shim library has 'Main' function to load your smart contract 'ContractRouter.java' public static void main(String[] args) { ContractRouter cfc = new ContractRouter(args); cfc.findAllContracts(); logger.fine(cfc.getRoutingRegistry().toString()); MetadataBuilder.initialize(cfc.getRoutingRegistry(), cfc.getTypeRegistry()); logger.info(() -> { return "Metadata follows:" + MetadataBuilder.debugString(); }); cfc.startRouting(); }

SuneetBendre (Wed, 08 Jul 2020 18:05:20 GMT):
Copy gradle file from sample repo. all dependency and build configuration are mandatory

SuneetBendre (Wed, 08 Jul 2020 18:07:24 GMT):
Please share more details, i can take to look to resolve

SuneetBendre (Wed, 08 Jul 2020 18:12:49 GMT):
Can you please point to your chaincode src?

mahoney1 (Thu, 23 Jul 2020 08:21:47 GMT):
Reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community - agenda is here: https://wiki.hyperledger.org/display/fabric/Agendas:+Fabric+Application+Developer+Community+Call+Meetings

arturocabre (Mon, 27 Jul 2020 20:39:09 GMT):
Has joined the channel.

AshutoshKumar7 (Tue, 04 Aug 2020 14:59:08 GMT):
Has joined the channel.

ongchinkai (Thu, 06 Aug 2020 10:37:07 GMT):
Has joined the channel.

ongchinkai (Thu, 06 Aug 2020 10:37:07 GMT):
org.hyperledger.fabric.shim.ledger.KeyModification.getTimestamp() - what timestamp does this represent?

ongchinkai (Thu, 06 Aug 2020 10:43:05 GMT):
stub.getHistoryForKey("keyname").forEach(action -> { System.out.println(action.getTimestamp()); } );

ongchinkai (Thu, 06 Aug 2020 10:46:14 GMT):
What would the last action in this list represent? Would it be the committing of the block to the ledger?

mbwhite (Thu, 06 Aug 2020 14:17:26 GMT):
Like the transaction timestamp, it comes from the transaction that was put together by the originating client. It's not time committed or similar.

deployer21 (Mon, 17 Aug 2020 15:01:00 GMT):
Has joined the channel.

mahoney1 (Thu, 03 Sep 2020 13:54:14 GMT):
Reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community

nkl199 (Thu, 03 Sep 2020 15:56:59 GMT):
Has joined the channel.

Jakeeyturner (Mon, 07 Sep 2020 10:12:56 GMT):
Has joined the channel.

lquintai (Mon, 14 Sep 2020 08:15:34 GMT):
Has joined the channel.

mahoney1 (Thu, 17 Sep 2020 11:15:02 GMT):
Reminder that the Fabric Application Developer Community call today is at 3pm UTC (4pm UK, 11am ET, 8am PT) Agenda: https://wiki.hyperledger.org/display/fabric/Agendas%3A+Fabric+Application+Developer+Community+Call+Meetings - Join via Zoom from PC, Mac, Linux, iOS or Android: https://zoom.us/my/hyperledger.community

mahoney1 (Thu, 17 Sep 2020 15:26:34 GMT):
ok all - so the meeting ^^ is open now - password is THVoQXVHYUVWbHIwOFdvME0xN0lCZz09 when prompted - apologies - this was prompted by changes that Zoom (the host) have made, apparently

erin-hughes (Mon, 21 Sep 2020 07:56:55 GMT):
Has joined the channel.

letch2010 (Tue, 22 Sep 2020 15:21:02 GMT):
Has joined the channel.

deployer21 (Wed, 23 Sep 2020 18:54:53 GMT):
Hello guys, I'm having trouble with fabric-samples default chaincode when querying the GetAllAssets() method. Here's my request: -isInit -c '{"Args":["AssetTransfer:GetAllAssets", "{}"]}' , here's the error: Error: >> endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error during contract method execution" << I haven't even change the default code, has anyone felt the same problem? @Transaction(intent = Transaction.TYPE.EVALUATE) public String GetAllAssets(final Context ctx) { ChaincodeStub stub = ctx.getStub(); List queryResults = new ArrayList(); // To retrieve all assets from the ledger use getStateByRange with empty startKey & endKey. // Giving empty startKey & endKey is interpreted as all the keys from beginning to end. // As another example, if you use startKey = 'asset0', endKey = 'asset9' , // then getStateByRange will retrieve asset with keys between asset0 (inclusive) and asset9 (exclusive) in lexical order. QueryResultsIterator results = stub.getStateByRange("", ""); for (KeyValue result: results) { Asset asset = genson.deserialize(result.getStringValue(), Asset.class); queryResults.add(asset); System.out.println(asset.toString()); } final String response = genson.serialize(queryResults); return response; }

mbwhite (Thu, 24 Sep 2020 08:38:32 GMT):
@deployer21 Hello; first step is to check the chaincode container see what errors are there (assume that you've run other methods ok?)

deployer21 (Thu, 24 Sep 2020 12:47:16 GMT):
Hello @mbwhite , yes, all the other methods executed fine! I caught the error, is in the method: genson.deserialize(result.getStringValue(), Asset.class); genson.deserialize() is generating an error during its execution.. Not when I run the tests battery, only when I invoke the chaincode, for no apparent reason.

mbwhite (Thu, 24 Sep 2020 13:20:14 GMT):
I'd suggest modifying the code to see what the result value is... is this the current master branch of fabric-samples?

deployer21 (Thu, 24 Sep 2020 13:23:15 GMT):
Thx @mbwhite for the reply! Is the current master. I just did that, by creating a simple example: BContract newContract = new BContract("contract1", "BlueEyes", 30); String newJSON = genson.serialize(newContract); var c = genson.deserialize(newJSON, BContract.class); The result is the same :/

mbwhite (Thu, 24 Sep 2020 13:25:37 GMT):
I'll need to refresh my memory of the code.. I'll take a look

deployer21 (Thu, 24 Sep 2020 13:39:00 GMT):
Of course, thank you in advance @mbwhite :+1:

deployer21 (Tue, 06 Oct 2020 10:42:34 GMT):
Still not having a solution for this probem.. can anyone help? have you had any issue with ChaincodeStub.getStateByRange("","") method?

icordoba (Sat, 24 Oct 2020 17:36:17 GMT):
Hi, after some time running a 1.4 blockchain network I need to create a new one for a new project. I have gone through version 2.2/2.2.1 but looks like java chaincode is still not supported. Can anybody confirm so I simply fall back to 1.4 for now? (I need java chaincode). Thanks.

andrew-coleman (Mon, 26 Oct 2020 11:22:11 GMT):
Yes, java chaincode is supported for v2.2 https://github.com/hyperledger/fabric-chaincode-java/tree/release-2.x

deployer21 (Mon, 26 Oct 2020 16:32:28 GMT):
Inside the same chaincode I've two Smart Contracts called BAssets and RAssets, which have some similar properties, like bAssetID and rAssetID, and other that are named the same like BAssets - enterprise, and RAssets - enterprise. For some reason, whenever I create a BAsset, a RAsset is also created with some of its fields filled with BAsset values.. Is it wrong to have equal keys among different contracts?

andrew-coleman (Wed, 28 Oct 2020 11:53:50 GMT):
If they are in the same chaincode then they will share the same key/value namespace. The separate contract classes are there to help you structure your code

heena066 (Mon, 02 Nov 2020 09:31:40 GMT):
Has joined the channel.

deployer21 (Mon, 02 Nov 2020 12:37:02 GMT):
Why if I invoke a POST method via terminal it executes instantly, and if I do it from an application, the operation takes 2-3 seconds?

deployer21 (Mon, 02 Nov 2020 12:38:43 GMT):
and I am not closing the connection after each operation.. Im saying that only the submitTransaction instruction takes that whole time

deployer21 (Mon, 02 Nov 2020 15:22:40 GMT):
Found the answer in other threads.. batch time was set to 2s by default.. setted it to 0.1s and boom!

icordoba (Sat, 07 Nov 2020 19:23:35 GMT):
Thanks @andrew-coleman . Do you (or anyone) know an example or tutorial to deploy v2.2 java chaincode as external Chaincode?

icordoba (Sun, 08 Nov 2020 12:18:46 GMT):
More over... is External Chaincode supported for Java language in Fabric 2.2?

OYamkovyi (Thu, 12 Nov 2020 13:18:45 GMT):
Has joined the channel.

lupass93 (Wed, 18 Nov 2020 17:02:53 GMT):
Hi at All! When Chaincode throw a ChaincodeException passing it the String Message and the String Payload of Message, the payload can retrieve from sdk client?

lupass93 (Wed, 18 Nov 2020 17:03:06 GMT):
(payload of Exception)

Darren-Matthews (Wed, 25 Nov 2020 20:51:08 GMT):
Has joined the channel.

james-wallis (Mon, 07 Dec 2020 10:44:17 GMT):
Has joined the channel.

mbwhite (Wed, 09 Dec 2020 14:36:34 GMT):
As mentioned on the community call now - finishing the LedgerAPI was mentioned; we've a lot of work on this done already - but if anybody would like to contribute here to get this completion happy to mentor.

alacambra (Wed, 23 Dec 2020 22:10:25 GMT):
Has joined the channel.

dyhack (Sun, 03 Jan 2021 11:11:33 GMT):

Clipboard - January 3, 2021 7:11 PM

dyhack (Sun, 03 Jan 2021 11:29:22 GMT):
Has joined the channel.

dyhack (Sun, 03 Jan 2021 11:29:23 GMT):
I have Solve this problem.maybe it can not suppot the java bigintger type ,when i use the String it's ok

Roger (Thu, 07 Jan 2021 07:26:15 GMT):
Has left the channel.

Sandyzhanghs (Sun, 10 Jan 2021 05:01:12 GMT):
Has joined the channel.

Kestutis_Gudynas (Tue, 12 Jan 2021 10:24:50 GMT):
Has joined the channel.

WilsonHUANGWS (Wed, 13 Jan 2021 09:54:12 GMT):
Has joined the channel.

Francesco_P (Thu, 14 Jan 2021 15:06:34 GMT):
Hi, could someone tell me if it's possibile to have more contracts on one channel? Thank oyu

Francesco_P (Thu, 14 Jan 2021 15:06:34 GMT):
Hi, could someone tell me if it's possibile to have more contracts on one channel? Thank you

Francesco_P (Thu, 14 Jan 2021 15:06:34 GMT):
Hi, could someone tell me where can I readsomeone about configuring more smart contracts in one chaincode?

Kestutis_Gudynas (Fri, 15 Jan 2021 10:20:47 GMT):
@Francesco_P, to include smart contract within chaincode, you can add additional methods to the chaincode file or, alternatively, if you already have a chaincode installed or instantiated on a network, you can modify the Java file and upgrade the instantiated chaincode.

Francesco_P (Fri, 15 Jan 2021 10:29:58 GMT):
@Kestutis_Gudynas you are right. All I had to do ,for calling from the client the new smart contract, is use a new method from the gateway that specify the chaincode name and the ALSO the contract name

skulos (Tue, 26 Jan 2021 11:55:45 GMT):
Has joined the channel.

dyhack (Fri, 29 Jan 2021 13:48:27 GMT):
Hello,Does Java chain code not support operations like new date()?

deployer21 (Fri, 29 Jan 2021 17:29:44 GMT):
It supports

deployer21 (Fri, 29 Jan 2021 17:29:44 GMT):
It supports, why?*

Daenerion (Sat, 06 Feb 2021 01:08:55 GMT):
Has joined the channel.

Daenerion (Sat, 06 Feb 2021 01:08:56 GMT):
Hey, i can anybody run fabcar chaincode? i am trying on fabric 2.1 to run java chaincodes and when i run test-network/network.sh deploCC -l java, i am getting errors. I am using clean ubuntu VM, and i didnt made any changes to the code when i pulled it from hyperledger git repo

kh_touati (Fri, 12 Feb 2021 19:48:56 GMT):
Has joined the channel.

kh_touati (Fri, 12 Feb 2021 19:48:56 GMT):
Dear All, I have a local library that was implemented to manage specific access control for our buisness service. I want to check if it will be possible to use it in a java chaincode. ==> Is it possible to import local library in a chaincode? Thanks

ndr_brt (Mon, 22 Feb 2021 12:50:51 GMT):
Has joined the channel.

Bolzo 1 (Wed, 10 Mar 2021 09:27:36 GMT):
Hi is the version 2.2 of java chaincode production-ready?

mbwhite (Wed, 10 Mar 2021 10:49:43 GMT):
HI - do you have a specific concern? 2.2 is the latest release.

Bolzo 1 (Wed, 10 Mar 2021 11:26:03 GMT):
I don't have any, the only thing that I care of is shipping a TLS version of the chaincode in production envirorment.

mbwhite (Wed, 10 Mar 2021 11:27:41 GMT):
2.2 is the LTS version of Fabric - and the related repos (chaincode/sdk etc) (https://www.hyperledger.org/blog/2020/07/20/new-release-hyperledger-fabric-2-2-lts)

Bolzo 1 (Wed, 10 Mar 2021 11:28:32 GMT):
Thanks for the reply, I wanted to be sure

nkaramolegos (Wed, 10 Mar 2021 14:53:53 GMT):
Has joined the channel.

nkaramolegos (Wed, 10 Mar 2021 14:53:54 GMT):
Hello, I am trying to build fabric-chaincode-java into a raspberry pi4. I have installed grpc version 1.37.0 so i change the fabric-chaincode-java/fabric-chaincode-protos/build.gradle https://github.com/hyperledger/fabric-chaincode-java/blob/aa6ededc8521c22bfa2f006375a40867dec57913/fabric-chaincode-protos/build.gradle#L66 to 1.37 version. So far so good. Now I am running ./gradlew clean build install and I have the following error 229 tests completed, 1 failed, 1 skipped The test that fails is: org.hyperledger.fabric.contract.ContractRouterTest > testStartingContractRouterWithStartingAChaincodeServer FAILED java.lang.AssertionError: Expected: is but: was at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at org.junit.Assert.assertThat(Assert.java:956) at org.junit.Assert.assertThat(Assert.java:923) at org.hyperledger.fabric.contract.ContractRouterTest.testStartingContractRouterWithStartingAChaincodeServer(ContractRouterTest.java:428) Any ideas on that?

nkaramolegos (Thu, 11 Mar 2021 17:13:04 GMT):
Please any help on that?

nkaramolegos (Fri, 12 Mar 2021 14:14:34 GMT):
Guys I really need help on that. Any ideas?

nkaramolegos (Wed, 17 Mar 2021 14:14:38 GMT):
No replies. Is this chat dead?

cmhacker (Sat, 20 Mar 2021 09:20:15 GMT):
Has joined the channel.

em927 (Wed, 07 Apr 2021 23:25:59 GMT):
Has joined the channel.

cmhacker (Thu, 08 Apr 2021 12:16:39 GMT):
I have successfully install install java chaincode on fabric 2.1 but when I am trying to update chaincode with new version, i am able to install it but gets stuck at the Org approval with error *Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': attempted to define the current sequence (1) for namespace tempTest, but: Version '1' != '2'* why >>

cmhacker (Thu, 08 Apr 2021 12:16:39 GMT):
I have successfully install install java chaincode on fabric 2.1 but when I am trying to update chaincode with new version, i am able to install it but gets stuck at the Org approval with error *Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': attempted to define the current sequence (1) for namespace tempTest, but: Version '1' != '2'* why ??

cmhacker (Thu, 08 Apr 2021 12:16:39 GMT):
I have successfully installed java chaincode on fabric 2.1 but when I am trying to update chaincode with the new version, I am able to install it but gets stuck at the Org approval with error *Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': attempted to define the current sequence (1) for namespace tempTest, but: Version '1' != '2'* why ??

nkl199 (Thu, 08 Apr 2021 16:17:47 GMT):
Has left the channel.

cmhacker (Fri, 16 Apr 2021 13:00:50 GMT):
Finally I figure it out. while packaging i was using the same label name.

cmhacker (Fri, 16 Apr 2021 13:00:50 GMT):
Finally I figure it out. while packaging I was using the same label name.

Sachith.Liyanagama (Mon, 03 May 2021 14:10:04 GMT):
Has joined the channel.

Sachith.Liyanagama (Mon, 03 May 2021 14:10:04 GMT):
Dear All, I've installed IBM plugin in a new pc and tried to install new chaincode on a newly created docker container. Apparently I get this error. _Failed to install on peer Org2 Peer with reason: Could not install smart contact received error: failed with status:500 ::failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: external builder failed: external builder failed to build: external builder 'java' failed: exit status 127_ *[chaincode.externalbuilder.java] waitForExit -> INFO 07e env: 'sh\r': No such file or directory command=build*

davidkel (Tue, 04 May 2021 13:56:55 GMT):
Using windows by any chance ?

neverbugme (Mon, 10 May 2021 23:39:56 GMT):
Has joined the channel.

neverbugme (Mon, 10 May 2021 23:39:57 GMT):
Hello, I am writing a chaincode (in Java) with a friend of mine. How can I enter both of our names and emails in the Contact annotation?

Sachith.Liyanagama (Fri, 28 May 2021 21:18:26 GMT):
yes

Sachith.Liyanagama (Fri, 28 May 2021 21:18:45 GMT):
Sorry for the delay I was stuck with some work.

davidkel (Fri, 28 May 2021 21:40:03 GMT):
It's likely you haven't configured git correctly as it's adding control characters (like `\r`) when you checkout the repo. Windows and Linux differ on how a new line is recognised. See https://hyperledger-fabric.readthedocs.io/en/release-2.2/prereqs.html?highlight=git%20windows#windows-extras as it may help

davidkel (Fri, 28 May 2021 21:40:03 GMT):
It's likely you haven't configured git correctly as it's adding control characters (like `\r`) when you checkout the repo. Windows and Linux (unix) differ on how a new line is recognised. See https://hyperledger-fabric.readthedocs.io/en/release-2.2/prereqs.html?highlight=git%20windows#windows-extras as it may help

indranil32 (Tue, 08 Jun 2021 08:18:29 GMT):
Has joined the channel.

indranil32 (Tue, 08 Jun 2021 08:18:32 GMT):
Under https://github.com/hyperledger there are many Java Client SDK projects like fabric-gateway / fabric-gateway-java / fabric-sdk-java... why are there so many Java clients ? how do I choose which one to use ?

zhenbing (Tue, 22 Jun 2021 15:19:41 GMT):
Again you need to increase sequence number to 2?

cmhacker (Wed, 23 Jun 2021 03:19:22 GMT):
Yes you need to increase the sequence number.

manish-sethi (Tue, 07 Sep 2021 15:12:37 GMT):
Has joined the channel.

vlaca (Mon, 13 Sep 2021 08:58:36 GMT):
Has joined the channel.

famar (Mon, 20 Sep 2021 10:31:29 GMT):
Hi all, i need help with getQueryResult(). I know that if i write something like this: QueryResultsIterator results = stub.getQueryResult("{\"selector\":{\"name\":\"" + myName + "\"}}"); i will search between all the assets that have tha param name set to myName. Now i have 3 different assets. How can i search, for example, for the name as in the previous query but only in one of these assets?

jkneubuhl (Mon, 18 Oct 2021 16:42:43 GMT):
Has joined the channel.

ravinayag (Mon, 18 Oct 2021 18:29:46 GMT):
Has joined the channel.

ravinayag (Mon, 18 Oct 2021 18:29:46 GMT):
Hi , Im getting this error when i declare as Int. Is chaincode only accepts in string format... ? ``` Driver.java:52: error: incompatible types: int cannot be converted to String return piecesCount; ...... incompatible types: Double cannot be converted to String ```

mr3e (Tue, 04 Jan 2022 09:26:42 GMT):
Has joined the channel.

mr3e (Tue, 04 Jan 2022 09:26:43 GMT):
Hello, I am a university student doing a blockchain mini-project and I am interested in this project. Is there anything missing in the implementation of the contract that I can contribute to and implement? Or is this project fully implemented?

bestbeforetoday (Wed, 12 Jan 2022 09:37:12 GMT):
I would suggest having a look at the issues list for the different language chaincode API projects: - https://github.com/hyperledger/fabric-chaincode-node/issues - https://github.com/hyperledger/fabric-chaincode-go/issues - https://github.com/hyperledger/fabric-contract-api-go/issues - https://github.com/hyperledger/fabric-chaincode-java/issues

rjones (Wed, 23 Mar 2022 17:35:18 GMT):

rjones (Wed, 23 Mar 2022 17:35:18 GMT):

rjones (Wed, 23 Mar 2022 17:35:18 GMT):