File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "some wierd run time error inJNI" Watch "some wierd run time error inJNI" New topic

some wierd run time error inJNI

john schildt

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:
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


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:
subject: some wierd run time error inJNI
jQuery in Action, 3rd edition