Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sonataflow] Native build failing in examples with persistence #2045

Open
gmunozfe opened this issue Dec 20, 2024 · 0 comments
Open

[sonataflow] Native build failing in examples with persistence #2045

gmunozfe opened this issue Dec 20, 2024 · 0 comments
Assignees

Comments

@gmunozfe
Copy link

gmunozfe commented Dec 20, 2024

Describe the bug

QE nightlies are failing for native builds with persistence in serverless-workflow examples

For serverless-workflow-callback-quarkus:

18:53:37  [INFO] Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.flywaydb.core.internal.scanner.classpath.ClassPathScanner.findResourceNamesAndParentURLs() 
18:53:37  [INFO] Parsing context:
18:53:37  [INFO]    at org.flywaydb.core.internal.scanner.classpath.ClassPathScanner.findResourceNamesAndParentURLs(ClassPathScanner.java:133)

[INFO] Caused by: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: org.flywaydb.core.internal.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner.<init>(). This error is reported at image build time because class org.flywaydb.core.internal.scanner.classpath.ClassPathScanner is registered for linking at image build time by command line
18:53:37  [INFO] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.reportUnresolvedElement(SharedGraphBuilderPhase.java:333)

For serverless-workflow-data-index-quarkus:

[INFO] Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.flywaydb.core.FlywayExecutor.createResourceAndClassProviders(boolean) 
18:59:39  [INFO] Parsing context:
18:59:39  [INFO]    at org.flywaydb.core.FlywayExecutor.createResourceAndClassProviders(FlywayExecutor.java:234)

INFO] Caused by: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: org.flywaydb.core.internal.scanner.cloud.s3.AwsS3Scanner.<init>(java.nio.charset.Charset, boolean). This error is reported at image build time because class org.flywaydb.core.internal.scanner.Scanner is registered for linking at image build time by command line
18:59:39  [INFO] 	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.reportUnresolvedElement(SharedGraphBuilderPhase.java:333)

Other examples are also failing when using profile -Ppersistence in the native build generation. It seems related to KIE flyway initializer addon change apache/incubator-kie-issues#1483

Expected behavior

Native build must be generated correctly without errors.

Actual behavior

[ERROR] The following builds failed:
[ERROR] *  kogito-examples-999.0.0.redhat-2024121816/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml
[ERROR] *  kogito-examples-999.0.0.redhat-2024121816/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml

How to Reproduce?

In one of those examples execute
mvn clean package -Pnative
or
mvn clean package -Pnative -Ppersistence
if the persistence profile needs to be activated

Trying with different builder images give the same result, you can add following parameters in the call:

-Dquarkus.native.builder-image=registry.access.redhat.com/quarkus/mandrel-22-rhel8:22.3
-Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21
-Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:24.0-java22

Output of uname -a or ver

x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.11" 2024-04-16

GraalVM version (if different from Java)

Java version: 21.0.5+11-LTS, vendor version: Mandrel-23.1.5.0-Final

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

999-SNAPSHOT (main)

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant