Results 1 to 6 of 6

Thread: Infinite loop setting a handler after a router

  1. #1
    Join Date
    Jun 2008
    Posts
    9

    Default Infinite loop setting a handler after a router

    Hi all

    I have detected a serious bug. If i put a handler after a router, the handler's return causes an infinite loop (or StackOverflow).

    I have modified cafe demo putting a emtpyHandler after the Router and before coldDrinks handler.

    I have attached the zipped example.

    Obviously the error has been detected in other project, where causes a StackOverflow Exception, but because the size i cannot attach it.
    Attached Files Attached Files

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    Are you running with the M6 release? If so, I believe you are experiencing this issue: http://jira.springframework.org/browse/INT-358

    Unfortunately it was discovered very shortly after that release but it was fixed immediately. As mentioned in JIRA, if using any components after a router, any release from continuous integration build #1009 onward will avoid this problem (committed on August 23rd): https://fisheye.springframework.org/...ation/?cs=1009

  3. #3
    Join Date
    Jun 2008
    Posts
    9

    Default

    Yes, it's the same problem. Thanks

  4. #4
    Join Date
    Jun 2008
    Posts
    9

    Default

    Where can i download continuous integration builds?

  5. #5
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    You can get the link from the Integration homepage:
    http://www.springframework.org/spring-integration

    You can for example get their latest trunk from:
    https://src.springframework.org/svn/spring-integration/

    If you are using eclipse you need to install the Ivy plugin for the required dependencies. All you need is to start the ant script as mentioned here:
    http://forum.springframework.org/showthread.php?t=60435

    Tai

  6. #6
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    Or if you are only interested to solved this infinite loop then you should get the M6 source for MessageBuilder and change the method isEligibleForCopying() (as I mentiond in http://jira.springframework.org/browse/INT-358):

    Code:
        private boolean isEligibleForCopying(String key) {
            return !(key.equals(MessageHeaders.ID)
                    || key.equals(MessageHeaders.TIMESTAMP)
                    || key.equals(MessageHeaders.NEXT_TARGET));
        }
    Attach you can also download my patch .
    Attached Files Attached Files

Posting Permissions

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