我们有间歇性触发查询的工作,我们正面临以下问题
{Date = [Tue,26 Jun 2018 05:31:38 GMT]}有效载荷:Could not open JDBC Connection for transaction; nested exception is java.lang.IllegalArgumentException: Connection must not be null
org.springframework.transaction.CannotCreateTransactionException:无法打开JDBC连接进行事务处理;嵌套异常为java.lang.IllegalArgumentException:TransactionAspectSupport.java方法上的连接不得为null方法:invokeWithinTransaction行号:257e7bf97b26dfebcc1c41a5f52544df01c ------------------------- ------------- INFO [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4] InvalidTransactionValidation.execute(96)|无法打开JDBC连接进行事务;嵌套异常是java.lang.IllegalArgumentException:连接不能为null org.springframework.transaction.CannotCreateTransactionException:无法打开JDBC连接进行事务处理;不能将JDBC连接打开。嵌套异常是java.lang.IllegalArgumentException:org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:243)处的连接不能为null 373)在org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:420)在org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:257)在org.springframework.transaction.Interceptor。 com的org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)的org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)的.invoke(TransactionInterceptor.java:95) sun.reflect.Gene上的sun.proxy。$ Proxy132.moveInvalidTransaction(未知源)在org.springframework.util.MethodInvoker.invoke(java.lang.reflect.Method.invoke(Method.java:498)处的sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)的ratingMethodAccessor1605.invoke(未知源) org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:111)上的org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean $ MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:321)的MethodInvoker.java:269) org.quartz.simpl.SimpleThreadPool $ WorkerThread.run(SimpleThreadPool.java:549)处的.core.JobRunShell.run(JobRunShell.java:216)原因:java.lang.IllegalArgumentException:org.springframework上的连接不得为null org.springframework.jdbc.datasource.ConnectionHolder。(ConnectionHolder.java:75)上的org.springframework.jdbc.datasource.SimpleConnectionHandle。(SimpleConnectionHandle.java:40)上的.util.Assert.notNull(Assert.java:112) org.springframework.jdbc.datasource.DataSou rceTransactionManager.doBegin(DataSourceTransactionManager.java:209)...还有17个信息[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4] InvalidTransactionValidation.execute(93)| moveInvalidTransaction在877121026开始于:2018-06-25T22:31:38.521信息[catalina-exec-30] FeedServiceImpl.post(106)|馈送在63293毫秒内完成。信息[catalina-exec-30] FeedServiceImpl.post(107)| Feed服务已结束。信息[catalina-exec-30] LoggingOutInterceptor.log(151)|出站邮件--------------------------- ID:95850响应代码:204内容类型:text / xml