Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2889

Concurrency Problem in BeanFactoryTypeConverter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Complete
    • 2.1.4, 2.2. GA
    • 3.0 M1, 2.1.5, 2.2.1
    • Core

    Description

      Consider a transformer:

      public String transform(String payload, @Header("id") String uuid) {
      ...
      }
      

      The 'id' header is converted from UUID to String; however, the BeanFactoryTypeConverter is not thread-safe...

      editor.setValue(value);
      String text = editor.getAsText();
      

      So, concurrent messages can get the value of some-other conversion.

      Attachments

        Issue Links

          Activity

            People

              grussell Gary Russell
              grussell Gary Russell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: