I’m running JDK 8 on Ubuntu 16.04.1 LTS and performed steps in the readme of yo-cordapp to download and build the following sample app:
The build ran okay until the testing step when the following message was generated:
net.corda.yo.YoTests > flowWorksCorrectly FAILED
java.util.concurrent.ExecutionException at Tests.kt:95
Caused by: java.lang.IllegalArgumentException
An additional message directed me to the following file:
Which I reviewed and found:
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Fiber class net.corda.node.services.statemachine.FlowStateMachineImpl has not been instrumented.
Before posting this question, I searched the forum and found Help with Flow testing where the answer was add the java agent to the command line with:
However, not sure if this solution applies in my case for the sample app which was built through the gradle wrapper as in:
- git clone https://github.com/roger3cev/yo-cordapp.git
- cd yo-cordapp
- ./gradlew deployNodes
Prior to this, I successfully ran the build for “cordapp-template-offline” on the same machine which succeeded and then used ./runnodes to start several nodes.
Any thoughts regarding the yo-cordapp build-test exception appreciated.