Email Notification

hai,i’m new to bonita bpm .I was trying to send mail by using ser task.i following the steps as i saw in bonita site even though i was not able to do it…

i used …
smtp host=smtp.gmail.com
smtp=465
SSl=checked
username=my mail id
password=my password
from=one of my mail
to=another mail of mine…

please any one provide me solution what steps should use to send notification…is der any steps to set up smtp for gmail…in bonita bpm…please help me

Thanks in advance

1 Like

Can you share the Engine log file that you can get from Studio “Help” menu?

Note that username must include the @gmail.com and from should have the same value as username

if using gmail you must also allow UNSECURED access to your email service. This is an option in gmail.

It has nothing to do with SSL, but gmail making sure that third party applications use your account properly.

@antoine.mottier
i have given as u said username =@gmail.com…eventhough i was not able to send email …
here is what u asked Engine log file…

Feb 3, 2015 10:20:19 AM org.bonitasoft.tomcat.H2Listener lifecycleEvent
INFO: Starting H2 server : [-tcp, -tcpPort, 9091, -baseDir, C:\BonitaBPMCommunity-6.4.1\workspace\tomcat/bonita/server/platform/work]
Feb 3, 2015 10:21:41 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class ‘org.apache.catalina.deploy.ApplicationListener@6128871c’
Feb 3, 2015 10:21:41 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class ‘org.apache.catalina.deploy.ApplicationListener@b5510634’
Feb 3, 2015 10:21:41 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Configuring event listener class ‘org.apache.catalina.deploy.ApplicationListener@8a0340fd’
Feb 3, 2015 10:21:41 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 3, 2015 10:21:41 AM org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Initializing Bonita Engine…
Feb 3, 2015 10:21:41 AM org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Initializing Spring context…
Feb 3, 2015 10:21:41 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@32487ae0: startup date [Tue Feb 03 10:21:41 IST 2015]; root of context hierarchy
Feb 3, 2015 10:21:48 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@c77a748: startup date [Tue Feb 03 10:21:48 IST 2015]; parent: org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@32487ae0
Feb 3, 2015 10:22:21 AM org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Initializing platform…
Feb 3, 2015 10:22:21 AM org.bonitasoft.engine.EngineInitializer initPlatform
INFO: Creating platform…
Feb 3, 2015 10:22:25 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@2e1028f7: startup date [Tue Feb 03 10:22:25 IST 2015]; parent: org.bonitasoft.engine.service.impl.AbsoluteFileSystemXmlApplicationContext@c77a748
Feb 3, 2015 10:22:28 AM org.quartz.impl.StdSchedulerFactory instantiate
INFO: Using default implementation for ThreadExecutor
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreSupport initialize
INFO: Using db table-based data access locking (synchronization).
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreCMT initialize
INFO: JobStoreCMT initialized.
Feb 3, 2015 10:22:28 AM org.quartz.impl.StdSchedulerFactory instantiate
INFO: Quartz scheduler ‘QuartzScheduler’ initialized from an externally provided properties instance.
Feb 3, 2015 10:22:28 AM org.quartz.impl.StdSchedulerFactory instantiate
INFO: Quartz scheduler version: 2.2.1
Feb 3, 2015 10:22:28 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Start scheduler
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreSupport recoverJobs
INFO: Freed 0 triggers from ‘acquired’ / ‘blocked’ state.
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreSupport recoverJobs
INFO: Recovering 0 jobs that were in-progress at the time of the last shut-down.
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreSupport recoverJobs
INFO: Recovery complete.
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreSupport recoverJobs
INFO: Removed 0 ‘complete’ triggers.
Feb 3, 2015 10:22:28 AM org.quartz.impl.jdbcjobstore.JobStoreSupport recoverJobs
INFO: Removed 0 stale fired job entries.
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Starting event handling job with frequency : 0/5 * * * * ?
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Starting clean invalid sessions job with frequency : 0 0 */2 * * ?
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Platform initialized successfully.
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.EngineInitializer startPlatform
INFO: Starting platform…
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Start service of platform : org.bonitasoft.engine.classloader.ClassLoaderServiceImpl
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Start service of platform : org.bonitasoft.engine.cache.ehcache.PlatformEhCacheCacheService
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Start service of platform : org.bonitasoft.engine.cache.ehcache.EhCacheCacheService
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Restarting flow nodes…
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Found 0 flow nodes to restart on tenant 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Found 0 process to restart on tenant 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Reinitializing message instances in non-stable state to make them reworked by BPMEventHandlingJob
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | 0 message instances found and reset.
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Reinitializing waiting message events in non-stable state to make them reworked by BPMEventHandlingJob
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | 0 waiting message events found and reset.
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl on tenant with ID 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.service.impl.PermissionServiceImpl on tenant with ID 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.tracking.TimeTracker on tenant with ID 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Starting TimeTracker…
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | TimeTracker started.
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | start tenant-level service org.bonitasoft.engine.work.ExecutorWorkService on tenant with ID 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Rescheduling all scheduler Triggers in ERROR state
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=23 | HOSTNAME=INBLRL4354 | Restarting elements in the Thread 42
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.EngineInitializer startPlatform
INFO: Platform started successfully
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.EngineInitializer initializeEngine
INFO: Initialization of Bonita Engine done! ( took 48471ms)
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=42 | HOSTNAME=INBLRL4354 | Restarting elements for tenant 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=42 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Restarting 0 flow nodes for tenant 1
Feb 3, 2015 10:22:29 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=42 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | Restarting 0 processes for tenant 1
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘BonitaHomeFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘TokenGeneratorFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘AuthorizationFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘InternalSSOFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘BPMURLSupportFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘NoCacheFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘RestAPIAuthorizationFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘CacheFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘SecurityFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘ApplicationResourceCacheFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘TokenValidatorFilter’
Feb 3, 2015 10:22:29 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter ‘UrlRewriteFilter’
Feb 3, 2015 10:22:30 AM org.bonitasoft.console.server.listener.StudioWatchdogListener$1 run
WARNING: Bonita Studio watchdog process has started on 6969 with a delay of 20000ms
Feb 3, 2015 10:39:26 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=57 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | The user <helen.kelly> has installed process in version <3.0> with id <6586667284384504915>
Feb 3, 2015 10:39:26 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=57 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | The user <helen.kelly> has enabled process in version <3.0> with id <6586667284384504915>
Feb 3, 2015 10:39:40 AM org.apache.catalina.core.ApplicationContext log
INFO: RestletServlet: [Restlet] ServerServlet: component class is null
Feb 3, 2015 10:39:42 AM org.apache.catalina.core.ApplicationDispatcher doForward
FINE: Disabling the response for futher output
Feb 3, 2015 10:40:01 AM org.bonitasoft.engine.log.technical.TechnicalLoggerSLF4JImpl log
INFO: THREAD_ID=58 | HOSTNAME=INBLRL4354 | TENANT_ID=1 | The user <helen.kelly> has started the process instance <1> of process in version <3.0> and id <6586667284384504915>
Feb 3, 2015 10:40:11 AM org.bonitasoft.console.common.server.servlet.ResourceServlet getResourceFile
SEVERE: Error while generating the response.
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:407)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:342)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:432)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:420)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91)
at org.bonitasoft.console.common.server.servlet.ResourceServlet.getResourceFile(ResourceServlet.java:194)
at org.bonitasoft.console.common.server.servlet.ResourceServlet.doGet(ResourceServlet.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.bonitasoft.forms.server.filter.ApplicationResourceCacheFilter.doFilter(ApplicationResourceCacheFilter.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:240)
at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:84)
at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
at org.apache.coyote.Response.doWrite(Response.java:499)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:402)
… 28 more
Feb 3, 2015 10:40:11 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [themeResource] in context with path [/bonita] threw exception [null] with root cause
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:366)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:240)
at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:84)
at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
at org.apache.coyote.Response.doWrite(Response.java:499)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:402)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:342)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:432)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:420)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:91)
at org.bonitasoft.console.common.server.servlet.ResourceServlet.getResourceFile(ResourceServlet.java:194)
at org.bonitasoft.console.common.server.servlet.ResourceServlet.doGet(ResourceServlet.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.bonitasoft.forms.server.filter.ApplicationResourceCacheFilter.doFilter(ApplicationResourceCacheFilter.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.bonitasoft.console.security.SessionFixationValve.invoke(SessionFixationValve.java:77)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:662)…

please help me@antoine.mottier…i was using it in my project…

can you put a link up to the bos file, I’ll download it and try it here where I’ve already succeeded in doing what you are trying to do.

regards
Seán