[jboss-remoting-commits] JBoss Remoting SVN: r4146 - remoting2/branches/2.x/src/main/org/jboss/remoting/serialization.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Thu May 8 05:02:53 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-05-08 05:02:53 -0400 (Thu, 08 May 2008)
New Revision: 4146

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/ClassLoaderUtility.java
Log:
JBREM-978: Added log statements in catch blocks.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/ClassLoaderUtility.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/ClassLoaderUtility.java	2008-05-08 08:57:16 UTC (rev 4145)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/ClassLoaderUtility.java	2008-05-08 09:02:53 UTC (rev 4146)
@@ -24,12 +24,15 @@
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 
+import org.apache.log4j.Logger;
+
 /**
  * @author <a href="mailto:clebert.suconic at jboss.com">Clebert Suconic</a>
  */
 public class ClassLoaderUtility
 {
-
+   static Logger log = Logger.getLogger(ClassLoaderUtility.class);
+   
    /**
     * Tries to load the class from the current thread's context class loader. If
     * not successful, tries to load the class from the current instance.
@@ -59,6 +62,7 @@
       }
       catch (Throwable t)
       {
+         log.debug("Context classloader can't find class: " + classname, t);
       }
 
       if (clazz != null)
@@ -79,6 +83,7 @@
          }
          catch (Throwable t)
          {
+            log.debug("clazz classloader can't find class: " + classname, t);
          }
       }
 
@@ -98,6 +103,7 @@
       }
       catch (Throwable t)
       {
+         log.debug("system classloader can't find class: " + classname, t);
       }
 
       throw new ClassNotFoundException(classname);
@@ -135,6 +141,7 @@
          }
          catch (Throwable t)
          {
+            log.debug("clazz classloader can't find class: " + classname, t);
          }
       }
 
@@ -154,6 +161,7 @@
       }
       catch (Throwable t)
       {
+         log.debug("context classloader can't find class: " + classname, t);
       }
 
 
@@ -173,6 +181,7 @@
       }
       catch (Throwable t)
       {
+         log.debug("system classloader can't find class: " + classname, t);
       }
 
       throw new ClassNotFoundException(classname);




More information about the jboss-remoting-commits mailing list