gmunozfe opened a new issue, #2045:
URL: https://github.com/apache/incubator-kie-kogito-examples/issues/2045

   ### 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 https://github.com/apache/incubator-kie-issues/issues/1483
   
   
   ### Expected behavior
   
   _No response_
   
   ### Actual behavior
   
   Native build must be generated correctly without errors.
   
   ### 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
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to