6 Replies Latest reply on Sep 3, 2014 2:33 AM by Sergiu Pienar

    JBOSS - Waiting too long to get the classloader lock

    mariqn nenchev Novice

      Hi   I got very strange exception in my jboss log, which crashed jboss and i needed to restart it. Here is the log:

       


      {code}

       

      java.lang.IllegalStateException: Waiting too long to get the classloader lock: BaseClassLoader@715413{vfszip:/opt/jboss/jboss-5.1.0.GA/server/all/deploy/myapp.ear/}         at org.jboss.classloader.spi.base.BaseClassLoader.acquireLockFairly(BaseClassLoader.java:1032)         at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:774)         at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)         at java.lang.ClassLoader.loadClass(ClassLoader.java:300)         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)         at org.jboss.ejb3.common.lang.SerializableMethod.getClassFromName(SerializableMethod.java:307)         at org.jboss.ejb3.common.lang.SerializableMethod.toMethod(SerializableMethod.java:239)         at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:135)         at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:216)         at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)         at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)  This happened when some ejb tried to load data from database (postgres 8). I am using jboss 5.10 GA.

      {code}

       

      Regards.