Home > Default > Jni error libjvm

Jni error libjvm

October 11Hits:1
Advertisement
Hi,
i use jni to wrap a cpp-Framework. If I to start the wrapped code out of eclipse it works. (eclipse?? In a sun forum, sorry). My problem is if I try to start my programm out of a linux console/shell I get a hs_err_log.
# An unexpected error has been detected by Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x062ef37f, pid=6511, tid=3084348304
# Java VM: Java HotSpot(TM) Server VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# V [libjvm.so+0x2ef37f]
# An error report file with more information is saved as hs_err_pid6511.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Can someone help me out? Are there some parameters I forgot to set?
thanks

Answers

Hi and thanks,
i analyzed the problem a little bit more, I think it is an segmentation fault.
I call function like:
CallLongMethod
FindClass
NewObject
etc.
no error.
But everytime at the some call (env->CallBooleanMethod(m_jobj, method, string, _data);) the programm crashs. I looked at the parameters, all not null. I'm not sure, but is it possible that there is too little memory, if a start the application from a shell?
And how can I do adequate error checking?
Thanks

Read other 9 answers

Tags:

Related Articles

  • Jni error libjvmOctober 11

    Hi, i use jni to wrap a cpp-Framework. If I to start the wrapped code out of eclipse it works. (eclipse?? In a sun forum, sorry). My problem is if I try to start my programm out of a linux console/shell I get a hs_err_log. # An unexpected error has b

  • JNI errorOctober 11

    Hi for everyone... I'm having a problem with JNI, I have a C program, and i used Java and JNI to create an interface for it... I've done all like the Tutorial, created the shared library, created my interface... i've created a little class, just to t

  • Remote-Conrol a COM-Application via JNI Error: RPC_E_WRONG_THREADNovember 30

    hi, we have written a DLL which launches and remotecontrols an application via Microsoft COM. This DLL is called by a Swing-GUI-Application via JNI. It works fine over years. Now we have rewritten our application as an rcp-plugin. The COM-Appplicatio

  • Jni error message interpretationNovember 30

    Hello all, I am using JNI and I am receiving an error here and there. I would like to interpret the message that JNI launches when this error happens. In particular it would be good to understand this part: An unexpected exception has been detected i

  • JNI errors with C++ ULONGNovember 30

    I apologize in advance if I am posting this on the wrong forum, I didn't see one for JNI. Does anyone know anything about passing a ULONG number from C++ to Java through JNI?? I am creating a jlong variable: jlong tag = (long) e->tag();where e->tag(

  • JNI  error in method callNovember 30

    hello friends, I have created WinScheduler.java file in com.csl.client package.. by searching through google i have found its different from creating header file for package than to simple .java file without package. So creating header file using pac

  • Jni error with jstringNovember 30

    All i'm trying to do is get a version string from the library. The line of code looks like this: return (*env)->NewStringUTF(env,"1.00"); and i get this error when compiling: base operand of '->' has non-pointer type 'JNIEnv_' The tutorial

  • Javadoc: error Illegal package name: JNINovember 30

    Hi, After writting the Java code using native method, Like package jni; public class jniFile { static{ System.loadLibrary("jniFile"); public jniFile() { System.out.println("Inside constructor "); private native void printMessage(String

  • JVM core dump - JNI codeNovember 30

    I am using JNI in my Java application , 12 hours after running my test case get a JVM crash - 1) These are the parameters with which i invoke my Java program java -d64 -Xcheck:jni -Xmx2560M -Xms2560M -Xss256k RunQueries 2) The Heap output at the time

  • Error while running msgshow.javaOctober 11

    Error: Could not find the main class. Error: A JNI error has occurred, please check your installation and try again these errors occur while i run msgshow.java file please help me out in this thanksjackwenttohill wrote: MOD: Please don't post spam he

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.519 s.