hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r442689 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/io/ObjectWritable.java
Date Tue, 12 Sep 2006 19:57:13 GMT
Author: cutting
Date: Tue Sep 12 12:57:12 2006
New Revision: 442689

URL: http://svn.apache.org/viewvc?view=rev&rev=442689
Log:
HADOOP-521.  Fix another NullPointerException finding the ClassLoader when using libhdfs.
 Contributed by Owen.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/io/ObjectWritable.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=442689&r1=442688&r2=442689
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue Sep 12 12:57:12 2006
@@ -10,6 +10,9 @@
     explicitly specified.  Also add a test case for this.
     (omalley via cutting)
 
+ 3. HADOOP-521.  Fix another NullPointerException finding the
+    ClassLoader when using libhdfs.  (omalley via cutting)
+
 
 Release 0.6.0 - 2006-08-08
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/io/ObjectWritable.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/io/ObjectWritable.java?view=diff&rev=442689&r1=442688&r2=442689
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/io/ObjectWritable.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/io/ObjectWritable.java Tue Sep 12 12:57:12
2006
@@ -216,9 +216,7 @@
     } else {                                      // Writable
       Class instanceClass = null;
       try {
-        instanceClass = 
-          Class.forName(UTF8.readString(in), true, 
-                        Thread.currentThread().getContextClassLoader());
+        instanceClass = conf.getClassByName(UTF8.readString(in));
       } catch (ClassNotFoundException e) {
         throw new RuntimeException("readObject can't find class", e);
       }



Mime
View raw message