File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

some wierd run time error inJNI

 
john schildt
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic