jamesnetherton opened a new issue, #5510: URL: https://github.com/apache/camel-quarkus/issues/5510
### Bug description Observed in the PR to upgrade Quarkus AWS to 2.5.3 https://github.com/apache/camel-quarkus/pull/5505. Seems `quarkus-amazon-services` has already solved these problems: https://github.com/quarkiverse/quarkus-amazon-services/blob/main/common/runtime/src/main/java/io/quarkus/amazon/common/runtime/CrtSubstitutions.java The problem is, if we duplicate the substitutions in our `camel-quarkus-support-aws2` extension, then I think the native compiler would complain when the `aws2-quarkus-client` tests run, because we'd have duplicate substitutions registered. Not sure of the best way to proceed here. Maybe we remove the `aws2-quarkus-client` tests and just declare usage of `quarkus-amazon-services` with CQ as unsupported. ``` 2023-11-13T23:17:29.3226680Z ======================================================================================================================== 2023-11-13T23:17:29.3240679Z GraalVM Native Image: Generating 'camel-quarkus-integration-test-aws2-3.6.0-SNAPSHOT-runner' (executable)... 2023-11-13T23:17:29.3242124Z ======================================================================================================================== 2023-11-13T23:17:29.3243151Z For detailed information and explanations on the build output, visit: 2023-11-13T23:17:29.3244888Z https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md 2023-11-13T23:17:29.3246441Z ------------------------------------------------------------------------------------------------------------------------ 2023-11-13T23:17:32.3417825Z [1/8] Initializing... (9.4s @ 0.25GB) 2023-11-13T23:17:32.3419535Z Java version: 21.0.1+12-LTS, vendor version: Mandrel-23.1.1.0-Final 2023-11-13T23:17:32.3420888Z Graal compiler: optimization level: 2, target machine: x86-64-v3 2023-11-13T23:17:32.3422025Z C compiler: gcc (redhat, x86_64, 8.5.0) 2023-11-13T23:17:32.3422885Z Garbage collector: Serial GC (max heap size: 80% of RAM) 2023-11-13T23:17:32.3423832Z 3 user-specific feature(s): 2023-11-13T23:17:32.3424742Z - com.oracle.svm.thirdparty.gson.GsonFeature 2023-11-13T23:17:32.3426172Z - io.quarkus.runner.Feature: Auto-generated class by Quarkus from the existing extensions 2023-11-13T23:17:32.3427993Z - io.quarkus.runtime.graal.DisableLoggingFeature: Disables INFO logging during the analysis phase 2023-11-13T23:17:32.3449413Z ------------------------------------------------------------------------------------------------------------------------ 2023-11-13T23:17:32.3450731Z 4 experimental option(s) unlocked: 2023-11-13T23:17:32.3452055Z - '-H:+AllowFoldMethods' (origin(s): command line) 2023-11-13T23:17:32.3474657Z - '-H:BuildOutputJSONFile' (origin(s): command line) 2023-11-13T23:17:32.3476496Z - '-H:-UseServiceLoaderFeature' (origin(s): command line) 2023-11-13T23:17:32.3479619Z - '-H:ReflectionConfigurationResources' (origin(s): 'META-INF/native-image/io.netty/netty-transport/native-image.properties' in 'file:///project/lib/io.netty.netty-transport-4.1.100.Final.jar') 2023-11-13T23:17:32.3482725Z ------------------------------------------------------------------------------------------------------------------------ 2023-11-13T23:17:32.3483991Z Build resources: 2023-11-13T23:17:32.3485465Z - 11.79GB of memory (75.6% of 15.61GB system memory, determined at start) 2023-11-13T23:17:32.3486852Z - 4 thread(s) (100.0% of 4 available processor(s), determined at start) 2023-11-13T23:18:49.4985426Z [2/8] Performing analysis... [*****] (76.9s @ 2.62GB) 2023-11-13T23:18:49.5044327Z 22,816 reachable types (77.9% of 29,286 total) 2023-11-13T23:18:49.5171852Z 25,313 reachable fields (60.3% of 41,967 total) 2023-11-13T23:18:49.5781077Z 93,116 reachable methods (51.6% of 180,394 total) 2023-11-13T23:18:49.5785811Z 6,489 types, 120 fields, and 5,825 methods registered for reflection 2023-11-13T23:18:49.5787280Z 61 types, 59 fields, and 55 methods registered for JNI access 2023-11-13T23:18:49.5788027Z 4 native libraries: dl, pthread, rt, z 2023-11-13T23:18:49.5809689Z 2023-11-13T23:18:49.5822642Z Error: Unsupported features in 2 methods 2023-11-13T23:18:49.5823832Z Detailed message: 2023-11-13T23:18:49.5826969Z Error: Discovered unresolved type during parsing: software.amazon.awssdk.crt.checksums.CRC32. This error is reported at image build time because class software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Crc32Checksum is registered for linking at image build time by command line and command line. 2023-11-13T23:18:49.5830580Z ------------------------------------------------------------------------------------------------------------------------ 2023-11-13T23:18:49.5834279Z 16.6s (19.0% of total time) in 162 GCs | Peak RSS: 3.88GB | CPU load: 3.43 2023-11-13T23:18:49.5848444Z Error encountered while parsing software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil$$Lambda/0x00000007c2886500.get(Unknown Source) 2023-11-13T23:18:49.5852156Z Parsing context: 2023-11-13T23:18:49.5853373Z at org.apache.camel.support.SupplierRegistry.lookupByNameAndType(SupplierRegistry.java:48) 2023-11-13T23:18:49.5855171Z at org.apache.camel.support.SimpleRegistry.lookupByName(SimpleRegistry.java:41) 2023-11-13T23:18:49.5908723Z at org.apache.camel.language.ref.RefLanguage.createStaticExpression(RefLanguage.java:57) 2023-11-13T23:18:49.5910112Z at root method.(Unknown Source) 2023-11-13T23:18:49.5910539Z 2023-11-13T23:18:49.5913040Z Error: Discovered unresolved type during parsing: software.amazon.awssdk.crt.checksums.CRC32C. This error is reported at image build time because class software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Crc32CChecksum is registered for linking at image build time by command line and command line. 2023-11-13T23:18:49.5917738Z Error encountered while parsing software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil$$Lambda/0x00000007c2886718.get(Unknown Source) 2023-11-13T23:18:49.5919340Z Parsing context: 2023-11-13T23:18:49.5920340Z at org.apache.camel.support.SupplierRegistry.lookupByNameAndType(SupplierRegistry.java:48) 2023-11-13T23:18:49.5921857Z at org.apache.camel.support.SimpleRegistry.lookupByName(SimpleRegistry.java:41) 2023-11-13T23:18:49.5923256Z at org.apache.camel.language.ref.RefLanguage.createStaticExpression(RefLanguage.java:57) 2023-11-13T23:18:49.5924332Z at root method.(Unknown Source) 2023-11-13T23:18:49.5924706Z 2023-11-13T23:18:49.5924830Z 2023-11-13T23:18:49.5925365Z com.oracle.svm.core.util.UserError$UserException: Unsupported features in 2 methods 2023-11-13T23:18:49.5926340Z Detailed message: 2023-11-13T23:18:49.5928836Z Error: Discovered unresolved type during parsing: software.amazon.awssdk.crt.checksums.CRC32. This error is reported at image build time because class software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Crc32Checksum is registered for linking at image build time by command line and command line. 2023-11-13T23:18:49.5932770Z Error encountered while parsing software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil$$Lambda/0x00000007c2886500.get(Unknown Source) 2023-11-13T23:18:49.5934238Z Parsing context: 2023-11-13T23:18:49.5935184Z at org.apache.camel.support.SupplierRegistry.lookupByNameAndType(SupplierRegistry.java:48) 2023-11-13T23:18:49.5936695Z at org.apache.camel.support.SimpleRegistry.lookupByName(SimpleRegistry.java:41) 2023-11-13T23:18:49.5938101Z at org.apache.camel.language.ref.RefLanguage.createStaticExpression(RefLanguage.java:57) 2023-11-13T23:18:49.5939173Z at root method.(Unknown Source) 2023-11-13T23:18:49.5939645Z 2023-11-13T23:18:49.5941896Z Error: Discovered unresolved type during parsing: software.amazon.awssdk.crt.checksums.CRC32C. This error is reported at image build time because class software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Crc32CChecksum is registered for linking at image build time by command line and command line. 2023-11-13T23:18:49.5948724Z Error encountered while parsing software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil$$Lambda/0x00000007c2886718.get(Unknown Source) 2023-11-13T23:18:49.5952186Z ------------------------------------------------------------------------------------------------------------------------ 2023-11-13T23:18:49.5952925Z Produced artifacts: 2023-11-13T23:18:49.5953705Z /project/camel-quarkus-integration-test-aws2-3.6.0-SNAPSHOT-runner-build-output-stats.json (build_info) 2023-11-13T23:18:49.5954523Z ======================================================================================================================== 2023-11-13T23:18:49.5955362Z Finished generating 'camel-quarkus-integration-test-aws2-3.6.0-SNAPSHOT-runner' in 1m 26s. 2023-11-13T23:18:49.5956273Z Parsing context: 2023-11-13T23:18:49.5957062Z at org.apache.camel.support.SupplierRegistry.lookupByNameAndType(SupplierRegistry.java:48) 2023-11-13T23:18:49.5958058Z at org.apache.camel.support.SimpleRegistry.lookupByName(SimpleRegistry.java:41) 2023-11-13T23:18:49.5958996Z at org.apache.camel.language.ref.RefLanguage.createStaticExpression(RefLanguage.java:57) 2023-11-13T23:18:49.5960096Z at root method.(Unknown Source) 2023-11-13T23:18:49.5960342Z 2023-11-13T23:18:49.5960348Z 2023-11-13T23:18:49.5960843Z at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:85) 2023-11-13T23:18:49.5961859Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:248) 2023-11-13T23:18:49.5963046Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:814) 2023-11-13T23:18:49.5964218Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592) 2023-11-13T23:18:49.5965341Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:550) 2023-11-13T23:18:49.5966590Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:538) 2023-11-13T23:18:49.5967960Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:720) 2023-11-13T23:18:49.5969204Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:142) 2023-11-13T23:18:49.5970476Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:97) 2023-11-13T23:18:49.5971753Z Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Unsupported features in 2 methods 2023-11-13T23:18:49.5972542Z Detailed message: 2023-11-13T23:18:49.5974081Z Error: Discovered unresolved type during parsing: software.amazon.awssdk.crt.checksums.CRC32. This error is reported at image build time because class software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Crc32Checksum is registered for linking at image build time by command line and command line. 2023-11-13T23:18:49.5976511Z Error encountered while parsing software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil$$Lambda/0x00000007c2886500.get(Unknown Source) 2023-11-13T23:18:49.5977452Z Parsing context: 2023-11-13T23:18:49.5978084Z at org.apache.camel.support.SupplierRegistry.lookupByNameAndType(SupplierRegistry.java:48) 2023-11-13T23:18:49.5979061Z at org.apache.camel.support.SimpleRegistry.lookupByName(SimpleRegistry.java:41) 2023-11-13T23:18:49.5979996Z at org.apache.camel.language.ref.RefLanguage.createStaticExpression(RefLanguage.java:57) 2023-11-13T23:18:49.5980708Z at root method.(Unknown Source) 2023-11-13T23:18:49.5981028Z 2023-11-13T23:18:49.5982403Z Error: Discovered unresolved type during parsing: software.amazon.awssdk.crt.checksums.CRC32C. This error is reported at image build time because class software.amazon.awssdk.http.auth.aws.internal.signer.checksums.Crc32CChecksum is registered for linking at image build time by command line and command line. 2023-11-13T23:18:49.5984578Z Error encountered while parsing software.amazon.awssdk.http.auth.aws.internal.signer.util.ChecksumUtil$$Lambda/0x00000007c2886718.get(Unknown Source) 2023-11-13T23:18:49.5985504Z Parsing context: 2023-11-13T23:18:49.5986212Z at org.apache.camel.support.SupplierRegistry.lookupByNameAndType(SupplierRegistry.java:48) 2023-11-13T23:18:49.5987093Z at org.apache.camel.support.SimpleRegistry.lookupByName(SimpleRegistry.java:41) 2023-11-13T23:18:49.5988003Z at org.apache.camel.language.ref.RefLanguage.createStaticExpression(RefLanguage.java:57) 2023-11-13T23:18:49.5988777Z at root method.(Unknown Source) 2023-11-13T23:18:49.5989024Z 2023-11-13T23:18:49.5989029Z 2023-11-13T23:18:49.5989793Z at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:129) 2023-11-13T23:18:49.5991041Z at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:809) 2023-11-13T23:18:49.5991890Z ... 6 more ``` -- 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]
