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

Unable to use client side field level encryption on apple M1 chip

      Hi,

      When using mongodb CSFLE using java driver, the class 

      com.mongodb.client.vault.ClientEncryption

      fails to instantiate with the following error:

      
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.mongodb.crypt.capi.CAPI
              at com.mongodb.crypt.capi.MongoCryptImpl.<init>(MongoCryptImpl.java:98) ~[mongodb-crypt-1.3.0.jar:?]
              at com.mongodb.crypt.capi.MongoCrypts.create(MongoCrypts.java:36) ~[mongodb-crypt-1.3.0.jar:?]
              at com.mongodb.client.internal.Crypts.create(Crypts.java:45) ~[mongodb-driver-sync-4.1.2.jar:?]
              at com.mongodb.client.internal.ClientEncryptionImpl.<init>(ClientEncryptionImpl.java:40) ~[mongodb-driver-sync-4.1.2.jar:?]
              at com.mongodb.client.vault.ClientEncryptions.create(ClientEncryptions.java:36) ~[mongodb-driver-sync-4.1.2.jar:?]
      
      

       

      The issue only happens on Apple M1. 

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            mohsen.gaeini@otto.de Mohsen Gaeini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: