Kogito processes build failing - enum mismatch - quarkus

Using Quarkus version 2.7.3.Final, the build is failing because of the 2 different enums value field clashing.
Java 11
Error details:
Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.processes.deployment.ProcessesAssetsProcessor#postGenerationProcessing threw an exception: org.infinispan.protostream.DescriptorParserException: Enum value org.kie.kogito.app.Level.value clashes with enum value org.kie.kogito.app.Error422Code.value
Is it a known issue?
Is there any workaround to use the enums?

I managed to easily reproduce the issue and created the following JIRA to track: https://issues.redhat.com/browse/KOGITO-7063

Related

gradle7.4.2 can not implementation local jar

gradle7.4.2 can not implementation local jar
the error is npe.
* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':client:rest'.
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:116)
Caused by: java.lang.NullPointerException
I need to use local jar into project, used gradle 5.4.2 is success, but use 7.4.2, always error...
I use many method to test, but can not access...
enter image description here
how to handle the exception?
thanks~~~

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!

Unable to compile cordapp-example

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

Could not create task of type 'ShadowJar'

I have this error:
ERROR
I checked my Eclipse preferences/Gradle, and the the Gradle directory is well set.
Besides, I have this stack error in my console when I try to refresh my project:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\java\admin\build.gradle' line: 6
* What went wrong:
A problem occurred evaluating project ':admin'.
> Failed to apply plugin [class 'com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin']
> Could not create task of type 'ShadowJar'.
Do you have any idea of what's happening here?
Thanks!
Gradle 2.11 breaks compatibility with shadowjar version 1.2.2. You can fix this by updating to shadowjar version 1.2.3.
Source: https://github.com/johnrengelman/shadow/commit/918a649b608f34dc0902d8d7aba21326ae5dfe8d

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.

Resources