Hyperledger fabric 在Hyperledger结构中使用Idemix时,链码语言是否有任何限制? 在Hyperledger结构中使用Idemix提交交易

Hyperledger fabric 在Hyperledger结构中使用Idemix时,链码语言是否有任何限制? 在Hyperledger结构中使用Idemix提交交易,hyperledger-fabric,chaincode,Hyperledger Fabric,Chaincode,我一直在hyperledger fabric v2.2中探索idemix。我尝试通过对等cli将事务作为idemix标识提交,但当chaincode在Java或Javascript中时,它会返回一个错误,但当使用Go chaincode时,它会工作。因此,我想知道,如果使用idemix标识提交事务,那么使用的链码语言是否有任何限制。以下是收到的日志部分 java的错误日志 Cli 链码容器 javascript的错误日志 Cli 链码容器 设置信息 结构版本:2.2 使用idemixgen工具

我一直在hyperledger fabric v2.2中探索idemix。我尝试通过对等cli将事务作为idemix标识提交,但当chaincode在Java或Javascript中时,它会返回一个错误,但当使用Go chaincode时,它会工作。因此,我想知道,如果使用idemix标识提交事务,那么使用的链码语言是否有任何限制。以下是收到的日志部分

java的错误日志 Cli 链码容器 javascript的错误日志 Cli 链码容器 设置信息
  • 结构版本:2.2
  • 使用idemixgen工具生成的idemix标识
  • X.509使用cryptogen工具生成的身份
  • 使用对等链码调用命令调用链码
  • 链码:资产转移基础
  • 链码语言:java、javascript
  • 在docker compose上使用结构部署
工具书类

Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Could not create new client identity"
11:42:24:528 SEVERE  org.hyperledger.fabric.Logger error Could not create new client identityorg.hyperledger.fabric.contract.ContractRuntimeException: Could not create new client identity
    at org.hyperledger.fabric.contract.Context.<init>(Context.java:59)
... 11 more
Caused by: java.io.IOException: Empty input
    at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:106)
    ... 14 more
caused by ..Could not parse certificate: java.io.IOException: Empty input java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Empty input
    at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:110)
    at java.base/java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:355)
...
2020-09-21 11:42:24.396 UTC [endorser] callChaincode -> INFO 06b finished chaincode: basic duration: 104ms channel=mychannel txID=5ec99579
2020-09-21 11:42:24.398 UTC [endorser] SimulateProposal -> ERRO 06c failed to invoke chaincode basic, error: transaction returned with failure: Could not create new client identity
github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult
    /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:182
...
Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error: Failed to find start line or end line of the certificate."
2020-09-22T08:41:44.648Z error [c-api:contracts-spi/chaincodefromcontract.js]     [mychannel-a91f4fa4] Error: Failed to find start line or end line of the certificate.
2020-09-22T08:41:44.652Z error [c-api:lib/handler.js]                             [mychannel-a91f4fa4] Calling chaincode Invoke() returned error response [Error: Failed to find start line or end line of the certificate.
    at normalizeX509 (/usr/local/src/node_modules/fabric-shim/lib/chaincode.js:387:15)
    at new ClientIdentity (/usr/local/src/node_modules/fabric-shim/lib/chaincode.js:258:32)
    at ChaincodeFromContract.invokeFunctionality (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/chaincodefromcontract.js:354:35)
    at ChaincodeFromContract.Invoke (/usr/local/src/node_modules/fabric-shim/lib/contract-spi/chaincodefromcontract.js:315:21)
    at handleMessage (/usr/local/src/node_modules/fabric-shim/lib/handler.js:602:47)
    at ChaincodeMessageHandler.handleTransaction (/usr/local/src/node_modules/fabric-shim/lib/handler.js:390:9)
    at ClientDuplexStreamImpl.<anonymous> (/usr/local/src/node_modules/fabric-shim/lib/handler.js:330:30)
    at ClientDuplexStreamImpl.emit (events.js:311:20)
    at addChunk (_stream_readable.js:294:12)
    at readableAddChunk (_stream_readable.js:275:11)]. Sending ERROR message back to peer
2020-09-22 08:41:44.658 UTC [endorser] callChaincode -> INFO 06c finished chaincode: basic duration: 25ms channel=mychannel txID=a91f4fa4
2020-09-22 08:41:44.658 UTC [endorser] SimulateProposal -> ERRO 06d failed to invoke chaincode basic, error: transaction returned with failure: Error: Failed to find start line or end line of the certificate.
github.com/hyperledger/fabric/core/chaincode.processChaincodeExecutionResult
    /go/src/github.com/hyperledger/fabric/core/chaincode/chaincode_support.go:182
...