Unable to compile cordapp-example - gradle

Am new to Corda and IntelliJ. While following instructions at https://docs.corda.net/head/getting-set-up.html#run-from-intellij am unable to compile the Corda example app. Gradle sync is giving me the following exception
Warning:project ':kotlin-source': Unable to build Kotlin project configuration
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':kotlin-source:integrationTestCompileClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.bft-smart:library:master-v1.1-beta-g6215ec8-87.
Required by:
project :kotlin-source > net.corda:corda-node-driver:3.2-corda > net.corda:corda-test-utils:3.2-corda > net.corda:corda-node:3.2-corda
Any guidance on what i am doing wrong here?
If i go to https://jitpack.io/com/github/bft-smart/library/master-v1.1-beta-g6215ec8-87/library-master-v1.1-beta-g6215ec8-87.jar It says "Build failed. See the log at jitpack.io"
As a further update the https://jitpack.io/com/github/bft-smart/library/master-v1.1-beta-g6215ec8-87/build.log shows the build failing since 30th August.
Any guidance on how i can force all of Corda to refer another version for the BFT-smart version? master-v1.1-beta-g34864da-135 ?

This was raised as an issue here and fixed here
Take a look at this post on how to resolve

Related

gradle dependency fails but it's there

I have the following error (PLEASE NOTE the jar it says it could not find is different from the location jar name in this error...weird)...
* What went wrong:
A problem occurred evaluating project ':webserver:webpiecesServerBuilder:templateProject:WEBPIECESxAPPNAME'.
> Could not resolve all files for configuration ':webserver:webpiecesServerBuilder:templateProject:WEBPIECESxAPPNAME:runtime'.
> Could not find micrometer-core.jar (io.micrometer:micrometer-core:1.4.0-SNAPSHOT:20200320.152130-173).
Searched in the following locations:
https://repo.spring.io/libs-snapshot/io/micrometer/micrometer-core/1.4.0-SNAPSHOT/micrometer-core-1.4.0-20200319.235509-170.jar
A snapshot of the current contents of directory(in case this post last to tomorrow and a new snapshot is there) is the following...
I have no idea why it can't find 1.4.0-SNAPSHOT since my gradle file is simple and the dependency is simply
'io.micrometer:micrometer-core:1.4.0-SNAPSHOT'
I think it's a gradle daemon bug or something. I did rm -rf ./gradle/cache and then it broke with an exception
Caused by: java.lang.NoClassDefFoundError: build_a6ssp86bmi79bk936w466ea1t$_run_closure5$_closure11
at build_a6ssp86bmi79bk936w466ea1t$_run_closure5.doCall(/Users/dean/workspace/orderly/dataapi-all/dataapi/build.gradle:111)
at org.gradle.util.ClosureBackedAction.execute(ClosureBackedAction.java:71)
at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:154)
at org.gradle.util.ConfigureUtil.configureSelf(ConfigureUtil.java:130)
at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:587)
at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:91)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:103)
at org.gradle.api.internal.DefaultNamedDomainObjectCollection$ContainerElementsDynamicObject.tryInvokeMethod(DefaultNamedDomainObjectCollection.java:541)
at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
So then I killed the gradle daemons and voila, it's working again.

Android resource compilation failed - resource file not found

I'm trying to assemble an Android app in Bamboo server, but I'm getting this error when the assemble comand run. Note: It works perfectly in local.
Command running:
gradlew assembleDebug
And the error I get:
Caused by: org.gradle.internal.UncheckedException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\aa6199e981580f79dc21c6ea06a3575f\res\drawable-mdpi-v4\quantum_ic_skip_next_white_24.png: error: file not found.
I've checked for the resource and its use, but it's not from my project code. It belongs to an external library: play-services-cast-framework
I've been also checking other similar post, but the error can be caused for many resources reasons, so I've not found a solution.
Some solutions suggest that is a problem at some gradle plugin version, but I'm already using version 3.3.1
Any help or clue?
Thanks!

Maven repository down?

The maven repository appears to be down. Trying to fetch data from the following url results in an error:
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml
Is this temporary or does this have to do with crosswalk no longer being developed?
=> Errors executing Cordova commands:
While building Cordova app for platform Android:
Error:/Users/fullhdpixel/Projects/MyRoutes/.meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
> Could not resolve org.xwalk:xwalk_core_library:23+. Required by: :android:unspecified
> Could not resolve org.xwalk:xwalk_core_library:23+.
> Failed to list versions for org.xwalk:xwalk_core_library.
> Unable to load Maven meta-data from https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.
> Could not GET 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'. Received status code 503 from server: Service Unavailable
There is already an open issue in their jira and another one on github. I guess it should be fixed by tomorrow (monday) as none of their maintainers will work on a weekend, be patient.
As the project maintainers stated here there will be no new releases but the source and repos will still be available for development.
Edit:
You can find a workaround until the servers are up again here.
It seems all of https://download.01.org is down!!!
An error occurred while processing your request.
Reference #30.22688343.1504522521.5cd76e0

Sonar.Branch parameter is throwing error in SonarQube 5.0

People,
With new SonarQube version for C# plugin -Dsonar.branch=X parameter is throwing error. The error is as follows:-
Sonar failed with error: 'ERROR: Error during Sonar runner executionERROR: Unable to execute SonarERROR: Caused by: Fail to decorate 'org.sonar.api.resources.File#56b0f44f[key=Aspects/MethodPerformanceAttribute.cs,deprecatedKey=Aspects/MethodPerformanceAttribute.cs,path=Aspects/MethodPerformanceAttribute.cs,dir=Aspects,filename=MethodPerformanceAttribute.cs,language=C#]'ERROR: Caused by: Resource org.sonar.api.resources.File#56b0f44f[key=Aspects/MethodPerformanceAttribute.cs,deprecatedKey=Aspects/MethodPerformanceAttribute.cs,path=Aspects/MethodPerformanceAttribute.cs,dir=Aspects,filename=MethodPerformanceAttribute.cs,language=C#] was not found in InputPath cacheERROR
This error goes away and sonar run is succeessful if i remove the -Dsonar.branch parameter. Can someone provide more information on this.
This issue has been solved in SonarQube 5.1, see http://jira.codehaus.org/browse/SONAR-6250 for additional details.

how to run sakai custom tool from maven

mvn install sakai:deploy is running successfully but at run time it gives error
org.sakaiproject.portal.api.PortalHandlerException:
java.lang.IllegalArgumentException: Unable to find registered context
for tool with ID sakai.employee
at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:862)
caused by: java.lang.IllegalArgumentException: Unable to find
registered context for tool with ID sakai.employee
at ... (check the revision history for full stacktrace)
Check catalina.out for errors when you start Tomcat.
The tool web app has not started up.
You'll need to resolve those errors before the tool will load.

Resources