When attempting to compile my project on Corda Enterprise 4.1 for the first time this stack trace for a missing dependency came up.
How can I include the correct Caffeine dependency?
Could not resolve all files for configuration ':corda-domain:compileClasspath'.
> Could not find com.github.ben-manes.caffeine:caffeine:2.7.0-r3-fifty.
Searched in the following locations:
file:/C:/Users/syhashmi/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
file:/C:/Users/syhashmi/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
https://repo.maven.apache.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
https://repo.maven.apache.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
https://jcenter.bintray.com/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
https://jcenter.bintray.com/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
https://jitpack.io/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
https://jitpack.io/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
https://repo.spring.io/libs-snapshot/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
https://repo.spring.io/libs-snapshot/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
https://build.shibboleth.net/nexus/content/repositories/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
https://build.shibboleth.net/nexus/content/repositories/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
http://repository.mulesoft.org/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
http://repository.mulesoft.org/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
file:/C:/code-azure/lcacordapp/lib/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
file:/C:/code-azure/lcacordapp/lib/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
Required by:
project :corda-domain > com.r3.corda:corda-core:4.1```
As of Corda Enterprise 4.0 there is a patched version of Caffeine required to compile.
Documentation on how to add this dependency can be found here: https://docs.corda.r3.com/clientrpc.html#connecting-to-a-node-via-rpc
Related
I checked a couple of tutorials and then dove in to Refactor>Migrate to AndroidX. I imported ActivityCompat, ContextCompat and DrawableCompat.
But now I am stuck getting a compile completed because of this error:
AAPT: C:\Program Data\Android\QiewProjects\DBQiew\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v31\values-v31.xml:3: error: resource android:color/system_neutral1_1000 not found.
C:\Program Data\Android\QiewProjects\DBQiew\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v31\values-v31.xml:4: error: resource android:color/system_neutral1_900 not found.
C:\Program Data\Android\QiewProjects\DBQiew\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v31\values-v31.xml:5: error: resource android:color/system_neutral1_0 not found.
.
.
.
It continues on for about 21 missing items. It appears AndroidX is looking for color files that are missing.
I have spent hours looking for a similar posting, but there aren't any. I have even tried Invalidate caches/Restart but that changed nothing.
Please point me to an explanation to find the missing files or disable the hunt for them. BTW I am using Studio 4.1.2 and compile and target SDK versions 29.
It turned out I had to revise the compile and targetSDK versions from 29 to 31.
It was not mandatory, but I also upgraded the following versions in app/build.gradle:
androidx.appcompat.appcompat:1.0.0 -> 1.4.1
androidx.core.core:1.0.0 -> 1.7.0
androidx.constraintlayout.constraintlayout:1.1.2 -> 2.1.3
Trying to compile Corda from scratch. I cloned version 4.3 from Github. Details and error codes below.I am using Oracle java version 1.8. I have asked this question on slack as well but didn't find anyone who has faced this issue before.
Task :node-api-tests:test
net.corda.nodeapitests.internal.crypto.X509UtilitiesTest > create valid server certificate chain FAILED
java.security.cert.CertificateException at X509UtilitiesTest.kt:166
net.corda.nodeapitests.internal.crypto.X509UtilitiesTest > create valid self-signed CA certificate FAILED
java.security.cert.CertificateException at X509UtilitiesTest.kt:131
46 tests completed, 2 failed
Task :node-api-tests:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:node-api-tests:test’.
So it looks like you're trying to build Corda's source code. Most of the time you really won't need to do this. I'd recommend instead just taking a look at the Corda samples as they use gradle which will download the jars and compile the samples for you.
Here's a link to some of those sample repo's so you can try building off of them.
https://github.com/corda/samples-kotlin
https://github.com/corda/samples-java
All of them compile and run the same way so it shouldn't be too difficult to get running.
./gradlew deployNodes
and then
./build/nodes/runnodes
I have connected my Android application with firebase-database by putting this dependency (kapt 'com.google.firebase:firebase-database:16.0.1:15.0.0') but after that I am getting errors like the one mentioned in title also when I synchronized the project I am getting different errors like: Connection time out, Failed to resolved build listener.
Enabling/Disabling offline work and setting proxy in gradle.properties file doesn't work for me.
Also you guys have seen that I used 'kapt' in dependency as it is necessary to use, without it I am getting error "failed to resolve 15.0.0". Removing 15.0.0 doesn't work for me.
Error
Cause:org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;ing
I am using Android Studio 3.2 and sadly I can't update this version.
Gradle version: 5.1.1 and
Plugin version: 3.4.0
I am trying to run Corda nodes on macOS El Capitan with JDK 1.8.0_60 by following the instructions here: https://docs.corda.net/getting-set-up.html.
I am getting the following error:
CAPSULE EXCEPTION: Could not parse version: -9.0.1 while processing
system property java.home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
java.lang.IllegalArgumentException: Could not parse version: -9.0.1
How can I fix this?
Although its older thread, i encountered it today and stumbled upon this page and thought to share my findings.
Actually Oracle changed the numbering style from java9 (like 9.0.1) and it seems you have it installed. You will have to point to jdk 1.8.x so make it work until capsule is updated to work with java9.
Running Corda nodes requires a JDK version greater than JDK 8u121. If you upgrade your JDK, this error will disappear.
I am trying to setup a Flex/Java multi module project in Eclipse. Using Maven to run the build and generate the war file. The details of the versions I am using are as follows:
Flexmojos : 3.5.0
Flex framework/compiler : 4.5.1.21328
Target player : 10.2.0
And the playerglobal dependency in my pom file uses classifier as 10.2 with version 4.5.1.21328
Now when I run the build using 'mvn install', I get the following error:
[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:3.5.0:compile-swf
(default-compile-swf) on project client: TargetPlayer and
playerglobal dependency version doesn't match! Target player: 10.2.0,
player global: 10.2 -> [Help 1]
Any ideas why this might be happening?
I tried just playing around changing those version numbers, but still couldn't make it work for Flex 4.5.1. Please let me know how to go about this (and if you need more information). Thanks.
Regards
Basith
Have you tried simply referencing "10.2" instead of "10.2.0"? I think there was only one Flash player deployed with a 3-segment version number.