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.
Comments
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).
regards
Thank you for the response,
I think there still need to configure in our network. I don't know if we're using proxy so I think other solution is to test this in a local mail server, so forget about my previous question. So I install software for local mail server, the problem is I got successful connection but no output. Can you advice what is the problem on my setup?
Here is the message: "For unserializable output, you can transform it into a serializable object using the output expression editor.
Connector execution is successful but has no output"
-I used the studio in testing the connection "the 'Test' button". -I used MailEnable for local mail server
thanks :)
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,
regards
ps hMailServer makes a great test email server.
Hello, has this error been solved? I've been having the same email connector error for a week now. I'm so helpless.
Did you configure the gmail account you are using to allow less secure apps ? You may have to configure a specific password in your Google account to let Bonita use your account.
Hi. Yes, I have it all configured. Also allowing 3rd party apps to use my email.. Also done setting up the correct java jdk.. still no success.
What are the errors in logs ?
Did you check the SSL checkbox in the Connection page of the email connector (In security section) and uncheck STARTTLS ?
What exact JRE version are you using ?
Yes, many times actually..been trying TLS and SSL setup, neither is working. Haha. I'm using version 11.0.6 and bonita version 7.10.0.