This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes FATAL ERROR in native method: Bad global or local ref passed to JNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "FATAL ERROR in native method: Bad global or local ref passed to JNI" Watch "FATAL ERROR in native method: Bad global or local ref passed to JNI" New topic
Author

FATAL ERROR in native method: Bad global or local ref passed to JNI

Weili Ong
Greenhorn

Joined: May 08, 2012
Posts: 3
I have gotten this error when setting the -Xcheck:jni option, and calling my native method.

The error is :
FATAL ERROR in native method: Bad global or local ref passed to JNI

I shall paste the native method (C code) here, hope that anybody who knows what is wrong with this piece of code, will enlighten me. Thank you.


Thanks a lot.

 
jQuery in Action, 2nd edition
 
subject: FATAL ERROR in native method: Bad global or local ref passed to JNI