0 Replies Latest reply on Aug 5, 2009 12:39 AM by 843810

    JNI GetMethodID() returns NULL

      I have written a JVMTI agent that does the following :

      On class load hook send the loaded class byte codes to a separate java process that does ASM byte code instrumentation explanation: the instrumentation does the following : on method entry I get some information and make a JNI call back into the agent to report some information. From within the native call I use JNI to do a findClass and then a getMethodID for the class that was instrumented. The findClass returns NULL! My hunch is that this has something to do with the classpath because if I hardcode something like : findClass("java/lang/Runnable")... it works. Any ideas?

      Edited by: Konigs on Aug 4, 2009 5:39 PM