Error in configuring email connector
I am new to Bonita and my experience in web programming is very limited so please walk me through like an Elementary student :). I am task to create a web portal using this application and I'm stuck in this situation. The process is: A client will login and submit a request and when the request is submitted there will be a non human process to send a notification message to the assign person. The message contains all the info on the submitted request of the client to the assign person.
when I start to configure the email connector and test the process it gives me an error: Error thrown:
java.lang.reflect.InvocationTargetException org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.connector.exception.SConnectorException: 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
I am using Bonita 6.5.2 - Community Edition.
Are you using Portal or Studio when testing this?
This looks like a security issue (quite common) because your attaching to SSL - first thing you need to do is change GMAIL to allow access for a non-secure connector (BonitaSoft)
You should also make sure you are not going through a Proxy as this does create a problem (but not this one).
Somewhere in your connector you are missing something. I would create a new connector using hard-coded values first them convert them to variables etc. That way easy to find the issue,
ps hMailServer makes a great test email server.