Atomikos Forum

ClassLoaderHelper doesn't fallback to Class.forName()

I just updated to the newly release 3.3 and noticed that my OSGi based application was now failing with a NullPointerException.

I traced the problem down to the ClassLoaderHelper, which when it falls back to doing a Class.forName() to load a class, isn't assigning it to clazz, so the method just
returns null.

Heres a patch:

--- ./sources/com/atomikos/util/ClassLoadingHelper.java    2008-05-21 13:47:39.000000000 +1200
+++ ./sources/com/atomikos/util/ClassLoadingHelper.java~    2008-05-14 18:34:00.000000000 +1200
@@ -53,7 +53,7 @@
         try {
             clazz = Thread.currentThread().getContextClassLoader().loadClass( className );
         } catch ( ClassNotFoundException nf ) {
-            clazz = Class.forName ( className );
+            Class.forName ( className );
         }
         return clazz;
     }
Mark Derricutt Send private email
Wednesday, May 21, 2008
 
 
Thanks! We've created a case for this, to be included in the next release.
Guy Pardon Send private email
Friday, May 23, 2008
 
 
Cheers.  Is there a case number I can track at all?  And do you have any ETA for when a new release might be made?
Mark Derricutt Send private email
Monday, May 26, 2008
 
 
Hi,

Our issue tracker is optimized at respecting and tracking customer support SLAs, not in public access.

That being said, a new 3.3.1 release could be ready as soon as tomorrow or the day after.

Guy
Guy Pardon Send private email
Monday, May 26, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics