This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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