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

Concurrency Problem in BeanFactoryTypeConverter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Complete
    • Affects Version/s: 2.1.4, 2.2. GA
    • Fix Version/s: 3.0 M1, 2.1.5, 2.2.1
    • Component/s: Core
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: