Background
For Java projects, quartz is used to schedule tasks, and then a strange problem occurs. When adding job scheduling, it is found that the status of write scheduled tasks directly becomes error, or it becomes error after running once or twice. At that time, I was still wondering how this could happen. It is OK to check the log and send modern codes without errors. Manual execution is OK. Then I found that two services are running the same database
Quartz timing task is configured in the database
Then it is found that a server has a very old version of code, so that the corresponding job class cannot be found at runtime, and then the state directly changes to error. Just turn off the older services. Or the two service codes are consistent
terms of settlement
1. Check which service processes are scheduled in the current database
SQL command: show processlist;
It will display the of all processes accessing the database you specify
Then find the corresponding server, update the code or stop one of the services
Read More:
- Springboot integrates quartz timing tasks
- Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException:
- [QT] solve the problem that the trigger of QPushButton cannot trigger setvisible
- ORA-04098: trigger ‘SYS.GGS_DDL_TRIGGER_BEFORE’ is invalid and failed re-validation
- DB2 timed task execution stored procedure cannot complete scheduler thread’s initialization
- Springboot uses druid to log in MySQL. An error occurred: access denied: errorcode 1045, state 28000
- Debian/Ubuntu uses proxy for gpg and apt-key-error resolution: gpg: keyserver receive failed: Connection timed out
- 3. Idea creates a springboot project, and spring initializer reports an error Error:connect timed out
- Unity about meshcollider collider cannot trigger collision event
- Spring integrates JUnit configuration
- Spring boot integrates es cluster error report collection
- Spring boot integrates Mongo to solve some common connection and permission problems. Docker compose installs Mongo
- Error: JMeter monitors Linux system performance java.net.ConnectException : Connection timed out: connect
- Mybatis integrates Oracle query and reports an error in the datetime type field
- Viewing crontab log of timed tasks in Linux
- SQL Msg 18054, Level 16, State 1
- [resolved] exception java.net.ConnectException : Error opening socket to server Connection timed out.
- java.sql.SQLException : IO error: socket read timed out!
- Several ways to view spark task log
- Error: 7884, Severity: 20, State: 1