the big fundmental
2010-03-04 13:04
采纳率: 100%
浏览 239
已采纳

jbpm邮件发送

我想在jbpm流程中饭送邮件,但是老不成功,在网上搜了好多资料,都弄不好,老报错:

xception in thread "main" org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@834cfb
at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)
at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:44)
at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:201)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:64)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:37)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
at mail.InlineMailTest.main(InlineMailTest.java:28)
Caused by: javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:319)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:50)
... 14 more
我的配置信息如下:















有的论坛说要自定义验证类,所以自己写了个简单的,
public class MyAuthenticator extends Authenticator {

protected PasswordAuthentication getPasswordAuthentication(){

return new PasswordAuthentication("liushu1234", "****");

}

}
只为测试使用。但是还是报以上的错误,同样的配置,我用java mail试了下,邮件可以发送成功。不知道有谁有jbpm4邮件发送成功的例子,让我参考一下。我的QQ是354571722,谢谢。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

3条回答 默认 最新

  • 临远 2010-03-04 15:39
    最佳回答

    没测试过jbpm 4.0,我们现在用的jbpm 4.3,发送邮件没有问题

    评论
    解决 无用
    打赏 举报
查看更多回答(2条)

相关推荐 更多相似问题