When corda is in devmode false it does not load my cordapps. the documentation briefly mentions signing but does not explain how to do it or what to do with the has after it has been signed. does any one know why they are not loading and if singing is the issue how to sign the cordapps and then add them to the cordaserver.
One of the reasons why cordapps may not be loaded is because of the minimum platform version of the cordapp. The minimum platform version is provided in the build.gradle file using the below:
cordapp {
info {
name "CorDapp Template"
vendor "Corda Open Source"
targetPlatformVersion [TargetPlatformVersion]
minimumPlatformVersion [MinimumPlatformVersion]
}
}
The Corda node doesn't load a cordapp if the node's platform version is less than the minimum platform version.
Related
I want to make a 2D game for a project that belongs to my university. So I decided to use JavaFX and FXGL library. I got a test basic project from FXGL Git repository and tried to run it. When I run this project FXGL warns that it could not load texture bucket.png. Here is the complete log message:19:54:36.901 [FXGL Background Thread 1 ] WARN FXGLAssetLoaderServi - Failed to load texture bucket.png Error: java.lang.IllegalArgumentException: Asset "/assets/textures/bucket.png" was not found!Here is my project structure: I use Oracle JDK 14, OpenJFX 15, Gradle as build tool and IntelliJ IDEA And module-info.java class:
module hellofx {
requires com.almasb.fxgl.all;
exports org.openjfx;
}
After spending several hours for finding the problem, as #Slaw mentioned in the comments section, I found that module descriptor file (module-info.java) should be changed to the following format:
open module hellofx {
requires com.almasb.fxgl.all;
}
I have downloaded the corda-tools-explorer-4.6.jar and want to install it on my local machine. While executing the command java -jar corda-tools-explorer-4.6.jar, I am getting the below error message.
Error: Could not find or load main class net.corda.explorer.Main
Please help me to resolve the issue as I haven't got any solution to it.
It looks like based on the comments there's a couple questions here.
For how to run corda:
Generally you're going to want to run your corda projects using gradle to build them. Make sure you include the correct dependencies for each module of the cordapp (remember to double check the build.gradle files of contracts and workflows). For a good example of this check the java cordapp template here: https://github.com/corda/cordapp-template-java/.
You'll want to make sure you include all the corda dependencies, those look something like this:
//Module dependencis
dependencies {
// Corda dependencies.
cordaCompile "$corda_core_release_group:corda-core:$corda_core_release_version"
cordaCompile "$corda_release_group:corda-node-api:$corda_release_version"
cordaRuntime "$corda_release_group:corda:$corda_release_version"
// CorDapp dependencies.
cordapp project(":workflows")
cordapp project(":contracts")
cordaCompile "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
cordaCompile "org.apache.logging.log4j:log4j-web:${log4j_version}"
cordaCompile "org.slf4j:jul-to-slf4j:$slf4j_version"
}
The guide for using the new node explorer is here in the docs (it's open source): https://github.com/corda/node-explorer#downloading-the-node-explorer-binaries
Just download the binary and supply the node connection details.
Good luck and Happy holidays!
I was able to build a cordapp using Accounts by following the steps at https://github.com/corda/accounts.
This cordapp was building and running until 03/16/2020, but since 03/20/2020 I am seeing errors in my CI builds because https://ci-artifactory.corda.r3cev.com/artifactory/corda-lib-dev/com/r3/corda/lib/accounts/accounts-contracts/1.0-RC04/accounts-contracts-1.0-RC04.jar cannot be accessed. I get a 409 response now, how can I resolve this?
{
"errors" : [ {
"status" : 409,
"message" : "The repository 'corda-lib-dev' rejected the resolution of an artifact 'corda-lib-dev:com/r3/corda/lib/accounts/accounts-contracts/1.0-RC04/accounts-contracts-1.0-RC04.jar' due to conflict in the snapshot release handling policy."
} ]
}
My build.gradle has
accounts_release_version = '1.0-RC04'
accounts_release_group = 'com.r3.corda.lib.accounts'
confidential_id_release_group = "com.r3.corda.lib.ci"
confidential_id_release_version = "1.0-RC03"
repositories {
maven { url 'http://ci-artifactory.corda.r3cev.com/artifactory/corda-lib-dev' }
maven { url 'http://ci-artifactory.corda.r3cev.com/artifactory/corda-lib' }
}
My local builds on my development environment work fine, I assume because I already have the jars in my .m2
Artifactory configuration has been changed to enforce separation between release and snapshot repositories. corda-lib-dev is a snapshot repo and CorDapp developers should not be developing against these.
Releases and release candidates will be available in corda-lib going forward.
Kindly use corda-lib, and develop again release 1.0.
The pom file with RC04 is set to return 409. I assume Corda's way to disallow use of RC04. May be RC03 is also the same. I just tried this today and saw the repository pom files.
Use "1.0" instead of "1.0-RC03"
I am building a CorDapp against Corda Enterprise. I get the following error messaged when I build my CorDapp:
CordApp's vendor is "Unknown". Please specify it in "cordapp.info.vendor".
How do I specify the CorDapp's vendor?
As of Corda Enterprise V3.1, you can specify the CorDapp's vendor my adding the following closure to your build.gradle file:
cordapp {
info {
name "My CorDapp"
vendor "My Company"
version "1.0.1"
}
}
Is this documented anywhere besides stackoverflow?
I'm trying to publish to bintray a relase for my library. I already released several versions till now.
java.lang.RuntimeException: error uploading to https://api.bintray.com/maven/raisercostin/maven/maven/org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom:
{"message":"Unable to upload files: Maven group, artifact or version defined in the pom file do not match the file path 'org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom'"}
at bintray.BintrayMavenRepository.put(Resolver.scala:27)
at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:234)
I'm using bintray-sbt via project/plugins.sbt
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")
The project with full details is hosted on github/jedi-io.
I noticed a double maven/maven in the api url and tried to "fix" it using a custom bintray-sbt and it didn't work with either: https://api.bintray.com/maven/raisercostin/maven/org/raisercostin/jedi-io_2.10/0.22/jedi-io_2.10-0.22.pom
As a workaround I enabled publishing ivy style with publishMavenStyle := false and defined an additional ivy resolver in the using app resolvers += Resolver.url("raisercostin ivy resolver", url("http://dl.bintray.com/raisercostin/maven"))(Resolver.ivyStylePatterns)