Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: ftp:inbound-channel-adapter - No unique bean of type FileReadingMessageSource

  1. #11
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,015

    Default

    Your cron expression is bad; it means every 10 seconds during the 0th minute (15:00 and 16:00 only).

    Code:
    cron="*/10 * 15-16 * * MON-FRI"
    works fine for me
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  2. #12

    Default

    Thanks. Its working now.

  3. #13

    Default Cron Expression on file inbound adapter

    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.

  4. #14
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,015

    Default

    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

  5. #15

    Default

    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?

  6. #16
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,015

    Default

    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

  7. #17

    Default

    Thanks and sorry too to "understand it as a cron forum".

  8. #18

    Default

    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.

  9. #19
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,015

    Default

    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

  10. #20

    Default

    ftp is on premise. I am thinking, how come it works on physical machine not in VM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •