permaculture playing cards*
The moose likes Other JSE/JEE APIs and the fly likes some wierd run time error inJNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "some wierd run time error inJNI" Watch "some wierd run time error inJNI" New topic
Author

some wierd run time error inJNI

john schildt
Greenhorn

Joined: Jun 19, 2006
Posts: 3
hello all.......
i m getting this when i tried to run my java prog which calls some c func using JNI....what does it want to say....what si wrong n where
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6fd912, pid=1212, tid=1452
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
# Problematic frame:
# V [jvm.dll+0x8d912]
#
# An error report file with more information is saved as hs_err_pid1212.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

Welcome to JavaRanch!

Your JVM is crashing, plain and simple. An "access violation" means that the program is trying to use memory it's not suppose to use, and that's what's causing the crash. This could be due to the C code using a NULL pointer, dereferencing something that's not actually a valid pointer, or many other things.

EIther use a debugger to step through your JNI code, or simply put some printf() calls in to trace where it's going, to narrow down the point at which the crash occurs.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: some wierd run time error inJNI