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

java.lang.NoSuchMethodError when using reactive stream driver

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API, Change Streams
    • None
    • Environment:
      Ubuntu , Java 1.8 , Maven

      I'm trying to initialize the client with this code:

       

      Exception in thread "main" java.lang.NoSuchMethodError: com.mongodb.MongoClientSettings.getAutoEncryptionSettings()Lcom/mongodb/AutoEncryptionSettings;Exception in thread "main" java.lang.NoSuchMethodError: com.mongodb.MongoClientSettings.getAutoEncryptionSettings()Lcom/mongodb/AutoEncryptionSettings; at com.mongodb.async.client.MongoClientSettings.getAutoEncryptionSettings(MongoClientSettings.java:731) at com.mongodb.async.client.MongoClientImpl.<init>(MongoClientImpl.java:70) at com.mongodb.async.client.MongoClientImpl.<init>(MongoClientImpl.java:57) at com.mongodb.async.client.MongoClients.createMongoClient(MongoClients.java:191) at com.mongodb.async.client.MongoClients.createWithAsynchronousSocketChannel(MongoClients.java:265) at com.mongodb.async.client.MongoClients.create(MongoClients.java:177) at com.mongodb.async.client.MongoClients.create(MongoClients.java:136) at com.mongodb.reactivestreams.client.MongoClients.create(MongoClients.java:86) at com.mongodb.reactivestreams.client.MongoClients.create(MongoClients.java:72) at com.phenom.search.changestreams.ChangeStreamSamples.main(ChangeStreamSamples.java:36)

       

       

       

       

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            manojkumar.julakanti@phenompeople.com Manoj Kumar Julakanti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: