mongodb-crypt should instruct GraalVM to initialize CAPI, as well as com.sun.jna.Native/Structure at run time

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 5.2.1
    • Affects Version/s: None
    • Component/s: GraalVM
    • None
    • Fully Compatible
    • Java Drivers
    • Needed
    • Hide

      Let's mention in "what's new" that we fixed an issue with org.mongodb:mongodb-crypt and Quarkus. This library provides API bindings for the native libmongocrypt library, and these bindings were causing java.lang.UnsatisfiedLinkError if an application is built into a native executable with Quarkus.

      Show
      Let's mention in "what's new" that we fixed an issue with org.mongodb:mongodb-crypt and Quarkus. This library provides API bindings for the native libmongocrypt library, and these bindings were causing java.lang.UnsatisfiedLinkError if an application is built into a native executable with Quarkus.
    • None
    • None
    • None
    • None
    • None
    • None

      Quarkus initializes as much classes as possible at build time. Initializing com.mongodb.internal.crypt.capi.CAPI, as well as com.sun.jna.Native/Structure at build time results in UnsatisfiedLinkError when mongodb-crypt calls native methods from libmongocrypt.

              Assignee:
              Valentin Kavalenka
              Reporter:
              Valentin Kavalenka
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: