corda / bootcamp-cordapp Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
I am using JDK 1.8 version and following all the README.md steps.
On running the nodes, pop up windows come for Notary, PartyA, PartyB and PartyC properly.
Terminal for PartyA - trying to issue the amount to PartyC
Fri Jun 12 11:13:47 IST 2020>>> start TokenIssueFlowInitiator owner: PartyC, amount: 1000
Starting
Terminal for PartyC - trying to check the vault of PartyC
Fri Jun 12 11:16:17 IST 2020>>> run vaultQuery contractStateType: bootcamp.TokenState
RPC failed: net.corda.core.CordaRuntimeException: java.lang.IllegalArgumentException: bootcamp.TokenState is not a net.corda.core.contracts.ContractState
This error is actually coming for all the nodes.
TokenState.java - This file has TokenState implementing ContractState
@BelongsToContract(TokenContract.class)
public class TokenState implements ContractState {
private final Party issuer;
private final Party owner;
private final int amount;
private final List<AbstractParty> participants;
public TokenState(Party issuer, Party owner, int amount){
this.issuer = issuer;
this.owner = owner;
this.amount = amount;
this.participants = new ArrayList<>();
participants.add(issuer);
participants.add(owner);
}
@NotNull
@Override
public List<AbstractParty> getParticipants() {
return Arrays.asList(issuer, owner);
}
public Party getIssuer() {
return issuer;
}
public Party getOwner() {
return owner;
}
public int getAmount() {
return amount;
}
}
What could be the issue here?
Sorry to bother you....I really encounter trouble.
In the begining, when I want to run ProjectImportedOKTest, the intellJ idea will tell me:
next, I choose
Use classpath of module:bootcamp-cordapp-4
JRE to be 1.8,
like the next picture, however, the intellJ idea will still tell me:
Warning:Class 'ProjectImportedOkTest' not found in module 'bootcamp-cordapp-4'
If I choose the other options, the intellJ idea will still warn me, could you tell me how to solve it?
sorry to bother, not only I'm a beginner of corda, but also one of java.
Hi
I am facing the issue in calling the Art project code.
start ArtFlowInitiator title: isha, artist: PartyA, newOwner: PartyB
Error says this
`[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
[ERROR] 15:15:10+0530 [Node thread-1] proxies.ExceptionSerialisingRpcOpsProxy.log - Error during RPC invocation [errorCode=1j2bz3l, moreInformationAt=https://errors.corda.net/OS/4.0/1j2bz3l] {actor_id=internalShell, actor_owning_identity=O=Notary, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=ebeb4248-260d-4af3-9cda-06a579efc8ab, invocation_id=5eede5df-7c2e-44f9-b4d5-b2446cfe01d8, invocation_timestamp=2019-03-27T09:45:09.482Z, origin=internalShell, session_id=99f38c9a-cfee-4f1e-b324-2baafb0c9b63, session_timestamp=2019-03-27T09:42:57.390Z, thread-id=140}
➡️ Starting
🚫 Done
☠ The piece of art was not found.
`
Can you please help me with the issue.
The section in the README "Updating for offline use" is redundant.
Once you have run the project once all your dependencies will be cached locally by gradle anyway.
This section is misleading and redundant and should be removed.
You should also remove the following lines in the build.gradle
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L16
flatDir { dirs "lib/dependencies" }
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L20
classpath fileTree(dir: 'lib/dependencies', include: '*.jar')
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L35
flatDir { dirs "${project.rootProject.projectDir}/lib/dependencies" }
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L66
compileClasspath fileTree(dir: 'lib/dependencies', include: '*.jar')
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L131-L139
task gatherDependencies(type: Copy) {
into "lib/dependencies"
from buildscript.configurations.classpath
from configurations.runtime
from configurations.compile
from configurations.testCompile
from configurations.testRuntime
from configurations.quasar
}
Is it really necessary to store this big file in the source code?
https://github.com/corda/bootcamp-cordapp/blob/master/gradle/wrapper/gradle-4.4.1-all.zip
Feel free to split this out into lots of smaller issues.
Referring to the v4 branch.
The wrong version of corda is specified:
corda_release_version = '4.0-SNAPSHOT'
corda_gradle_plugins_version = '4.0.37'
There are unnecessary repos.
mavenLocal()
is only useful for R3 developers using snapshots.
flatDir { dirs "lib/dependencies" }
is completely unnecessary see #6 for further details
This whole section should be removed
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L52-L63
sourceSets {
main {
resources {
srcDir "../config/dev"
}
}
test {
resources {
srcDir "../config/test"
}
}
}
In this particular case there is only one module so you don't need it anyway.
In the general case it causes circular dependencies in IDEs and confusion with users as evidenced on Slack.
The only purpose of it is to not duplicate logging config.
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L83
deployNodesJava
can just be deployNodes
like the kotlin project.
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L84
directory "./build/nodes"
is the default so doesn't need to be specified.
https://github.com/corda/bootcamp-cordapp/blob/v4/build.gradle#L90
"$project.group:cordapp:$project.version"
the project name is not cordapp
There is no gradle.properties
specifying the project group, name, version.
There is no need to repeat the cordapp[]
section in each node when you could do:
nodeDefaults {
projectCordapp {
deploy = true
}
}
Why are there no rpc settings for the notary?
It would be convenient if the web resources links were clickable. e.g.
"Key Concepts docs (docs.corda.net/key-concepts.html)"
In "Running our CorDapp" the deployNodes gradle target is wrong
says:
macOS: ./gradlew deployNodesJava
should be:
macOS: ./gradlew deployNodes
possibly same for windows - can't comment :)
Hi, I was following the bootcamp videos and on video 17 Corda Bootcamp 17 - Flows Exercises I ran into this error why running FlowTests.
I did try to edit configurations as the video suggests, but still the same error (which is different than the error presented in the video).
Also worth noting that I only get the same error after adding the configuration if I try to run an individual test. If I try to run the entire class, I get the message "Test events were not received".
Any idea on what might be the reason?
This line's exception comments is about output
requirement. But getInputs()
is used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.