File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FATAL ERROR in native method: Bad global or local ref passed to JNI