liqingwang opened a new issue, #13840:
URL: https://github.com/apache/dolphinscheduler/issues/13840

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Crontab check and schedule use two crontab classes but will throw 
`org.apache.dolphinscheduler.service.exceptions.CronParseException: Parse corn 
expression:` exception.
   
   
   ### What you expected to happen
   
   Runs expect.
   
   ### How to reproduce
   
   1. Config crontab use tools.
   
![image](https://user-images.githubusercontent.com/20885366/229078982-605c301f-a834-4986-906b-658e19c9d54c.png)
   2. Click `Execute time` and get an error.
   <img width="507" alt="image" 
src="https://user-images.githubusercontent.com/20885366/229079094-99f70d31-7242-4e74-ab00-57a28fbb4e38.png";>
   3. But can submit success.
   <img width="354" alt="image" 
src="https://user-images.githubusercontent.com/20885366/229080281-d917aef7-5380-42dc-bede-31cb7941041a.png";>
   4. Runs error.
   
   ```
   [ERROR] 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable:[696] 
- [WorkflowInstance-98287][TaskInstance-0] - Start workflow error
   org.apache.dolphinscheduler.service.exceptions.CronParseException: Parse 
corn expression: [0 0 13/0 * * ? *] error
   at 
org.apache.dolphinscheduler.service.cron.CronUtils.parse2Cron(CronUtils.java:84)
   at 
org.apache.dolphinscheduler.service.cron.CronUtils.getFireDateList(CronUtils.java:131)
   at 
org.apache.dolphinscheduler.service.cron.CronUtils.getSelfFireDateList(CronUtils.java:228)
   at 
org.apache.dolphinscheduler.service.cron.CronUtils.getSelfFireDateList(CronUtils.java:198)
   at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.initTaskQueue(WorkflowExecuteRunnable.java:887)
   at 
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteRunnable.call(WorkflowExecuteRunnable.java:685)
   at 
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:750)
   Caused by: java.lang.IllegalArgumentException: Failed to parse cron 
expression. Period 0 not in range [0, 23]
   at com.cronutils.parser.CronParser.parse(CronParser.java:131)
   at 
org.apache.dolphinscheduler.service.cron.CronUtils.parse2Cron(CronUtils.java:82)
   ... 9 common frames omitted
   Caused by: java.lang.IllegalArgumentException: Period 0 not in range [0, 23]
   ```
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to