|
I'm running MongoDB 4.2. When I upgraded Java Driver from 3.10.2 to 3.11.0 I received the following exception:
java.lang.NoSuchMethodError: com.mongodb.MongoClientSettings.getAutoEncryptionSettings()Lcom/mongodb/AutoEncryptionSettings
I'm using Spring Boot and Maven to build and not using Spring Data Mongodb. I will print my Maven dependency tree below for both 3.10.2 and 3.11.0 (see red text at bottom of each):
================================
MAVEN DEPENDENCIES WITH JAVA DRIVER 3.10.2
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< project:csm-nosql >---------------------
[INFO] Building csm-nosql 0.0.1-SNAPSHOT
[INFO] -------------------------------[ jar ]--------------------------------
[INFO]
[INFO] — maven-dependency-plugin:3.1.1:tree (default-cli) @ csm-nosql —
[INFO] Verbose not supported since maven-dependency-plugin 3.0
[INFO] project:csm-nosql:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.1.6.RELEASE:compile
[INFO] | | - org.springframework:spring-context:jar:5.1.8.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:5.1.8.RELEASE:compile
[INFO] | | - org.springframework:spring-expression:jar:5.1.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.6.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | - ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile
[INFO] | | | - org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | - org.slf4j:jul-to-slf4j:jar:1.7.26:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.8.RELEASE:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.1.8.RELEASE:compile
[INFO] | - org.yaml:snakeyaml:jar:1.23:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.6.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.6.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.6.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | - net.minidev:json-smart:jar:2.3:test
[INFO] | | - net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:compile
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.13:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.13:test
[INFO] | | - org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.1.8.RELEASE:test
[INFO] | - org.xmlunit:xmlunit-core:jar:2.6.2:test
[INFO] +- ca.uhn.hapi.fhir:hapi-fhir-base:jar:4.0.0-SNAPSHOT:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | +- org.apache.commons:commons-text:jar:1.7:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- commons-io:commons-io:jar:2.6:compile
[INFO] | +- com.google.guava:guava:jar:28.0-jre:compile
[INFO] | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | +- org.checkerframework:checker-qual:jar:2.8.1:compile
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.3.2:compile
[INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | | - org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
[INFO] | +- org.eclipse.jetty:jetty-server:jar:9.4.19.v20190610:compile
[INFO] | | +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
[INFO] | | +- org.eclipse.jetty:jetty-http:jar:9.4.19.v20190610:compile
[INFO] | | | - org.eclipse.jetty:jetty-util:jar:9.4.19.v20190610:compile
[INFO] | | - org.eclipse.jetty:jetty-io:jar:9.4.19.v20190610:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] | - org.slf4j:jcl-over-slf4j:jar:1.7.26:compile
[INFO] +- ca.uhn.hapi.fhir:org.hl7.fhir.utilities:jar:3.8.12-SNAPSHOT:compile
[INFO] +- ca.uhn.hapi.fhir:org.hl7.fhir.r4:jar:3.8.12-SNAPSHOT:compile
[INFO] +- org.fhir:ucum:jar:1.0.2:compile
[INFO] | +- xpp3:xpp3:jar:1.1.4c:compile
[INFO] | - xpp3:xpp3_xpath:jar:1.1.4c:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | - com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.8:compile
[INFO] +- com.github.javafaker:javafaker:jar:1.0.0:compile
[INFO] | +- org.yaml:snakeyaml:jar:android:1.23:compile
[INFO] | - com.github.mifmif:generex:jar:1.0.2:compile
[INFO] | - dk.brics.automaton:automaton:jar:1.11-8:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.7:compile
[INFO] +- org.mongodb:mongodb-driver-sync:jar:3.10.2:compile
[INFO] | +- org.mongodb:bson:jar:3.8.2:compile
[INFO] | - org.mongodb:mongodb-driver-core:jar:3.8.2:compile
[INFO] +- org.springframework.data:spring-data-commons:jar:2.1.9.RELEASE:compile
[INFO] | - org.springframework:spring-beans:jar:5.1.8.RELEASE:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
[INFO] +- org.apache.commons:commons-collections4:jar:4.2:compile
[INFO] - cglib:cglib:jar:3.2.12:compile
[INFO] - org.ow2.asm:asm:jar:7.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.607 s
[INFO] Finished at: 2019-09-27T07:02:42-05:00
[INFO] ------------------------------------------------------------------------
================================
MAVEN DEPENDENCIES WITH JAVA DRIVER 3.11.0
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< project:csm-nosql >---------------------
[INFO] Building csm-nosql 0.0.1-SNAPSHOT
[INFO] -------------------------------[ jar ]--------------------------------
[INFO]
[INFO] — maven-dependency-plugin:3.1.1:tree (default-cli) @ csm-nosql —
[INFO] Verbose not supported since maven-dependency-plugin 3.0
[INFO] project:csm-nosql:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.1.6.RELEASE:compile
[INFO] | | - org.springframework:spring-context:jar:5.1.8.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:5.1.8.RELEASE:compile
[INFO] | | - org.springframework:spring-expression:jar:5.1.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.6.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.6.RELEASE:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | - ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.2:compile
[INFO] | | | - org.apache.logging.log4j:log4j-api:jar:2.11.2:compile
[INFO] | | - org.slf4j:jul-to-slf4j:jar:1.7.26:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.8.RELEASE:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.1.8.RELEASE:compile
[INFO] | - org.yaml:snakeyaml:jar:1.23:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.6.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.6.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.6.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | - net.minidev:json-smart:jar:2.3:test
[INFO] | | - net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:compile
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.13:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.13:test
[INFO] | | - org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.1.8.RELEASE:test
[INFO] | - org.xmlunit:xmlunit-core:jar:2.6.2:test
[INFO] +- ca.uhn.hapi.fhir:hapi-fhir-base:jar:4.0.0-SNAPSHOT:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | +- org.apache.commons:commons-text:jar:1.7:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- commons-io:commons-io:jar:2.6:compile
[INFO] | +- com.google.guava:guava:jar:28.0-jre:compile
[INFO] | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | +- org.checkerframework:checker-qual:jar:2.8.1:compile
[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.3.2:compile
[INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | | - org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
[INFO] | +- org.eclipse.jetty:jetty-server:jar:9.4.19.v20190610:compile
[INFO] | | +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
[INFO] | | +- org.eclipse.jetty:jetty-http:jar:9.4.19.v20190610:compile
[INFO] | | | - org.eclipse.jetty:jetty-util:jar:9.4.19.v20190610:compile
[INFO] | | - org.eclipse.jetty:jetty-io:jar:9.4.19.v20190610:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] | - org.slf4j:jcl-over-slf4j:jar:1.7.26:compile
[INFO] +- ca.uhn.hapi.fhir:org.hl7.fhir.utilities:jar:3.8.12-SNAPSHOT:compile
[INFO] +- ca.uhn.hapi.fhir:org.hl7.fhir.r4:jar:3.8.12-SNAPSHOT:compile
[INFO] +- org.fhir:ucum:jar:1.0.2:compile
[INFO] | +- xpp3:xpp3:jar:1.1.4c:compile
[INFO] | - xpp3:xpp3_xpath:jar:1.1.4c:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | - com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.8:compile
[INFO] +- com.github.javafaker:javafaker:jar:1.0.0:compile
[INFO] | +- org.yaml:snakeyaml:jar:android:1.23:compile
[INFO] | - com.github.mifmif:generex:jar:1.0.2:compile
[INFO] | - dk.brics.automaton:automaton:jar:1.11-8:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.7:compile
[INFO] +- org.mongodb:mongodb-driver-sync:jar:3.11.0:compile
[INFO] | +- org.mongodb:bson:jar:3.8.2:compile
[INFO] | - org.mongodb:mongodb-driver-core:jar:3.8.2:compile
[INFO] +- org.springframework.data:spring-data-commons:jar:2.1.9.RELEASE:compile
[INFO] | - org.springframework:spring-beans:jar:5.1.8.RELEASE:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
[INFO] +- org.apache.commons:commons-collections4:jar:4.2:compile
[INFO] - cglib:cglib:jar:3.2.12:compile
[INFO] - org.ow2.asm:asm:jar:7.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.797 s
[INFO] Finished at: 2019-09-27T06:02:47-05:00
[INFO] ------------------------------------------------------------------------
|