directory
Problem description and solution process summary
Problem description
First of all, there is a timer in this project, and then it seems that the timing task error causes the project not to start up, but it is not.
2020-11-19 15:22:06.141 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource 1609 - {dataSource-1} closed
2020-11-19 15:22:06.952 INFO 1352 --- [lerFactoryBean]] o.s.s.quartz.SchedulerFactoryBean : Starting Quartz Scheduler now, after delay of 1 seconds
2020-11-19 15:22:06.952 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean 665 - Starting Quartz Scheduler now, after delay of 1 seconds
Exception in thread "Quartz Scheduler [schedulerFactoryBean]" org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:671)
Caused by: org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called.
at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:557)
at org.quartz.impl.StdScheduler.start(StdScheduler.java:142)
at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:668)
To solve the process
At the beginning, I always thought that the project could not be started due to the timing task, but I ignored the error log above. I searched a lot about the timer error, but I couldn’t solve it. And then it turned out that there was another error. The Mybatis mapping file resultMap is filled incorrectly. It will be all right after the changes are done.
conclusion
In the face of error, must be calm and calm, good observation of the log. Only after observing the log can you quickly lock the cause of the error.
Read More:
- Springboot integrates quartz timing tasks
- Springboot integrates quartz timed task trigger_ State error resolution
- How to Fix error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarE
- Spring nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey
- nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property
- Request processing failed;nested exception is java.lang.*
- Initialization of bean failed; nested exception is java.lang.StackOverflowError
- org.springframework.dao.InvalidDataAccessApiUsageException: Bean object must not be null; nested exc
- [Solved] nested exception is com.alibaba.dubbo.rpc.RpcException: Failed t o invoke the method findPage
- SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error] with root
- DB2 timed task execution stored procedure cannot complete scheduler thread’s initialization
- Failed to instantiate org.mybatis.spring.SqlSessionTemplate Constructor threw exception
- org.apache.catalina.LifecycleException: Protocol handler start failed
- [Solved] org.mongodb.driver.cluster – Exception in monitor thread while connecting to server node1:27017
- Exception jsonmappingexception: out of start_ ARRAY token
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- ** exception error: undefined function appmon:start/0
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- tomcat Issues org.apache.catalina.LifecycleException: Failed to start component
- Error: (serious: a child container failed during start) (server component failed to start so Tomcat is unable)