Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-21311

SpringFramework caches a missed TypeConverter and user can not clean it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.12-GA
    • fuse-7.11.1-GA
    • Camel
    • None
    • Very Likely

    Description

      Once getProperties(String, Class) fails, it will never work for the same arguments.

      Attached a reproducer. There are 4 steps.

      • set Empty ArrayList // Object should be set in the ArrayList
      • do getProperty() // It will result null. Which is an expected behavior
      • set ArrayList // Now, there is an object in the ArrayList
      • do getProperty() // It should work. but actually, it will return null.

      log

      14:12:40.966 [Camel (MyCamel) thread #1 - timer://foo] INFO  org.mycompany.SampleBean - ArrayList size: 0
      14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO  org.mycompany.SampleBean - dummy object:null
      14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO  org.mycompany.SampleBean - dummy object(use workaround):[]
      14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO  org.mycompany.SampleBean - ArrayList size: 1
      14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO  org.mycompany.SampleBean - dummy object:null
      14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO  org.mycompany.SampleBean - dummy object(use workaround):[org.mycompany.Dummy@31d59fc1]
      

      Attachments

        Activity

          People

            ldemasi Luigi De Masi
            rhn-support-hfuruich Hisao Furuichi
            Daniel Olearcin Daniel Olearcin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: