Closed aus70 closed 7 years ago
The jar mail-1.4.7.jar
is in the lib/ext
and contains this method :
public class TraceInputStream extends FilterInputStream {
...
public TraceInputStream(InputStream in, MailLogger logger) {
...
so a missing jar does not seem to be the root of the problem.
@NicolasGeraud I confirm that the issue is not a missing jar. I added smtp-1.5.6.jar
to lib/ext
to no avail.
Email sending during user registration results in a
java.lang.NoSuchMethodError
exception; email is not sent.Expected Behavior
No exception during email sending via SMTP
Current Behavior
When I click the "REGISTER" button I get a Thank you for registering, you will receive an e-mail confirmation in a few minutes toast, but the email is not sent. The Management API logs show the following exception:
Possible Solution
A
smtp-*.jar
file might be missing, as suggested here: http://stackoverflow.com/questions/36184705/issue-when-using-smtp-and-javax-mailSteps to Reproduce (for bugs)
Configure a SMTP server and email in gravitee.yml ( I used a Gmail account) and register a new user by using the portal. Then inspect the Management API logs.
My Environment
The exception gets thrown both when installing the docker demo with:
curl -L http://bit.ly/graviteeiodemo | bash
and running graviteeio-full-1.3.3.