zoukankan      html  css  js  c++  java
  • xxl-job 的一个小bug: DataTables warning: table id=job_list

    我遇到的问题,基本和 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版本 其实是解决了这个问题!!

  • 相关阅读:
    mysql主从复制+读写分离
    lnmp平台菜鸟入门级笔记
    Shell编程
    Shell编程之--“grep-awk-sed” 基础用法汇总
    Nginx
    LB负载均衡之Nginx-Proxy
    LB(Load balance)负载均衡集群-LVS
    HA(High available)-Keepalived高可用性集群(双机热备)单点实验
    HA(High available)--Heartbeat高可用性集群(双机热备)
    linux -小记(3) 问题:linux 安装epel扩展源报错
  • 原文地址:https://www.cnblogs.com/FlyAway2013/p/13166220.html
Copyright © 2011-2022 走看看