corjam 2010-07-13 17:11
浏览 219
已采纳

spring自动发送邮件报错?

在每天的下午四点钟,执行某类中的方法,正常到达。
可是执行发送邮件send时报错。因为我要在这里查询数据库。
是不是session未关闭的原因。然后就发送,所以导致的呢。
请求支援~~~

错误消息:
at com.vstartek.crm.secutity.mail.SimpleMailServer.sendTextMail(SimpleMailServer.java:41)
at com.vstartek.crm.secutity.service.QuBirthday.sendMail(QuBirthday.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
17:26:17,312 DEBUG ExceptionHelper:97 - Detected JDK support for nested exceptions.
17:26:17,328 INFO JobRunShell:207 - Job DEFAULT.birthTask threw a JobExecutionException:
org.quartz.JobExecutionException: Invocation of method 'sendMail' on target class [class com.vstartek.crm.secutity.service.QuBirthday] failed [See nested exception: java.lang.NoClassDefFoundError: javax/activation/DataSource]
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:287)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataSource
at com.vstartek.crm.secutity.mail.SimpleMailServer.sendTextMail(SimpleMailServer.java:41)
at com.vstartek.crm.secutity.service.QuBirthday.sendMail(QuBirthday.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:272)
... 3 more

  • 写回答

2条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 Materials studio8.0报错怎么解决(关键词-错误信息)
      • ¥20 vb6.0窗体中的vscroll控件无法响应鼠标滚轮事件,请教方法
      • ¥15 如何在linux服务器做视频静态资源访问接口
      • ¥15 Python Xpath对<em>标签的爬取结果变成了- -(关键词-Xpath)
      • ¥15 el-cascader懒加载模式选中单选框加载下层无数据问题
      • ¥15 promql 参数怎么忽视大小写查询
      • ¥50 swift使用textkit读取大文本文件速度慢的问题
      • ¥20 统信linux360企业浏览器 如何配置扩展程序?(图形界面我知道)
      • ¥100 c/c++实现DoubleArrayTrie
      • ¥15 在开发/迭代一款企业信息软件时会耗费你们多长时间?