Comments (7)
@yanhuibin315 could you provide me more details on the issue. It can be made into a non-static function with necessary code changes.
from blockchain-application-using-fabric-java-sdk.
the all details:
[root@localhost network_resources]# java -cp culebao.jar main.java.org.app.chaincode.invocation.QueryChaincode
Dec 10, 2018 9:15:39 PM main.java.org.app.util.Util deleteDirectory
INFO: Deleting - admin.ser
Dec 10, 2018 9:15:39 PM main.java.org.app.util.Util deleteDirectory
INFO: Deleting - org1
Dec 10, 2018 9:15:39 PM main.java.org.app.util.Util deleteDirectory
INFO: Deleting - users
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Dec 10, 2018 9:15:47 PM main.java.org.app.client.CAClient enrollAdminUser
INFO: CA -http://localhost:7054 Enrolled Admin.
org.hyperledger.fabric.sdk.exception.TransactionException: sendDeliver time exceeded for orderer
at org.hyperledger.fabric.sdk.OrdererClient.sendDeliver(OrdererClient.java:274)
at org.hyperledger.fabric.sdk.Orderer.sendDeliver(Orderer.java:165)
at org.hyperledger.fabric.sdk.Channel.getLatestBlock(Channel.java:1074)
at org.hyperledger.fabric.sdk.Channel.getConfigurationBlock(Channel.java:898)
at org.hyperledger.fabric.sdk.Channel.parseConfigBlock(Channel.java:826)
at org.hyperledger.fabric.sdk.Channel.initialize(Channel.java:526)
at main.java.org.app.chaincode.invocation.QueryChaincode.selectRuleHistory(QueryChaincode.java:307)
at main.java.org.app.chaincode.invocation.QueryChaincode.main(QueryChaincode.java:65)
from blockchain-application-using-fabric-java-sdk.
@yanhuibin315 try increasing the proposal wait time to see if it resolves the issue.
request.setProposalWaitTime(1000);
from blockchain-application-using-fabric-java-sdk.
Sorry, I tried to increase the prososal wait time to 100000000, but I got the same wrong message like that ::
[root@localhost network_resources]# java -cp culebao.jar main.java.org.app.chaincode.invocation.QueryChaincode
Dec 11, 2018 2:53:44 PM main.java.org.app.util.Util deleteDirectory
INFO: Deleting - users
log4j:WARN No appenders could be found for logger (org.hyperledger.fabric.sdk.helper.Config).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Dec 11, 2018 2:53:45 PM main.java.org.app.client.CAClient enrollAdminUser
INFO: CA -http://localhost:7054 Enrolled Admin.
org.hyperledger.fabric.sdk.exception.TransactionException: Bad newest block expected status 200 got 404, Channel mychannel
at org.hyperledger.fabric.sdk.Channel.getLatestBlock(Channel.java:1085)
at org.hyperledger.fabric.sdk.Channel.getConfigurationBlock(Channel.java:898)
at org.hyperledger.fabric.sdk.Channel.parseConfigBlock(Channel.java:826)
at org.hyperledger.fabric.sdk.Channel.initialize(Channel.java:526)
at main.java.org.app.chaincode.invocation.QueryChaincode.selectRuleHistory(QueryChaincode.java:307)
at main.java.org.app.chaincode.invocation.QueryChaincode.main(QueryChaincode.java:65)
from blockchain-application-using-fabric-java-sdk.
But if I make the function to static . That would be ok
from blockchain-application-using-fabric-java-sdk.
WOWWW ! I miss the step to createchannel , and now I process the function to non-static. Thank you ~~
from blockchain-application-using-fabric-java-sdk.
Closing the issue, as it worked for you. Thanks.
from blockchain-application-using-fabric-java-sdk.
Related Issues (20)
- Output doesn't match with the data in the ledger HOT 3
- Error when invoke chaincode HOT 2
- Wrong 'package name' convention: org.app.* HOT 3
- how to create new organization and peers? HOT 9
- CreateChannel Error when I re-generate the artifacts HOT 2
- Deploy and Instantiate the chaincode when I run the command HOT 6
- Problem enrolling when using Identity Mixer HOT 2
- Something wrong when i use DeployInstantiateChaincode HOT 20
- blockchain-application-using-fabric-java-sdk HOT 3
- How do I start this project using byfn network? HOT 2
- Is there a way to attach a listener for new data inserted into the channel? HOT 2
- Error Input byte array has incorrect ending byte at 1748 HOT 2
- Proposal response is invalid error when I invoke chaincode HOT 4
- Error reading configuration: While parsing config: yaml: unknown anchor 'OrdererDefaults' referenced
- Cannot create channel HOT 7
- Create/Enroll User Eclipse Problem
- Losing actual error message sent by chaincode.
- Java Chaincode remote debug
- Java chaincode instantiation from Java SDK HOT 5
- DeployInstantiateChaincode problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockchain-application-using-fabric-java-sdk.