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

SOAPBindingUtil 'leaks' proxy classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3, 2.2.11
    • 2.2.12, 2.3.1
    • Soap Binding
    • None

    Description

      org.apache.cxf.tools.util.SOAPBindingUtil.getProxy(Class<T>, Object) creates proxies in the same class loader as the class it is proxying.

      This essentially leaks them, since the classes being proxied are prone to be in the system class loader, but the proxies are being created on behalf of the current thread.

      The simplest improvement is to create them in the context class loader, so that (for example) the wsdl2java mojo can arrange for them to be GC-ed.

      Another interesting question is whether there should be some sort of cache: it seems to me that we're creating proxies for the same IBM WSDL soap binding impl class over and over.

      Attachments

        Activity

          People

            bmargulies Benson Margulies
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: