JNI GetMethodID always return zero

From: Kiran (kiran.dpatil_at_gmail.com)
Date: 02/27/05


Date: 26 Feb 2005 23:40:48 -0800

Hi,

What could be the possible reason behind GetMethodID call failure?
What wrong with following code...

jclass resourceClass = env->FindClass( "java/util/ResourceBundle" );
jmethodID mid = env->GetStaticMethodID( resourceClass,
                                        "getBundle",
"(Ljava/lang/String;Ljava/util/Locale;Ljava/lang/ClassLoader;)Ljava/util/ResourceBundle");

FindClass works ok, so I assume VM is initialized well, but I might be
wrong?

Platform: Windows, JDK 1.4.

Thanks,
Kiran



Relevant Pages

  • Re: JNI GetMethodID always return zero
    ... Problem in following code was due to incorrect signature for return value... ... > What could be the possible reason behind GetMethodID call failure? ...
    (comp.lang.java.programmer)
  • Re: whodunnit: motherboard dead
    ... You are correct that static electricity probably is not ... Just not a more likely reason for failure. ... supply manufacturer provide a long list of numerical specs. ...
    (sci.electronics.basics)
  • Re: system return value makes for strange logic
    ... %%> of the failure. ... %% The reason is that systemreturns the exit status of the program it runs. ... %% exits with 0 on success and any number of non-zero values upon failure. ... that fails sets $? ...
    (comp.lang.perl.misc)
  • Re: Variable naming problem
    ... > Maybe we should talk about what constitutes a failure first. ... > failure is a condition the programmer can not reasonably expect or be ... If you define failures in that way, then don't all exceptions become ... simple reason: based on just the name "readLine," when I call the ...
    (comp.lang.java.programmer)
  • Re: Knackered crank?
    ... they decided to change it - the main reason ... Because it is a catastrophic failure, ... is in effect a 5" lever (pedal load from the spindle) bending it while ... And now, Octalink is another abandoned Shimano standard, ...
    (rec.bicycles.tech)