karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-4906) Decanter e-mail alerter can't use javamail authentication
Date Mon, 19 Jun 2017 13:27:00 GMT

     [ https://issues.apache.org/jira/browse/KARAF-4906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-4906.
-----------------------------------------
    Resolution: Fixed

> Decanter e-mail alerter can't use javamail authentication
> ---------------------------------------------------------
>
>                 Key: KARAF-4906
>                 URL: https://issues.apache.org/jira/browse/KARAF-4906
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: decanter-1.4.0
>
>
> The Decanter e-mail alerter works fine when using a local MTA (like local postfix), but
fails to use a remote SMTP server:
> {code}
> 016-11-07 14:23:54,067 | ERROR | Thread-31        | EmailAlerter                    
> | Can't send the alert e-mail
> javax.mail.AuthenticationFailedException: failed to connect, no password
> specified?
> 	at javax.mail.Service.connect(Service.java:329)[74:javax.mail:1.4.7]
> 	at javax.mail.Service.connect(Service.java:176)[74:javax.mail:1.4.7]
> 	at javax.mail.Service.connect(Service.java:125)[74:javax.mail:1.4.7]
> 	at javax.mail.Transport.send0(Transport.java:194)[74:javax.mail:1.4.7]
> 	at javax.mail.Transport.send(Transport.java:124)[74:javax.mail:1.4.7]
> 	at
> org.apache.karaf.decanter.sla.email.EmailAlerter.handleEvent(EmailAlerter.java:101)[81:org.apache.karaf.decanter.sla.email:1.1.0]
> 	at
> org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[84:org.apache.karaf.services.eventadmin:4.0.2]
> 	at
> org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[84:org.apache.karaf.services.eventadmin:4.0.2]
> 	at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_71]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71]
> 	at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_71]
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_71]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_71]
> 2016-11-07 14:23:54,052 | ERROR | Thread-26        | EmailAlerter                   

> | Can't send the alert e-mail
> javax.mail.AuthenticationFailedException: failed to connect, no password
> specified?
> 	at javax.mail.Service.connect(Service.java:329)[74:javax.mail:1.4.7]
> 	at javax.mail.Service.connect(Service.java:176)[74:javax.mail:1.4.7]
> 	at javax.mail.Service.connect(Service.java:125)[74:javax.mail:1.4.7]
> 	at javax.mail.Transport.send0(Transport.java:194)[74:javax.mail:1.4.7]
> 	at javax.mail.Transport.send(Transport.java:124)[74:javax.mail:1.4.7]
> 	at
> org.apache.karaf.decanter.sla.email.EmailAlerter.handleEvent(EmailAlerter.java:101)[81:org.apache.karaf.decanter.sla.email:1.1.0]
> 	at
> org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415)[84:org.apache.karaf.services.eventadmin:4.0.2]
> 	at
> org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90)[84:org.apache.karaf.services.eventadmin:4.0.2]
> 	at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_71]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71]
> 	at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_71]
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_71]
> {code}
> Even if the configuration contains the expected properties:
> {code}
> #
> # Decanter SLA e-mail alerter configuration
> #
> # From e-mail address
> from=foo@bar.com
> # To e-mail address
> to=foo@bar.com
> # Hostname of the SMTP server
> host=smtp.office365.com
> # Port of the SMTP server
> port=587
> # enable SMTP auth
> auth=true
> # enable starttls and ssl
> starttls=true
> ssl=false
> # Optionally, username for the SMTP server
> username=<username>
> # Optionally, password for the SMTP server
> password=<password>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message