xxl-job 的一個小bug: DataTables warning: table id=job_list - Ajax error. For more information about this error, please see http://datatables.net/tn/7


我遇到的問題,基本和 https://github.com/xuxueli/xxl-job/issues/840  是完全一樣的;

 

作者的解釋是:你好,應該是低版本存在JS緩存。強制刷新一下瀏覽器緩存,退出並重新登陸確認下。

 

 

 

不過我的 xxl 鏡像版本是 2.0.1; (其實表現是一樣的)

 

我使用下面的命令啟動:

docker run -e PARAMS='--spring.datasource.url=jdbc:mysql://rm-wz9rnxp3o7t6zg6o79o.mysql.rds.aliyuncs.com:3306/sffms?useUnicode=true&characterEncoding=UTF-8&useSSL=true&verifyServerCertificate=false --spring.datasource.username=sfsystem123 --spring.datasource.password=8QzlHgobZwkpzC53' -p 18088:8080 -v /tmp:/data/applogs --name xxl-job-admin -d xuxueli/xxl-job-admin:2.0.1

 

chrome瀏覽器界面的提示是:

 

 

 

難道是瀏覽器的問題嗎? 換了 ff 也是一樣的:

 

 

后台確實出現這樣的日志:

19:02:29.577 logback [main] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8080 (http)
19:02:29.588 logback [main] INFO  c.x.job.admin.XxlJobAdminApplication - Started XxlJobAdminApplication in 12.427 seconds (JVM running for 13.98)
19:02:49.443 logback [Quartz Scheduler [getSchedulerFactoryBean]] INFO  o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now, after delay of 20 seconds
19:02:49.546 logback [Quartz Scheduler [getSchedulerFactoryBean]] INFO  org.quartz.core.QuartzScheduler - Scheduler getSchedulerFactoryBean_$_bb83303b25881592564545098 started.
19:03:06.428 logback [http-nio-8080-exec-1] INFO  o.a.c.c.C.[.[.[/xxl-job-admin] - Initializing Spring FrameworkServlet 'dispatcherServlet'
19:03:06.428 logback [http-nio-8080-exec-1] INFO  o.s.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization started
19:03:06.463 logback [http-nio-8080-exec-1] INFO  o.s.web.servlet.DispatcherServlet - FrameworkServlet 'dispatcherServlet': initialization completed in 35 ms
19:03:10.950 logback [http-nio-8080-exec-6] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: ""]
19:03:18.911 logback [http-nio-8080-exec-7] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: ""]
19:03:25.382 logback [http-nio-8080-exec-7] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: ""]
19:17:42.040 logback [http-nio-8080-exec-2] WARN  o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: ""]

 

這就奇怪了; 按照作者的意思來說,可能是 瀏覽器緩存的問題; 可是清除緩存重新來了一遍, 還是這樣..  為什么呢?

 

后面發現,xxl的bug!( 可以認為是一個小bug, 其實就是 當xxl 數據庫為空的時候出現的, xxl_job_qrtz_trigger_group 表需要至少一行數據, 否則就出現這個提示... ), 可以認為是容器版本比較低了的原因, 新的xxl版本 其實是解決了這個問題!!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM