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

Potential deadlock in URLClassLoaderFirst

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6.0
    • 4.7.0
    • container system
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: