Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-2070

Potential deadlock in URLClassLoaderFirst

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.6.0
    • Fix Version/s: 4.7.0
    • Component/s: container system
    • Labels:
      None
    • Environment:
      NA

      Description

      Calling org.apache.openejb.util.classloader.URLClassLoaderFirst#loadClass from one thread may cause a deadlock if Class.forName is called from another thread, as this internally calls ClassLoader.getCallerClassLoader() - Which may be the same URLClassLoaderFirst instance.

      Adding an ReentrantLock should be a viable solution.

        Attachments

          Activity

            People

            • Assignee:
              andyg Andy Gumbrecht
              Reporter:
              andyg Andy Gumbrecht
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: