domhanak opened a new issue, #1992: URL: https://github.com/apache/incubator-kie-kogito-apps/issues/1992
### Describe the bug Nightly native build job of kogito-apps [1] fails consistently for past week. The failure i caused by `data-audit-quarkus-jpa-service` project. Relevant output from logs: ``` [2024-02-19T02:57:14.709Z] ======================================================================================================================== [2024-02-19T02:57:14.709Z] GraalVM Native Image: Generating 'data-audit-quarkus-jpa-service-999-SNAPSHOT-runner' (executable)... [2024-02-19T02:57:14.709Z] ======================================================================================================================== [2024-02-19T02:57:14.709Z] For detailed information and explanations on the build output, visit: [2024-02-19T02:57:14.709Z] https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md [2024-02-19T02:57:14.709Z] ------------------------------------------------------------------------------------------------------------------------ [2024-02-19T02:57:14.709Z] Warning: The host machine does not support all features of 'x86-64-v3'. Falling back to '-march=compatibility' for best compatibility. [2024-02-19T02:57:19.239Z] [1/8] Initializing... (11.9s @ 0.60GB) [2024-02-19T02:57:19.239Z] Java version: 17.0.10+7, vendor version: Mandrel-23.0.3.0-Final [2024-02-19T02:57:19.239Z] Graal compiler: optimization level: 2, target machine: compatibility [2024-02-19T02:57:19.239Z] C compiler: gcc (redhat, x86_64, 8.5.0) [2024-02-19T02:57:19.239Z] Garbage collector: Serial GC (max heap size: 80% of RAM) [2024-02-19T02:57:19.239Z] 9 user-specific feature(s) [2024-02-19T02:57:19.239Z] - com.oracle.svm.thirdparty.gson.GsonFeature [2024-02-19T02:57:19.239Z] - io.quarkus.caffeine.runtime.graal.CacheConstructorsFeature [2024-02-19T02:57:19.239Z] - io.quarkus.hibernate.orm.runtime.graal.DisableLoggingFeature: Disables INFO logging during the analysis phase [2024-02-19T02:57:19.239Z] - io.quarkus.jdbc.h2.runtime.H2Reflections: Support for H2 Database's extended data types [2024-02-19T02:57:19.239Z] - io.quarkus.jdbc.postgresql.runtime.graal.SQLXMLFeature [2024-02-19T02:57:19.239Z] - io.quarkus.runner.Feature: Auto-generated class by Quarkus from the existing extensions [2024-02-19T02:57:19.239Z] - io.quarkus.runtime.graal.DisableLoggingFeature: Disables INFO logging during the analysis phase [2024-02-19T02:57:19.239Z] - org.eclipse.angus.activation.nativeimage.AngusActivationFeature [2024-02-19T02:57:19.239Z] - org.hibernate.graalvm.internal.GraalVMStaticFeature: Hibernate ORM's static reflection registrations for GraalVM [2024-02-19T02:57:20.643Z] 02:57:20,274 WARN [org.hib.orm.deprecation] HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default) [2024-02-19T02:58:39.732Z] [2/8] Performing analysis... [*****] (69.4s @ 2.96GB) [2024-02-19T02:58:39.732Z] 27,503 (90.27%) of 30,469 types reachable [2024-02-19T02:58:39.732Z] 42,872 (65.46%) of 65,494 fields reachable [2024-02-19T02:58:39.732Z] 140,077 (58.21%) of 240,639 methods reachable [2024-02-19T02:58:39.732Z] 7,716 types, 318 fields, and 4,693 methods registered for reflection [2024-02-19T02:58:39.732Z] 64 types, 70 fields, and 55 methods registered for JNI access [2024-02-19T02:58:39.732Z] 4 native libraries: dl, pthread, rt, z [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] Error: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. To see how this object got instantiated use --trace-object-instantiation=java.util.Random. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point. [2024-02-19T02:58:39.732Z] Detailed message: [2024-02-19T02:58:39.732Z] Trace: Object was reached by [2024-02-19T02:58:39.732Z] trying to constant fold static field org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.RNG [2024-02-19T02:58:39.732Z] at org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.access$100(SaslClientAuthenticator.java:77) [2024-02-19T02:58:39.732Z] parsing method org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.access$100(SaslClientAuthenticator.java:77) reachable via the parsing context [2024-02-19T02:58:39.732Z] at static root method.(Unknown Source) [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] com.oracle.svm.core.util.UserError$UserException: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. To see how this object got instantiated use --trace-object-instantiation=java.util.Random. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point. [2024-02-19T02:58:39.732Z] Detailed message: [2024-02-19T02:58:39.732Z] Trace: Object was reached by [2024-02-19T02:58:39.732Z] trying to constant fold static field org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.RNG [2024-02-19T02:58:39.732Z] at org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.access$100(SaslClientAuthenticator.java:77) [2024-02-19T02:58:39.732Z] parsing method org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.access$100(SaslClientAuthenticator.java:77) reachable via the parsing context [2024-02-19T02:58:39.732Z] at static root method.(Unknown Source) [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:85) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:248) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:798) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:582) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:539) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:408) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:612) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:134) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94) [2024-02-19T02:58:39.732Z] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. To see how this object got instantiated use --trace-object-instantiation=java.util.Random. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point. [2024-02-19T02:58:39.732Z] Detailed message: [2024-02-19T02:58:39.732Z] Trace: Object was reached by [2024-02-19T02:58:39.732Z] trying to constant fold static field org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.RNG [2024-02-19T02:58:39.732Z] at org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.access$100(SaslClientAuthenticator.java:77) [2024-02-19T02:58:39.732Z] parsing method org.apache.kafka.common.security.authenticator.SaslClientAuthenticator.access$100(SaslClientAuthenticator.java:77) reachable via the parsing context [2024-02-19T02:58:39.732Z] at static root method.(Unknown Source) [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126) [2024-02-19T02:58:39.732Z] at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:793) [2024-02-19T02:58:39.732Z] ... 6 more [2024-02-19T02:58:39.732Z] ------------------------------------------------------------------------------------------------------------------------ [2024-02-19T02:58:39.732Z] 5.4s (6.4% of total time) in 36 GCs | Peak RSS: 5.45GB | CPU load: 13.71 [2024-02-19T02:58:39.732Z] ------------------------------------------------------------------------------------------------------------------------ ``` [1] https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/nightly.native/job/kogito-apps.build-and-test/ ### Expected behavior The job will be passing ### Actual behavior _No response_ ### How to Reproduce? _No response_ ### Output of `uname -a` or `ver` _No response_ ### Output of `java -version` _No response_ ### GraalVM version (if different from Java) _No response_ ### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM) _No response_ ### Build tool (ie. output of `mvnw --version` or `gradlew --version`) _No response_ ### 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]
