org.apache.commons.mail.EmailException

Sending the email to the following server failed : smtp.gmail.com:465

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web146

  • via Unknown by Dominik Menzi,
  • Stack trace

    • org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)[graylog.jar:?] at org.apache.commons.mail.Email.send(Email.java:1448)[graylog.jar:?] at org.graylog2.alerts.StaticEmailAlertSender.sendEmail(StaticEmailAlertSender.java:123)[graylog.jar:?] at org.graylog2.alerts.StaticEmailAlertSender.sendEmails(StaticEmailAlertSender.java:257)[graylog.jar:?] at org.graylog2.alerts.StaticEmailAlertSender.sendEmails(StaticEmailAlertSender.java:83)[graylog.jar:?] at org.graylog2.alarmcallbacks.EmailAlarmCallback.call(EmailAlarmCallback.java:70)[graylog.jar:?] at org.graylog2.rest.resources.streams.alerts.StreamAlertResource.sendDummyAlert(StreamAlertResource.java:316)[graylog.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_121] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_121] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_121] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_121] at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)[graylog.jar:?] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)[graylog.jar:?] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)[graylog.jar:?] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:143)[graylog.jar:?] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)[graylog.jar:?] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)[graylog.jar:?] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)[graylog.jar:?] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)[graylog.jar:?] at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)[graylog.jar:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)[graylog.jar:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)[graylog.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[graylog.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[graylog.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:267)[graylog.jar:?] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)[graylog.jar:?] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)[graylog.jar:?] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)[graylog.jar:?] at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)[graylog.jar:?] at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224)[graylog.jar:?] at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)[graylog.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_121] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_121] Caused by: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbv- 534-5.7.14 6vC3XCzJqVo2heot6MTzStDDNqtrq-URUWNIxOSIYAsNlk-WOM6czk02C3Oh-AOy0YW2j6 534-5.7.14 belZo4ljAj85Tioame_Ypjq7OLXDyO5jgYJY2u5jaqWTj-Fix4W0jEzcra7dY70E8IuIzK 534-5.7.14 9-Hi7tkUDxEMFNFmyoUSQWOwb2CbWffW4hW8alSRUy0oROhTAgG2QbxxBRaPV-uDF02Nl0 534-5.7.14 p6TxvspqRYOPzvKdmzOSw3GvH4SyM> Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 g85sm2991175pfe.38 - gsmtp at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:892)[graylog.jar:?] at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:814)[graylog.jar:?] at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:728)[graylog.jar:?] at javax.mail.Service.connect(Service.java:386)[graylog.jar:?] at javax.mail.Service.connect(Service.java:245)[graylog.jar:?] at javax.mail.Service.connect(Service.java:194)[graylog.jar:?] at javax.mail.Transport.send0(Transport.java:253)[graylog.jar:?] at javax.mail.Transport.send(Transport.java:124)[graylog.jar:?] at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)[graylog.jar:?] ... 33 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    63 more bugmates