Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5683

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 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.

      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.kovalenko@mongodb.com Valentin Kavalenka
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: