I urgently need help with this. My program uses jdi to attach to another jvm. It catches MethodEntryEvents and this is all ok, what i need is to get the reference to the object that called the method and the instance (not the class) that the method belongs to. Obviously static methods will be different but those can be done easily. Any help at all will be hugely appreciated.