Your cron expression is bad; it means every 10 seconds during the 0th minute (15:00 and 16:00 only).
works fine for meCode:cron="*/10 * 15-16 * * MON-FRI"
Your cron expression is bad; it means every 10 seconds during the 0th minute (15:00 and 16:00 only).
works fine for meCode:cron="*/10 * 15-16 * * MON-FRI"
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware
Thanks. Its working now.
Hi,
0 0/15 22-7 * * MON-FRI, Is there anything wrong with this cron expression?
In the poller, when I provide this cron expression it throws exception
Could not instantiate bean class [org.springframework.scheduling.support.CronTrigger]: Constructor threw exception; nested exception is java.lang.IndexOutOfBoundsException: fromIndex: 22 > toIndex: 8
at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:110)
at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:280)
... 14 more
Caused by: java.lang.IndexOutOfBoundsException: fromIndex: 22 > toIndex: 8
When I provide the below expression
0/15 7-22 * * MON-FRI. It works.
22-7 should be 7-22
That should be obvious...java.lang.IndexOutOfBoundsException: fromIndex: 22 > toIndex: 8
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware
You are right. Sorry I got the point. Actually I forgot to mention one more point I want to schedule it from 23:00 hrs to morning 07:00 hrs in North American Eastern Time Zone? Is it possible to acheive it?
This is not really an "understanding cron" forum, but...
Code:"0 0/15 23,0-7 * * MON-FRI"
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware
Thanks and sorry too to "understand it as a cron forum".![]()
Hi,
I am facing one issue.. I have used to ftp inbound adapter. Whenever I deploy in the vm machine (RHEL 6). ftp inbound adapter not able to connect ftp and not able to poll and get the file payload. When I use my desktop or other physical Linux machine. It works as expected.
Could be a firewall issue - suggest you use wireshark or similar to check the network traffic.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware
ftp is on premise. I am thinking, how come it works on physical machine not in VM.