-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Boot 3 logback smtp appender incompatibility #36641
Comments
The exception without the additional dependency:
|
Thanks for any help!!! |
The dependencies:
|
so far the only solution was: to change log4j2 |
Devtools can sometimes cause classloader issues, you could try temporarily removing it to see if you still get the problem. |
Dear @philwebb, Thanks but It didn't work :( |
I made a sample github project, I got the exception at this pure Springboot project as well: |
A bit of debugging in the sample shows the real cause is the following:
That can be fixed by adding a mail dependency to the POM: <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency> The fact the actual cause isn't reported isn't great, I've opened #36645 to see if we can improve that. |
I just noticed you have |
You are my hero @philwebb :) Thank you so much! |
I can't force to show the full exception list How could you do that? Thanks! |
@robozb Ahh yes, it's a fun little debug trick. I added an exception breakpoint for |
Dear All,
I experienced a strange behavior of Spring using Logback and SMTP appender. It seems, there is an incompatibility between the latest Spring version and Logback SMTP appender.
Logback file:
Dependency for logback smtp:
Exception:
The text was updated successfully, but these errors were encountered: