aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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.

 
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
 
Similar Threads
JNI problem
JNI_CreateJavaVM returns error
Returning String to Java from C via JNI
java.lang.UnsatisfiedLinkError
Problem with ReleaseStringUTFChars (Crash )