Help me!!!... SMTP connector doesn't work.

2015-10-03 10:14:11 org.bonitasoft.engine.api.impl.ProcessAPIImpl
INFO: THREAD_ID=51 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | The user <john.gonzalez> has installed process in version <1.0> with id <8099071302641203913>
2015-10-03 10:14:27 org.bonitasoft.engine.api.impl.ProcessManagementAPIImplDelegate
INFO: THREAD_ID=51 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | The user <john.gonzalez> has deleted process with id = <8099071302641203913>
2015-10-03 10:14:28 org.bonitasoft.engine.api.impl.ProcessAPIImpl
INFO: THREAD_ID=49 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | The user <john.gonzalez> has installed process in version <1.0> with id <8041472333055190495>
2015-10-03 10:14:28 org.bonitasoft.engine.api.impl.transaction.process.EnableProcess
INFO: THREAD_ID=49 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | The user <john.gonzalez> has enabled process in version <1.0> with id <8041472333055190495>
2015-10-03 10:14:32 org.bonitasoft.engine.api.impl.ProcessStarter
INFO: THREAD_ID=44 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | The user <john.gonzalez> has started the process instance <4> of process in version <1.0> and id <8041472333055190495>
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: charset UTF-8
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: message Esto es una prueba
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: html true
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: subject Prueba
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: bcc null
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: cc null
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: to johnjairogonzalezruiz@gmail.com
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: from johnjairogonzalezruiz@gmail.com
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: userName johnjairogonzalezruiz@gmail.com
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: starttlsSupport false
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: sslSupport true
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: smtpPort 465
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: smtpHost smtp.gmail.com
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: replyTo null
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: password *************
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: Headers null
2015-10-03 10:14:32 org.bonitasoft.connectors.email.EmailConnector
INFO: headers
2015-10-03 10:14:33 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork
SEVERE: THREAD_ID=272 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 27, connectorDefinitionName = Correo] failed. The failure will be handled.
2015-10-03 10:14:33 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork
SEVERE: THREAD_ID=272 | HOSTNAME=E238-S6UIFCE05 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=8041472333055190495 | PROCESS_NAME=Pool | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=4 | ROOT_PROCESS_INSTANCE_ID=4 | FLOW_NODE_DEFINITION_ID=-7808756630087097623 | FLOW_NODE_INSTANCE_ID=27 | FLOW_NODE_NAME=Tarea1 | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=Correo | CONNECTOR_INSTANCE_ID=6 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp
"
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=8041472333055190495 | PROCESS_NAME=Pool | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=4 | ROOT_PROCESS_INSTANCE_ID=4 | FLOW_NODE_DEFINITION_ID=-7808756630087097623 | FLOW_NODE_INSTANCE_ID=27 | FLOW_NODE_NAME=Tarea1 | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=Correo | CONNECTOR_INSTANCE_ID=6 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp

at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:332)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:150)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:111)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:125)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:42)
at org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork.work(FailureHandlingBonitaWork.java:66)
at org.bonitasoft.engine.work.BonitaWork.run(BonitaWork.java:56)
at org.bonitasoft.engine.work.SequenceRunnableExecutor.innerRun(SequenceRunnableExecutor.java:47)
at org.bonitasoft.engine.work.BonitaRunnable.run(BonitaRunnable.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)

Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp

at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:119)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:324)
... 14 more

Caused by: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp

at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:143)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:113)
... 15 more

Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp

at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:72)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:188)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:170)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
... 3 more

Caused by: org.bonitasoft.engine.connector.ConnectorException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp

at org.bonitasoft.connectors.email.EmailConnector.executeBusinessLogic(EmailConnector.java:473)
at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:74)
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:70)
... 7 more

Caused by: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtM2
534-5.7.14 HPxZLU00rW9EkyBadfWgJku_p532eHRZREHDdaXaL22DuJcQIIeODVwyE0-1ga7zgIroro
534-5.7.14 MThGzhCrb2Lxr8aMOjUoNDgt3Vb1idNs-rsAKYrdR7sLgkPMTf2a2cYdtobGw57MUZxozZ
534-5.7.14 RK2obTLbSuMpkDxu_7MCPuUPv_FaAsjcRRixDAdnIhMGCsyV8HXPv7EPqvpuEpbTx89iTx
534-5.7.14 vMkkf19Je5io4YKrGNVckcwp_sLA> 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 x185sm11704526ywa.26 - gsmtp

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at org.bonitasoft.connectors.email.EmailConnector.executeBusinessLogic(EmailConnector.java:471)
... 9 more

AuthenticationFailedException

means authentication has failed…so either the password is wrong or you are behind a firewall (not recommended as it doesn’t seem to work).

Or for gmail it’s not necessary to use SSL in this manner so you may want to change this parameter, AND you have to tell gmail in it’s setting that you are using an unsecured application to use it.

There is a parameter in gmail setting that you have to allow, see this link for more information:

https://support.google.com/accounts/answer/6010255?hl=en

regards