Azure-core with mongodb on Quarkus can not be build in native #38186
Labels
Azure.Core
azure-core
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-triage
Workflow: This issue needs the team to triage.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Presence of
--report-unsupported-elements-at-runtime
and-H:+ReportUnsupportedElementsAtRuntime
in native-image.properties causes native compilation failure when mongodb is present.This is the same error which was fixed on aws in aws/aws-sdk-java-v2#2368
Exception or Stack Trace
To Reproduce
Reproducer: https://github.com/JiriOndrusek/azure-mongodb-native-failure-reproducer
Execute
./mvnw package -Dnative
to simulate the error.(Project is created automatically by https://code.quarkus.io/?e=mongodb-client&e=org.apache.camel.quarkus%3Acamel-quarkus-azure-storage-queue without any change)
Reproducer contains
com.azure:azure-core:jar:1.44.1
, but the issue is present also on main branch, see https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties#L2-L4.Expected behavior
There should be no error during the native build.
Setup (please complete the following information):
Should not matter.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: