Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13792

Periodic crashes with ClassLoader related locking issue

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.4.2
    • Fix Version/s: None
    • Component/s: Classloader
    • Labels:
      None
    • Environment:
      jdk1.8.0_65
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      This issue appears only on a heavily used wiki (XWiki SAS intranet).

      Here you can see a "deadlock in a single thread" which might be a problem related to Java 8. Even if it is a Java 8 related issue, it should be fixable by defensive coding in XWiki.

      "https://marketing.xwikisas.com/xwiki/bin/view/Marketing+Action+Plan/" #2397 daemon prio=5 os_prio=0 tid=0x00007f2b8f216000 nid=0x3443 waiting for monitor entry [0x00007f2b672b3000]
         java.lang.Thread.State: BLOCKED (on object monitor)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:404)
      	- waiting to lock <0x00000000a2d69238> (a org.xwiki.classloader.NamespaceURLClassLoader)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.loadClass(ContextNamespaceURLClassLoader.java:191)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
      	- locked <0x00000000e479fff8> (a org.xwiki.classloader.URIClassLoader)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:187)
      	at org.hibernate.dialect.Dialect.instantiateDialect(Dialect.java:223)
      	at org.hibernate.dialect.Dialect.getDialect(Dialect.java:215)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                calebjamesdelisle CalebJamesDeLisle
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: