2 Replies Latest reply on Sep 21, 2002 11:57 AM by James

    Java-level deadlock in Jboss UnifiedClassLoader

    James Newbie

      At deployment time during Jboss startup the following occurred and seems to cause the app server to freeze:

      Found one Java-level deadlock:
      =============================
      "Thread-13":
      waiting to lock monitor 0xa02b1c (object 0x32f13e8, a org.jboss.mx.loading.UnifiedClassLoader),
      which is held by "Thread-16"
      "Thread-16":
      waiting to lock monitor 0xa02a1c (object 0x333cce0, a org.jboss.mx.loading.UnifiedClassLoader),
      which is held by "Thread-13"

      Java stack information for the threads listed above:
      ===================================================
      "Thread-13":
      at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
      - waiting to lock <032F13E8> (a org.jboss.mx.loading.UnifiedClassLoader)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.java:234)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClassFromRepository(UnifiedLoaderRepository2.java:263)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderRepository2.java:143)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:283)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      - locked <0333CCE0> (a org.jboss.mx.loading.UnifiedClassLoader)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:130)
      at com.paytec.core.util.Utilities.createObject(Utilities.java:205)
      at com.paytec.core.config.ConfigurationUtilities.createFromConfiguration(ConfigurationUtilities.java:225)
      at com.paytec.adapter.core.AdapterClient.setTransmitter(AdapterClient.java:118)
      at com.paytec.adapter.core.AdapterClient.setConfiguration(AdapterClient.java:213)
      at com.paytec.core.config.ConfigurationUtilities.createFromConfiguration(ConfigurationUtilities.java:229)
      at com.paytec.adapter.core.AdapterServer.run(AdapterServer.java:73)
      at java.lang.Thread.run(Thread.java:536)
      "Thread-16":
      at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
      - waiting to lock <0333CCE0> (a org.jboss.mx.loading.UnifiedClassLoader)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.java:234)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClassFromRepository(UnifiedLoaderRepository2.java:263)
      at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderRepository2.java:143)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:283)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
      - locked <032F13E8> (a org.jboss.mx.loading.UnifiedClassLoader)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:130)
      at com.paytec.core.util.Utilities.createObject(Utilities.java:205)
      at com.paytec.core.config.ConfigurationUtilities.createFromConfiguration(ConfigurationUtilities.java:225)
      at com.paytec.adapter.core.AdapterClient.setTransmitter(AdapterClient.java:118)
      at com.paytec.adapter.core.AdapterClient.setConfiguration(AdapterClient.java:213)
      at com.paytec.core.config.ConfigurationUtilities.createFromConfiguration(ConfigurationUtilities.java:229)
      at com.paytec.adapter.core.AdapterServer.run(AdapterServer.java:73)
      at java.lang.Thread.run(Thread.java:536)


      My box is running:
      19:52:32,060 INFO [Server] JBoss Release: JBoss-3.0.2 CVSTag=JBoss_3_0_2
      19:52:32,390 INFO [Server] Home Dir: E:\projects\eve-dev\jboss3
      19:52:32,390 INFO [Server] Home URL: file:/E:/projects/eve-dev/jboss3/
      19:52:32,390 INFO [Server] Library URL: file:/E:/projects/eve-dev/jboss3/lib/
      19:52:32,400 INFO [Server] Patch URL: null
      19:52:32,400 INFO [Server] Server Name: default
      19:52:32,400 INFO [Server] Server Home Dir: E:\projects\eve-dev\jboss3\server\default
      19:52:32,410 INFO [Server] Server Home URL: file:/E:/projects/eve-dev/jboss3/server/default/
      19:52:32,410 INFO [Server] Server Data Dir: E:\projects\eve-dev\jboss3\server\default\db
      19:52:32,410 INFO [Server] Server Temp Dir: E:\projects\eve-dev\jboss3\server\default\tmp
      19:52:32,410 INFO [Server] Server Config URL: file:/E:/projects/eve-dev/jboss3/server/default/conf/
      19:52:32,410 INFO [Server] Server Library URL: file:/E:/projects/eve-dev/jboss3/server/default/lib/
      19:52:32,410 INFO [Server] Root Deployemnt Filename: jboss-service.xml
      19:52:32,420 INFO [Server] Starting General Purpose Architecture (GPA)...
      19:52:33,272 INFO [ServerInfo] Java version: 1.4.0_01,Sun Microsystems Inc.
      19:52:33,272 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.0_01-b03,Sun Microsystems Inc.
      19:52:33,272 INFO [ServerInfo] OS-System: Windows NT 4.0,x86

      I'm not sure if there is something in one of my classes that could be causing this lock, but thanks for any help that can be provided,
      James