Not to configure mail

1
0
-1

SEVERE: THREAD_ID=95 | HOSTNAME=SGH436TBJ7 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 6, connectorDefinitionName = SendAprovalMail] failed. The failure will be handled. 2015-04-13 13:13:43 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork SEVERE: THREAD_ID=95 | HOSTNAME=SGH436TBJ7 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=5456926082082811118 | PROCESS_NAME=ticketAproval | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1 | ROOT_PROCESS_INSTANCE_ID=1 | FLOW_NODE_DEFINITION_ID=-7385635359849516014 | FLOW_NODE_INSTANCE_ID=6 | FLOW_NODE_NAME=sendAprovalMail | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=SendAprovalMail | CONNECTOR_INSTANCE_ID=1 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=5456926082082811118 | PROCESS_NAME=ticketAproval | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=1 | ROOT_PROCESS_INSTANCE_ID=1 | FLOW_NODE_DEFINITION_ID=-7385635359849516014 | FLOW_NODE_INSTANCE_ID=6 | FLOW_NODE_NAME=sendAprovalMail | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=SendAprovalMail | CONNECTOR_INSTANCE_ID=1 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Comments

Submitted by Sean McP on Tue, 04/14/2015 - 08:27

What have you tried?

What is the question?

Submitted by danilo.martino on Thu, 06/18/2015 - 10:13

Hi,

I have installed Bonita Community 6.3.3 with bundle JBoss 5 and PostgreSQL and I have configured a process in which there is an e-mail connector based on stmp.gmail.com with SSL on port 465 (with my own user account). During the process execution I see the following error:

org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Can you help me to found the error during sending email?

Best regards.

Submitted by Sean McP on Thu, 06/18/2015 - 19:15

have you set GMAIL to accept connections from unsecured sources? This is a necessary step also.

Submitted by danilo.martino on Mon, 06/22/2015 - 12:06

Hi Sean, thanks for the answer.

I had already set GMAIL to accept connections but I had never configured web server with a server mail. So, I was able to resolve the problem installing Postfix as a server mail. No problems in bonita script or connector.

Thanks for all.

1 answer

1
0
-1

as above

Notifications