Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JNI: DestroyJavaVM giving error / core dump

Thread Tools

JNI: DestroyJavaVM giving error / core dump

Posts: n/a
I am calling Java methods from C++ program using JNI invocation APIs.
Program works fine most of the time but sometime it crashes with
coredump. I analyzed coredump and it seems DestroyJavaVM is causing
core dump. This could be some error in my program or are there any
issues with DestroyJavaVM API. As it is mentioned that for JDK 1.2 it
always return error. And in my case it is the case that it is always
returning error.

"Is there any way to know what exactly is the error after
DestroyJavaVM is called i.e. anything similar to perror() or
excDescribe() ??????"

Following output is generated on program execution, if error is
ignored and program is called many no of times.

JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to ./javacore250650.1086695056.txt
JVMDG215: Dump Handler has Processed Exception Signal 4.
Illegal instruction(coredump)
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dump complete java VM state as core dump (not via OS) possible? halfdog Java 12 02-21-2013 06:14 AM
JNI, threads are still running after DestroyJavaVM() Olivier GROSSET-GRANGE Java 2 02-19-2013 11:44 PM
What does "DestroyJavaVM" ... waiting on condition " in thread dumpmean ? Java 1 05-01-2009 05:10 PM
JNI for DELPHI : DestroyJavaVM Problem zorba Java 2 03-22-2005 04:03 PM
DestroyJavaVM() never returns MikL Java 1 02-15-2005 07:20 AM