Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It seems that that the cron entry syntax you are using is not supported by Spring. Apparently, Spring 3.x only supports "classical" cron entry formats ... as documented in the <a href="http://www.manpagez.com/man/5/crontab/" rel="nofollow"><code>crontab(5)</code> manual entry</a>. Note that "x#y" syntax is not supported. See also the javadoc for the <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/scheduling/support/CronSequenceGenerator.html" rel="nofollow">Spring <code>CronSequenceGenerator</code> class</a>.</p> <p>But the syntax you are using appears to be the <a href="http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06" rel="nofollow">Quartz crontab expression</a> syntax. </p> <hr> <p><strong>UPDATE</strong></p> <p>A brief examination of the <a href="http://grepcode.com/file/repository.springsource.com/org.springframework/org.springframework.context/3.2.1/org/springframework/scheduling/support/CronSequenceGenerator.java#CronSequenceGenerator.setNumberHits%28java.util.BitSet,java.lang.String,int,int%29" rel="nofollow">source code</a> for <code>CronSequenceGenerator</code> in Spring 3.2.1 has no sign of support for "#" in field 6. Indeed, the line numbers match up with your stacktrace, so I'm confident that the following answer is definitive.</p> <blockquote> <p>How can I achieve this Cron expression.</p> </blockquote> <p>You can't with Spring. Spring does not support that kind of Cron expression. If you want to use that kind of expression, you will have to switch to using the Quartz scheduler.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload