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

EndpointReferenceUtils.convertToXML() causes ConcurrentModificationException under load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.4.3
    • Core
    • None
    • Unknown

    Description

      If EndpointReferenceUtils.convertToXML() is called very often by a service implementation it causes ConcurrentModificationException.

      [2011-09-08 03:08:00.038:http-17600-12] ERROR
      org.example.service.LocatorServiceImpl
      java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
      at java.util.HashMap$KeyIterator.next(HashMap.java:828)
      at org.apache.cxf.common.util.WeakIdentityHashMap.keySet(WeakIdentityHashMap.java:95) at
      org.apache.cxf.common.util.CacheMap.updateMainDataMap(CacheMap.java:57) at
      org.apache.cxf.common.util.CacheMap.entrySet(CacheMap.java:78) at
      org.apache.cxf.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:148) at
      org.apache.cxf.wsdl.EndpointReferenceUtils.convertToXML(EndpointReferenceUtils.java:1018) at
      org.example.service.LocatorServiceImpl.createEndpoint(LocatorServiceImpl.java:461) at
      org.example.service.LocatorServiceImpl.listEndpoints(LocatorServiceImpl.java:277)

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            owulff Oliver Wulff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: