JBoss Community

Re: How to use Email service in JBPM 5.x?

created by rehankhan in jBPM - View the full discussion

i got error ,

come

org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn:1 - Email:2] -- Unable to send email

    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:132)

    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)

    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)

    at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)

    at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)

    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

    at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)

    at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194)

    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309)

    at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170)

    at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140)

    at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:132)

    at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1093)

    at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:315)

    at ProcessMain.main(ProcessMain.java:38)

Caused by: java.lang.RuntimeException: Unable to send email

    at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:65)

    at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:37)

    at org.jbpm.process.workitem.email.EmailWorkItemHandler.executeWorkItem(EmailWorkItemHandler.java:68)

    at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)

    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)

    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

    ... 14 more

Caused by: java.lang.RuntimeException: Connection failure

    at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:59)

    ... 19 more

Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. o5sm12992941pay.5

 

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)

    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)

    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)

    at org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:57)

    ... 19 more

Reply to this message by going to Community

Start a new discussion in jBPM at Community