java.lang.RuntimeException

CronExpression '0/5' is invalid.

Solutions on the web9952

  • CronExpression '0 0 0 ? * SUN#5,MON#5' is invalid,.
  • CronExpression '0 0 * * * *' is invalid.
  • Stack trace

    • java.lang.RuntimeException: CronExpression '0/5' is invalid. at org.quartz.CronScheduleBuilder.cronSchedule(CronScheduleBuilder.java:111)[quartz-2.2.1.jar:na] at com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController.createTrigger(JobScheduleController.java:83)[elastic-job-lite-core-2.0.0-SNAPSHOT.jar:na] at com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController.scheduleJob(JobScheduleController.java:58)[elastic-job-lite-core-2.0.0-SNAPSHOT.jar:na] at com.dangdang.ddframe.job.lite.api.JobScheduler.init(JobScheduler.java:90)[elastic-job-lite-core-2.0.0-SNAPSHOT.jar:na] at com.cheng.test.JavaLiteJobMain.setUpScriptJob(JavaLiteJobMain.java:95)[test-classes/:na] at com.cheng.test.JavaLiteJobMain.main(JavaLiteJobMain.java:63)[test-classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_74] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_74] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_74] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_74] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)[idea_rt.jar:na] Caused by: java.text.ParseException: Unexpected end of expression. at org.quartz.CronExpression.buildExpression(CronExpression.java:494)[quartz-2.2.1.jar:na] at org.quartz.CronExpression.<init>(CronExpression.java:276)[quartz-2.2.1.jar:na] at org.quartz.CronScheduleBuilder.cronSchedule(CronScheduleBuilder.java:107)[quartz-2.2.1.jar:na] ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Once, 11 months ago
    Unknown user
    Once, 2 years ago