[jboss-cvs] JBossAS SVN: r88027 - branches/Branch_5_x/jmx/src/main/org/jboss/mx/loading.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 29 17:14:59 EDT 2009


Author: dereed
Date: 2009-04-29 17:14:59 -0400 (Wed, 29 Apr 2009)
New Revision: 88027

Modified:
   branches/Branch_5_x/jmx/src/main/org/jboss/mx/loading/LoadMgr3.java
Log:
[JBAS-6310] - Added logging to identify class loader problems


Modified: branches/Branch_5_x/jmx/src/main/org/jboss/mx/loading/LoadMgr3.java
===================================================================
--- branches/Branch_5_x/jmx/src/main/org/jboss/mx/loading/LoadMgr3.java	2009-04-29 21:04:12 UTC (rev 88026)
+++ branches/Branch_5_x/jmx/src/main/org/jboss/mx/loading/LoadMgr3.java	2009-04-29 21:14:59 UTC (rev 88027)
@@ -408,25 +408,26 @@
       }
       catch(Throwable e)
       {
-         boolean retry = e instanceof ClassCircularityError
+    	 log.trace("Class loading Task Run failed with exception", e);
+    	 boolean retry = e instanceof ClassCircularityError
             || e.getClass().equals(LinkageError.class);
          int numCCE = loadTask.incNumCCE();
+         
          if( retry && numCCE <= 10 )
          {
-            /* Reschedule this task after all existing tasks to allow the
+            log.info("Rescheduling failed Class loading Task");
+        	/* Reschedule this task after all existing tasks to allow the
             current load tasks which are conflicting to complete.
             */
             try
             {
-               if( trace )
-                  log.trace("Run failed with exception", e);
                // Reschedule and update the loadTask.threadTaskCount
                scheduleTask(loadTask, ucl3, Integer.MAX_VALUE, true, trace);
             }
             catch(Throwable ex)
             {
                loadTask.setLoadError(ex);
-               log.warn("Failed to reschedule task after LinkageError", ex);               
+               log.error("Failed to reschedule task after LinkageError", ex);               
             }
             if( trace )
                log.trace("Post LinkageError state, loadTask="+loadTask);
@@ -434,8 +435,7 @@
          else
          {
             loadTask.setLoadError(e);
-            if( trace )
-               log.trace("Run failed with exception, loadTask="+loadTask, e);
+            log.error("Not resheduling failed loading task, loadTask="+loadTask, e);
          }
       }
       finally




More information about the jboss-cvs-commits mailing list