Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7869

Infinite loop in rest client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.6, 3.1.17
    • 3.2.7, 3.1.18
    • JAX-RS
    • None
    • Unknown

    Description

      Hello,

      During stress tests, we found several threads with this pattern:
           java.lang.Thread.State: RUNNABLE
               at java.util.WeakHashMap.put(WeakHashMap.java:453)
               at java.util.Collections$SetFromMap.add(Collections.java:5461)
               at org.apache.cxf.jaxrs.client.spec.ClientImpl$WebTargetImpl.initTargetClientIfNeeded(ClientImpl.java:358)

      This same issue has been found by others:

      http://www.adam-bien.com/roller/abien/entry/endless_loops_in_unsychronized_weakhashmap

      Best regards.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            fcourtau François Courtault
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: