Here is some additional information. I don't get this runtime error when I get the CtClass object using ClassPool.get() or when I call functions like getName() or getPackageName() for the obtained CtClass object. However, when I call functions like getModifiers() or getInterfaces(), I get the exception. Here is snip of the stack trace.
Please let me know why I am getting this issue. Thanks!
made a work-around by loading and transforming classes using a standard ClassFileTransformer and using the bytes of the loading class to make CtClass objects using ClassPool.makeClassIfNew() function. Still getting exceptions but i seem to have gotten a little further.