Closed blueiceprj closed 2 years ago
Stacktrace?
java.lang.ClassCastException: jakarta.mail.Transport com.sun.mail.smtp.SMTPTransport
at jakarta.mail.Session.getService(Session.java:838)
at jakarta.mail.Session.getTransport(Session.java:772)
at jakarta.mail.Session.getTransport(Session.java:713)
at jakarta.mail.Session.getTransport(Session.java:693)
at jakarta.mail.Session.getTransport(Session.java:673)
at org.simplejavamail.mailer.internal.util.TransportRunner.runOnSessionTransport(TransportRunner.java:66)
at org.simplejavamail.mailer.internal.util.TransportRunner.connect(TransportRunner.java:55)
at org.simplejavamail.mailer.internal.TestConnectionClosure.executeClosure(TestConnectionClosure.java:54)
at org.simplejavamail.mailer.internal.AbstractProxyServerSyncingClosure.run(AbstractProxyServerSyncingClosure.java:56)
at org.simplejavamail.mailer.internal.MailerImpl.testConnection(MailerImpl.java:317)
at org.simplejavamail.mailer.internal.MailerImpl.testConnection(MailerImpl.java:306)
Hmm, I have no idea really. This seems like a bug internally in Jakarta Mail.
Can you run a mvn dependency:tree on your project, please?
[INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ school-service ---
[INFO] io.xxxx.xxxxx.service:xxxxxx-service:jar:3.0.0-RELEASE
[INFO] +- org.springframework:spring-beans:jar:5.3.14:compile
[INFO] +- com.google.cloud:google-cloud-texttospeech:jar:2.1.1:compile
[INFO] | +- io.grpc:grpc-api:jar:1.42.1:compile
[INFO] | +- io.grpc:grpc-context:jar:1.42.1:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | +- io.grpc:grpc-stub:jar:1.42.1:compile
[INFO] | +- io.grpc:grpc-protobuf:jar:1.42.1:compile
[INFO] | +- io.grpc:grpc-protobuf-lite:jar:1.42.1:compile
[INFO] | +- com.google.api:api-common:jar:2.1.1:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- com.google.auto.value:auto-value-annotations:jar:1.8.2:runtime
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.19.2:compile
[INFO] | +- com.google.api.grpc:proto-google-common-protos:jar:2.7.0:compile
[INFO] | +- com.google.api.grpc:proto-google-cloud-texttospeech-v1:jar:2.1.0:compile
[INFO] | +- com.google.api.grpc:proto-google-cloud-texttospeech-v1beta1:jar:0.90.0:compile
[INFO] | +- com.google.guava:guava:jar:31.0.1-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] | +- org.checkerframework:checker-qual:jar:3.20.0:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.10.0:compile
[INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | +- com.google.api:gax:jar:2.7.1:compile
[INFO] | +- com.google.auth:google-auth-library-credentials:jar:1.3.0:compile
[INFO] | +- com.google.auth:google-auth-library-oauth2-http:jar:1.3.0:compile
[INFO] | +- com.google.http-client:google-http-client:jar:1.40.1:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | +- commons-codec:commons-codec:jar:1.14:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.14:compile
[INFO] | +- io.opencensus:opencensus-contrib-http-util:jar:0.28.0:runtime
[INFO] | +- com.google.http-client:google-http-client-gson:jar:1.40.1:compile
[INFO] | +- io.opencensus:opencensus-api:jar:0.28.0:runtime
[INFO] | +- com.google.api:gax-grpc:jar:2.7.1:compile
[INFO] | +- io.grpc:grpc-alts:jar:1.42.1:runtime
[INFO] | +- io.grpc:grpc-grpclb:jar:1.42.1:runtime
[INFO] | +- org.conscrypt:conscrypt-openjdk-uber:jar:2.5.1:runtime
[INFO] | +- io.grpc:grpc-auth:jar:1.42.1:runtime
[INFO] | +- io.grpc:grpc-netty-shaded:jar:1.42.1:runtime
[INFO] | +- io.perfmark:perfmark-api:jar:0.23.0:runtime
[INFO] | +- io.grpc:grpc-core:jar:1.42.1:runtime
[INFO] | +- com.google.android:annotations:jar:4.1.1.4:runtime
[INFO] | +- org.codehaus.mojo:animal-sniffer-annotations:jar:1.20:runtime
[INFO] | +- io.grpc:grpc-xds:jar:1.43.2:runtime
[INFO] | +- io.grpc:grpc-services:jar:1.42.1:runtime
[INFO] | +- com.google.code.gson:gson:jar:2.8.7:compile
[INFO] | +- com.google.re2j:re2j:jar:1.5:runtime
[INFO] | +- org.bouncycastle:bcpkix-jdk15on:jar:1.67:compile
[INFO] | +- org.bouncycastle:bcprov-jdk15on:jar:1.67:compile
[INFO] | +- io.opencensus:opencensus-proto:jar:0.2.0:runtime
[INFO] | +- com.google.protobuf:protobuf-java-util:jar:3.19.2:runtime
[INFO] | \- org.threeten:threetenbp:jar:1.5.2:compile
[INFO] +- io.xxx.cloud.base:cloud-common:jar:3.0.0-RELEASE:compile
[INFO] | +- com.konghq:unirest-java:jar:3.13.6:compile
[INFO] | | \- org.apache.httpcomponents:httpcore-nio:jar:4.4.14:compile
[INFO] | +- org.apache.kafka:kafka-clients:jar:2.5.1:compile
[INFO] | | +- com.github.luben:zstd-jni:jar:1.4.4-7:compile
[INFO] | | +- org.lz4:lz4-java:jar:1.7.1:compile
[INFO] | | \- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile
[INFO] | +- org.springframework.kafka:spring-kafka:jar:2.8.0:compile
[INFO] | | \- org.springframework:spring-messaging:jar:5.2.12.RELEASE:compile
[INFO] | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.4:compile
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.13:compile
[INFO] | +- org.json:json:jar:20211205:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:5.3.6.RELEASE:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-hppc:jar:2.11.4:compile
[INFO] | | \- com.carrotsearch:hppc:jar:0.8.1:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.4:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-json-org:jar:2.11.4:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.11.4:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.1.7.Final:compile
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.2.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | +- com.fasterxml.uuid:java-uuid-generator:jar:4.0.1:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.12.RELEASE:compile
[INFO] | +- org.mariuszgromada.math:MathParser.org-mXparser:jar:4.4.2:compile
[INFO] | +- com.udojava:EvalEx:jar:2.6:compile
[INFO] | +- com.hazelcast:hazelcast:jar:5.0.2:compile
[INFO] | +- com.hazelcast:hazelcast-spring:jar:5.0.2:compile
[INFO] | +- com.github.ulisesbocchio:jasypt-spring-boot-starter:jar:3.0.4:compile
[INFO] | | \- com.github.ulisesbocchio:jasypt-spring-boot:jar:3.0.4:compile
[INFO] | | \- org.jasypt:jasypt:jar:1.9.3:compile
[INFO] | +- com.cronutils:cron-utils:jar:9.1.6:compile
[INFO] | | \- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] | +- com.google.apis:google-api-services-drive:jar:v3-rev197-1.25.0:compile
[INFO] | +- com.google.api-client:google-api-client:jar:1.30.7:compile
[INFO] | | +- com.google.oauth-client:google-oauth-client:jar:1.30.5:compile
[INFO] | | \- com.google.http-client:google-http-client-jackson2:jar:1.40.1:compile
[INFO] | \- com.google.oauth-client:google-oauth-client-jetty:jar:1.32.1:compile
[INFO] | \- com.google.oauth-client:google-oauth-client-java6:jar:1.32.1:compile
[INFO] +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.4:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:2.3.4:compile
[INFO] | +- com.sun.istack:istack-commons-runtime:jar:3.0.12:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:3.0.2:compile
[INFO] | \- com.sun.xml.bind:jaxb-core:jar:3.0.2:compile
[INFO] +- javax.activation:activation:jar:1.1.1:compile
[INFO] +- org.eclipse.persistence:org.eclipse.persistence.moxy:jar:3.0.2:runtime
[INFO] | +- org.eclipse.persistence:org.eclipse.persistence.asm:jar:9.1.0:runtime
[INFO] | \- org.eclipse.persistence:org.eclipse.persistence.core:jar:3.0.2:runtime
[INFO] +- com.docusign:docusign-esign-java:jar:3.16.1:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.18:compile
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.30.1:compile
[INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-common:jar:2.30.1:compile
[INFO] | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
[INFO] | | \- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile
[INFO] | +- org.glassfish.jersey.media:jersey-media-multipart:jar:2.30.1:compile
[INFO] | | \- org.jvnet.mimepull:mimepull:jar:1.9.14:compile
[INFO] | +- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.30.1:compile
[INFO] | | +- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.30.1:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.11.4:compile
[INFO] | +- org.glassfish.jersey.inject:jersey-hk2:jar:2.30.1:compile
[INFO] | | \- org.glassfish.hk2:hk2-locator:jar:2.6.1:compile
[INFO] | | +- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.6.1:compile
[INFO] | | +- org.glassfish.hk2:hk2-api:jar:2.6.1:compile
[INFO] | | \- org.glassfish.hk2:hk2-utils:jar:2.6.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.11.4:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.4:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.4:compile
[INFO] | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.11.4:compile
[INFO] | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.11.4:compile
[INFO] | +- org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:jar:1.0.2:compile
[INFO] | | \- org.apache.oltu.oauth2:org.apache.oltu.oauth2.common:jar:1.0.2:compile
[INFO] | +- com.auth0:java-jwt:jar:3.4.1:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.11.4:compile
[INFO] | \- com.brsanthu:migbase64:jar:2.2:compile
[INFO] +- org.mapstruct:mapstruct:jar:1.4.2.Final:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.12:provided (optional)
[INFO] +- org.projectlombok:lombok-mapstruct-binding:jar:0.2.0:compile
[INFO] +- tech.jhipster:jhipster-framework:jar:7.0.0-beta.1:compile
[INFO] | +- org.springframework:spring-context-support:jar:5.2.12.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cache:jar:2.3.12.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-starter:jar:2.3.12.RELEASE:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] +- io.dropwizard.metrics:metrics-core:jar:4.1.17:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- io.dropwizard.metrics:metrics-annotation:jar:4.1.17:compile
[INFO] +- io.dropwizard.metrics:metrics-json:jar:4.1.17:compile
[INFO] +- io.dropwizard.metrics:metrics-jvm:jar:4.1.17:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:2.3.12.RELEASE:compile (optional)
[INFO] +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | \- net.minidev:json-smart:jar:2.3.1:compile
[INFO] | \- net.minidev:accessors-smart:jar:2.3.1:compile
[INFO] +- commons-io:commons-io:jar:2.8.0:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.12.0:compile
[INFO] +- javax.cache:cache-api:jar:1.1.1:compile
[INFO] +- org.assertj:assertj-core:jar:3.16.1:test
[INFO] +- net.logstash.logback:logstash-logback-encoder:jar:6.6:compile
[INFO] +- io.micrometer:micrometer-core:jar:1.8.1:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- org.springframework:spring-core:jar:5.3.14:compile
[INFO] | \- org.springframework:spring-jcl:jar:5.2.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-loader-tools:jar:2.3.12.RELEASE:compile
[INFO] | \- org.apache.commons:commons-compress:jar:1.19:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.12.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.12.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator:jar:2.3.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.12.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.12.RELEASE:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.12.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.15.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.3.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.3.12.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.3.6.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.3.6.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-thymeleaf:jar:2.3.12.RELEASE:compile
[INFO] | +- org.thymeleaf:thymeleaf-spring5:jar:3.0.12.RELEASE:compile
[INFO] | | \- org.thymeleaf:thymeleaf:jar:3.0.12.RELEASE:compile
[INFO] | | +- org.attoparser:attoparser:jar:2.0.5.RELEASE:compile
[INFO] | | \- org.unbescape:unbescape:jar:1.1.6.RELEASE:compile
[INFO] | \- org.thymeleaf.extras:thymeleaf-extras-java8time:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.3.12.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.3.12.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.4:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-undertow:jar:2.3.12.RELEASE:compile
[INFO] | +- io.undertow:undertow-core:jar:2.2.14.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-api:jar:3.8.4.Final:compile
[INFO] | | | +- org.wildfly.common:wildfly-common:jar:1.5.2.Final:compile
[INFO] | | | \- org.wildfly.client:wildfly-client-config:jar:1.0.1.Final:compile
[INFO] | | +- org.jboss.xnio:xnio-nio:jar:3.8.4.Final:runtime
[INFO] | | \- org.jboss.threads:jboss-threads:jar:3.1.0.Final:compile
[INFO] | +- io.undertow:undertow-servlet:jar:2.2.14.Final:compile
[INFO] | | \- org.jboss.spec.javax.annotation:jboss-annotations-api_1.3_spec:jar:2.0.1.Final:compile
[INFO] | +- io.undertow:undertow-websockets-jsr:jar:2.2.14.Final:compile
[INFO] | | \- org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec:jar:2.0.0.Final:compile
[INFO] | +- jakarta.servlet:jakarta.servlet-api:jar:4.0.4:compile
[INFO] | \- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.3.12.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.3.12.RELEASE:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.6.3:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-params:jar:5.6.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.2.12.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:test
[INFO] +- org.springframework.boot:spring-boot-test:jar:2.3.12.RELEASE:test
[INFO] | \- org.springframework.boot:spring-boot:jar:2.3.12.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-test:jar:5.3.6.RELEASE:test
[INFO] +- org.junit.jupiter:junit-jupiter-api:jar:5.7.2:test
[INFO] | +- org.apiguardian:apiguardian-api:jar:1.1.0:compile
[INFO] | \- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] +- org.junit.jupiter:junit-jupiter-engine:jar:5.7.2:test
[INFO] +- org.junit.platform:junit-platform-engine:jar:1.7.1:test
[INFO] +- org.junit.platform:junit-platform-runner:jar:1.7.1:test
[INFO] | +- junit:junit:jar:4.13.2:test
[INFO] | | \- org.hamcrest:hamcrest-core:jar:2.2:test
[INFO] | \- org.junit.platform:junit-platform-suite-api:jar:1.6.3:test
[INFO] +- org.junit.platform:junit-platform-launcher:jar:1.7.1:test
[INFO] +- org.mockito:mockito-junit-jupiter:jar:3.5.15:test
[INFO] +- org.junit.platform:junit-platform-commons:jar:1.7.1:test
[INFO] +- org.jmockit:jmockit:jar:1.49:test
[INFO] +- org.mockito:mockito-inline:jar:3.12.4:test
[INFO] +- org.mockito:mockito-core:jar:3.12.4:test
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.10.22:compile
[INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.10.22:test
[INFO] | \- org.objenesis:objenesis:jar:3.2:test
[INFO] +- org.springframework.cloud:spring-cloud-stream-test-support:jar:3.0.9.RELEASE:test
[INFO] | \- org.springframework.cloud:spring-cloud-stream:jar:3.0.9.RELEASE:test
[INFO] | +- org.springframework.integration:spring-integration-core:jar:5.3.5.RELEASE:test
[INFO] | | \- io.projectreactor:reactor-core:jar:3.3.13.RELEASE:compile
[INFO] | +- org.springframework.integration:spring-integration-jmx:jar:5.3.5.RELEASE:test
[INFO] | \- org.springframework.cloud:spring-cloud-function-context:jar:3.0.11.RELEASE:test
[INFO] | +- net.jodah:typetools:jar:0.6.2:test
[INFO] | \- org.springframework.cloud:spring-cloud-function-core:jar:3.0.11.RELEASE:test
[INFO] +- org.zalando:problem-spring-web:jar:0.28.0-RC.0:compile
[INFO] | +- org.zalando:problem-violations:jar:0.28.0-RC.0:compile
[INFO] | +- org.zalando:problem-spring-common:jar:0.28.0-RC.0:compile
[INFO] | +- org.zalando:problem:jar:0.26.0:compile
[INFO] | +- org.zalando:jackson-datatype-problem:jar:0.26.0:compile
[INFO] | +- org.zalando:faux-pas:jar:0.9.0:compile
[INFO] | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] +- org.springframework.security.oauth:spring-security-oauth2:jar:2.5.0.RELEASE:compile
[INFO] | \- org.springframework:spring-context:jar:5.2.12.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-jwt:jar:1.1.1.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-context:jar:2.2.6.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-crypto:jar:5.3.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-commons:jar:2.2.6.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-rsa:jar:1.0.9.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.2.6.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-archaius:jar:2.2.6.RELEASE:compile
[INFO] | | +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] | | \- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | +- com.netflix.ribbon:ribbon:jar:2.3.0:compile
[INFO] | | +- com.netflix.ribbon:ribbon-transport:jar:2.3.0:runtime
[INFO] | | | +- io.reactivex:rxnetty-contexts:jar:0.4.9:runtime
[INFO] | | | \- io.reactivex:rxnetty-servo:jar:0.4.9:runtime
[INFO] | | +- javax.inject:javax.inject:jar:1:compile
[INFO] | | \- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | +- com.netflix.ribbon:ribbon-core:jar:2.3.0:compile
[INFO] | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- com.netflix.ribbon:ribbon-httpclient:jar:2.3.0:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- com.sun.jersey:jersey-client:jar:1.19.1:compile
[INFO] | | +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:compile
[INFO] | | \- com.netflix.netflix-commons:netflix-commons-util:jar:0.3.0:runtime
[INFO] | +- com.netflix.ribbon:ribbon-loadbalancer:jar:2.3.0:compile
[INFO] | | \- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] | \- io.reactivex:rxjava:jar:1.3.8:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-hystrix:jar:2.2.6.RELEASE:compile
[INFO] | +- com.netflix.hystrix:hystrix-core:jar:1.5.18:compile
[INFO] | +- com.netflix.hystrix:hystrix-serialization:jar:1.5.18:compile
[INFO] | +- com.netflix.hystrix:hystrix-metrics-event-stream:jar:1.5.18:compile
[INFO] | +- com.netflix.hystrix:hystrix-javanica:jar:1.5.18:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | \- io.reactivex:rxjava-reactive-streams:jar:1.2.1:compile
[INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] +- org.springframework.retry:spring-retry:jar:1.2.5.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:2.2.6.RELEASE:compile
[INFO] | +- com.netflix.eureka:eureka-client:jar:1.10.7:compile
[INFO] | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:compile
[INFO] | | | +- com.netflix.netflix-commons:netflix-infix:jar:0.3.0:runtime
[INFO] | | | | +- commons-jxpath:commons-jxpath:jar:1.3:runtime
[INFO] | | | | +- joda-time:joda-time:jar:2.3:runtime
[INFO] | | | | \- org.antlr:antlr-runtime:jar:3.4:runtime
[INFO] | | | | +- org.antlr:stringtemplate:jar:3.2.1:runtime
[INFO] | | | | \- antlr:antlr:jar:2.7.7:runtime
[INFO] | | | \- org.apache.commons:commons-math:jar:2.2:runtime
[INFO] | | +- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.19.1:compile
[INFO] | | +- com.google.inject:guice:jar:4.1.0:compile
[INFO] | | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | \- org.codehaus.jettison:jettison:jar:1.3.7:runtime
[INFO] | | \- stax:stax-api:jar:1.0.1:runtime
[INFO] | +- com.netflix.eureka:eureka-core:jar:1.10.7:compile
[INFO] | | \- com.fasterxml.woodstox:woodstox-core:jar:5.3.0:compile
[INFO] | | \- org.codehaus.woodstox:stax2-api:jar:4.2:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-loadbalancer:jar:2.2.6.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-loadbalancer:jar:2.2.6.RELEASE:compile
[INFO] | | | \- io.projectreactor.addons:reactor-extra:jar:3.3.5.RELEASE:compile
[INFO] | | \- com.stoyanr:evictor:jar:1.0.0:compile
[INFO] | +- com.netflix.ribbon:ribbon-eureka:jar:2.3.0:compile
[INFO] | \- com.thoughtworks.xstream:xstream:jar:1.4.13:compile
[INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-config:jar:2.2.6.RELEASE:compile
[INFO] | \- org.springframework.cloud:spring-cloud-config-client:jar:2.2.6.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-security:jar:2.2.4.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-oauth2-client:jar:5.3.6.RELEASE:compile
[INFO] | +- com.nimbusds:oauth2-oidc-sdk:jar:7.1.3:compile
[INFO] | | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] | | +- com.nimbusds:content-type:jar:2.0:compile
[INFO] | | +- com.nimbusds:lang-tag:jar:1.4.4:compile
[INFO] | | +- com.nimbusds:nimbus-jose-jwt:jar:8.19:compile
[INFO] | | \- com.sun.mail:javax.mail:jar:1.6.1:compile
[INFO] | \- org.springframework.security:spring-security-oauth2-core:jar:5.3.6.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.2.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-openfeign-core:jar:2.2.6.RELEASE:compile
[INFO] | | \- io.github.openfeign.form:feign-form-spring:jar:3.8.0:compile
[INFO] | | +- io.github.openfeign.form:feign-form:jar:3.8.0:compile
[INFO] | | \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | +- io.github.openfeign:feign-core:jar:10.10.1:compile
[INFO] | +- io.github.openfeign:feign-slf4j:jar:10.10.1:compile
[INFO] | \- io.github.openfeign:feign-hystrix:jar:10.10.1:compile
[INFO] +- org.springframework.security:spring-security-data:jar:5.3.6.RELEASE:compile
[INFO] +- org.javassist:javassist:jar:3.28.0-GA:compile
[INFO] +- io.xxxxx.cloud.service:service-objects:jar:3.0.0-RELEASE:compile
[INFO] | +- io.springfox:springfox-boot-starter:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-oas:jar:3.0.0:compile
[INFO] | | | +- io.swagger.core.v3:swagger-annotations:jar:2.1.2:compile
[INFO] | | | +- io.swagger.core.v3:swagger-models:jar:2.1.2:compile
[INFO] | | | \- io.springfox:springfox-core:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-data-rest:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-bean-validators:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-swagger-ui:jar:3.0.0:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-core:jar:2.0.0.RELEASE:compile
[INFO] | | \- org.springframework.plugin:spring-plugin-metadata:jar:2.0.0.RELEASE:compile
[INFO] | \- io.xxxx.cloud.base:cloud-objects:jar:3.0.0-RELEASE:compile
[INFO] | +- io.xxxxx.cloud.base:shared-objects:jar:3.0.0-RELEASE:compile
[INFO] | +- org.quartz-scheduler:quartz:jar:2.3.2:compile
[INFO] | | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] | \- io.xxxx.cloud.common:quartz-mongodb:jar:3.0.0-RELEASE:compile
[INFO] | \- org.clojure:clojure:jar:1.10.3:compile
[INFO] | +- org.clojure:spec.alpha:jar:0.2.194:compile
[INFO] | \- org.clojure:core.specs.alpha:jar:0.2.56:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.3.12.RELEASE:compile
[INFO] +- org.mongodb:bson:jar:4.4.1:compile
[INFO] +- org.springframework.data:spring-data-commons:jar:2.6.0:compile
[INFO] +- org.mongodb:mongodb-driver-core:jar:4.4.1:compile
[INFO] +- org.mongodb:mongodb-driver-sync:jar:4.4.1:compile
[INFO] +- com.github.cloudyrock.mongock:mongock-spring-v5:jar:4.3.8:compile
[INFO] | +- com.github.cloudyrock.mongock:mongock-spring-runner-util:jar:4.3.8:compile
[INFO] | +- com.github.cloudyrock.mongock:mongock-runner-core:jar:4.3.8:compile
[INFO] | | +- com.github.cloudyrock.mongock:mongock-driver-api:jar:4.3.8:compile
[INFO] | | +- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | \- org.apache.maven:maven-artifact:jar:3.6.1:compile
[INFO] | | \- org.codehaus.plexus:plexus-utils:jar:3.2.0:compile
[INFO] | +- com.github.cloudyrock.mongock:mongock-api:jar:4.3.8:compile
[INFO] | +- com.github.cloudyrock.mongock:mongock-utils:jar:4.3.8:compile
[INFO] | \- org.springframework:spring-tx:jar:5.2.12.RELEASE:compile
[INFO] +- com.github.cloudyrock.mongock:mongodb-springdata-v3-driver:jar:4.3.8:compile
[INFO] | +- com.github.cloudyrock.mongock:mongock-driver-core:jar:4.3.8:compile
[INFO] | \- com.github.cloudyrock.mongock:mongodb-sync-v4-driver:jar:4.3.8:compile
[INFO] +- org.springframework.data:spring-data-mongodb:jar:3.3.0:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.12.RELEASE:compile
[INFO] +- io.xxxxx.cloud.base:cloud-base-service:jar:3.0.0-RELEASE:compile
[INFO] | +- io.springfox:springfox-swagger2:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-spi:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-schema:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-swagger-common:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-spring-web:jar:3.0.0:compile
[INFO] | | | \- io.github.classgraph:classgraph:jar:4.8.83:compile
[INFO] | | +- io.springfox:springfox-spring-webmvc:jar:3.0.0:compile
[INFO] | | +- io.springfox:springfox-spring-webflux:jar:3.0.0:compile
[INFO] | | \- io.swagger:swagger-models:jar:1.5.20:compile
[INFO] | +- io.micrometer:micrometer-registry-prometheus:jar:1.5.10:compile
[INFO] | | \- io.prometheus:simpleclient_common:jar:0.8.1:compile
[INFO] | | \- io.prometheus:simpleclient:jar:0.9.0:compile
[INFO] | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | +- io.jsonwebtoken:jjwt-api:jar:0.11.2:compile
[INFO] | +- io.jsonwebtoken:jjwt-impl:jar:0.11.2:runtime
[INFO] | +- io.jsonwebtoken:jjwt-jackson:jar:0.11.2:runtime
[INFO] | +- com.netflix.servo:servo-core:jar:0.12.21:compile
[INFO] | +- io.xxxxx.cloud.common:mongodb-encrypt:jar:3.0.0-RELEASE:compile
[INFO] | +- org.simplejavamail:simple-java-mail:jar:7.0.0:compile
[INFO] | | \- org.simplejavamail:core-module:jar:7.0.0:compile
[INFO] | | +- com.sanctionco.jmail:jmail:jar:1.2.1:compile
[INFO] | | \- com.github.tony19:named-regexp:jar:0.2.6:compile
[INFO] | +- org.apache.poi:poi:jar:5.1.0:compile
[INFO] | | +- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] | | \- com.zaxxer:SparseBitSet:jar:1.2:compile
[INFO] | +- org.apache.poi:poi-ooxml:jar:5.1.0:compile
[INFO] | | +- org.apache.poi:poi-ooxml-lite:jar:5.1.0:compile
[INFO] | | +- org.apache.xmlbeans:xmlbeans:jar:5.0.2:compile
[INFO] | | \- com.github.virtuald:curvesapi:jar:1.06:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | \- org.jsoup:jsoup:jar:1.14.3:compile
[INFO] +- com.squareup.okhttp3:okhttp:jar:4.9.3:compile
[INFO] | +- com.squareup.okio:okio:jar:2.8.0:compile
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.72:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.3.72:compile
[INFO] | \- org.jetbrains:annotations:jar:13.0:compile
[INFO] +- org.testcontainers:junit-jupiter:jar:1.15.0:test
[INFO] | \- org.testcontainers:testcontainers:jar:1.15.1:test
[INFO] | +- org.rnorth.duct-tape:duct-tape:jar:1.0.8:test
[INFO] | +- org.rnorth.visible-assertions:visible-assertions:jar:2.1.2:test
[INFO] | | \- net.java.dev.jna:jna:jar:5.2.0:test
[INFO] | +- com.github.docker-java:docker-java-api:jar:3.2.7:test
[INFO] | \- com.github.docker-java:docker-java-transport-zerodep:jar:3.2.7:test
[INFO] | \- com.github.docker-java:docker-java-transport:jar:3.2.7:test
[INFO] +- org.testcontainers:mongodb:jar:1.15.0:test
[INFO] +- com.paypal.sdk:checkout-sdk:jar:1.0.5:compile
[INFO] | \- com.paypal:paypalhttp:jar:1.0.3:compile
[INFO] +- com.stripe:stripe-java:jar:20.94.0:compile
[INFO] +- com.sun.mail:jakarta.mail:jar:2.0.1:compile
[INFO] +- org.simplejavamail:spring-module:jar:7.0.0:compile
[INFO] | \- com.github.bbottema:jetbrains-runtime-annotations:jar:1.0.1:compile
[INFO] \- jakarta.activation:jakarta.activation-api:jar:2.0.1:compile
Looks like you have both Jakarta Mail and JavaMail on the classpath as a transitive dependency. It would be my guess that they don't play nice together, as they do runtime service lookups using reflection code.
You could try the following options:
<dependencyManagement>
<exclusions>
.Thanks for your reply. I excluded javax.mail library and add to javax.mail-api than it works fine.
Hello,
My project is spring based and use simplemail as a mail library. I am trying to upgrade from 6.X to 7.0 version and after test connection with smtp_tls option getting this error.
java.lang.ClassCastException: jakarta.mail.Transport com.sun.mail.smtp.SMTPTransport
But however I can send a e-mail using spring mail without any error. Thank you.