The crash happened outside the java virtual machine in native code

I have a biometric device with which I am given some C++ dlls. I am trying to call methods inside these using java (jna). I am loading the dll "zkemsdk.dll+" as follows:

zkemkeeper INSTANCE1 = (zkemkeeper)Native.loadLibrary("zkemsdk", zkemkeeper.class);//zkemsdk is the dll, I am loading the dll here.

Then, I am calling the function:

zkemkeeper.INSTANCE1.Z_Connect_NETEX("ip address",4370);//Z_Connect_NETEX is a function inside zkemsdk.dll

This returns me true or false based on whether am connected to the biometric device or not.Thus I am able to invoke this method without issues. But for other methods inside the dll, run time exception is thrown in console:

Can someone help me resolve this issue. ??? Following is the content of the log file generated.

# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0351fe3b, pid=1664, tid=3832
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [zkemsdk.dll+0xfe3b]
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Current thread (0x003a9000): JavaThread "main" [_thread_in_native, id=3832, stack(0x008c0000,0x00910000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000106
EAX=0x0090f7c4, EBX=0x00000001, ECX=0x00000000, EDX=0x00000001
ESP=0x0090f7b4, EBP=0x0090f848, ESI=0x00000096, EDI=0x003a9000
EIP=0x0351fe3b, EFLAGS=0x00010216
Top of Stack: (sp=0x0090f7b4)
0x0090f7b4: 00000000 0090f930 000003fc 00000103
0x0090f7c4: 0090f800 6d9532d0 373e92a0 00912ec5
0x0090f7d4: 00000401 0090f7d8 369860d1 0090f800
0x0090f7e4: 37390050 00000000 37390f90 00000000
0x0090f7f4: 0090f800 0090f930 003a9000 0090f830
0x0090f804: 10008fd8 0090f840 0090f930 00000008
0x0090f814: 0090f88c 0090fa28 0090f8f4 0090f848
0x0090f824: eb53f637 0351ffdc 00000096 00000003
Instructions: (pc=0x0351fe3b)
0x0351fe2b: 0f 53 50 8d 44 24 18 50 e8 58 7c 00 00 83 c4 0c
0x0351fe3b: 8b 4e 70 51 8b 0e 83 c3 04 53 6a 64 8d 54 24 18

Stack: [0x008c0000,0x00910000], sp=0x0090f7b4, free space=13d0090f2e8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [zkemsdk.dll+0xfe3b]
C [jna5972695927945545932.tmp+0x9182]
C [jna5972695927945545932.tmp+0x2161]
C [jna5972695927945545932.tmp+0x2849]
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+90
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.Z_Beep(J)Z+19
j com.rfarrays.bhabs.fingerPrint.main([Ljava/lang/String;)V+84
v ~StubRoutines::call_stub
V [jvm.dll+0xf049c]
V [jvm.dll+0x17fcf1]
V [jvm.dll+0xf051d]
V [jvm.dll+0xf9bc5]
V [jvm.dll+0x10181d]
C [javaw.exe+0x2155]
C [javaw.exe+0x8614]
C [kernel32.dll+0xb729]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+90
j com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+194
j com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j $Proxy0.Z_Beep(J)Z+19
j com.rfarrays.bhabs.fingerPrint.main([Ljava/lang/String;)V+84
v ~StubRoutines::call_stub

Java Threads: ( => current thread )
0x02b10c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1976, stack(0x02dc0000,0x02e10000)]
0x02b0a400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1280, stack(0x02d70000,0x02dc0000)]
0x02b08c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1984, stack(0x02d20000,0x02d70000)]
0x02b07800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2160, stack(0x02cd0000,0x02d20000)]
0x02b02400 JavaThread "Finalizer" daemon [_thread_blocked, id=2052, stack(0x02c80000,0x02cd0000)]
0x02afd800 JavaThread "Reference Handler" daemon [_thread_blocked, id=752, stack(0x02c30000,0x02c80000)]
=>0x003a9000 JavaThread "main" [_thread_in_native, id=3832, stack(0x008c0000,0x00910000)]
Other Threads:
0x02afc400 VMThread [stack: 0x02be0000,0x02c30000] [id=1504]
0x02b1b800 WatcherThread [stack: 0x02e10000,0x02e60000] [id=1980]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
def new generation total 4928K, used 2455K [0x22970000, 0x22ec0000, 0x27ec0000)
eden space 4416K, 55% used [0x22970000, 0x22bd5db0, 0x22dc0000)
from space 512K, 0% used [0x22dc0000, 0x22dc0000, 0x22e40000)
to space 512K, 0% used [0x22e40000, 0x22e40000, 0x22ec0000)
tenured generation total 10944K, used 0K [0x27ec0000, 0x28970000, 0x32970000)
the space 10944K, 0% used [0x27ec0000, 0x27ec0000, 0x27ec0200, 0x28970000)
compacting perm gen total 12288K, used 343K [0x32970000, 0x33570000, 0x36970000)
the space 12288K, 2% used [0x32970000, 0x329c5f20, 0x329c6000, 0x33570000)
ro space 10240K, 51% used [0x36970000, 0x36e9ae00, 0x36e9ae00, 0x37370000)
rw space 12288K, 54% used [0x37370000, 0x37a072d8, 0x37a07400, 0x37f70000)
Dynamic libraries:
0x00400000 - 0x00424000 C:\Program Files\Java\jre6\bin\javaw.exe
0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x10000000 - 0x10052000 C:\Documents and Settings\bkonwar\Local Settings\Temp\jna5972695927945545932.tmp
0x03510000 - 0x03546000 C:\WINDOWS\system32\zkemsdk.dll
0x03560000 - 0x03574000 C:\WINDOWS\system32\commpro.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;C:\Program Files\Java\jre1.6.0_07\bin;C:\Program Files\Android\android-sdk-windows\tools;C:\Program Files\TortoiseSVN\bin
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel

OS: Windows XP Build 2600 Service Pack 3
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2085780k(1286036k free), swap 4024188k(3249652k free)
vm_info: Java HotSpot(TM) Client VM (16.3-b01) for windows-x86 JRE (1.6.0_20-b02), built on Apr 12 2010 13:52:23 by "java_re" with MS VC++ 7.1 (VS2003)
time: Wed May 25 10:02:24 2011
elapsed time: 21 seconds


Edited by: 861222 on May 25, 2011 12:19 AM

Can't start the Java Virtual Machine - memory problem?

Basically I can't start the JVM on a remote Debian server. I am using SSH to issue the commands, there is no desktop UI. I am fairly sure this is a dedicated server rather than a VPS (not 100% though).The error I'm getting is:Code: ...

How to install Java Virtual Machine plugin for firefox

How can I install Java Virtual Machine(JVM) to use with Firefox on Mandriva 2008? ...

java virtual machine

is there a way to install java virtual machine on slackware. if at all possibleAny help would be appreciatedthe application will be for logging into nortel equipment ...

Java Virtual Machine

Until recently i was able to run applications like FrostWire, or Azureus on my linux machine. Today I tried to run FrostWire but i get this message:"Cannot find java virtual machine, aborting"What should i do to fix that? I am pretty sure that I have the jvm installed. ...

Java Virtual Machine

I just downloaded the DB2e Personal eval.My question is where can I find JVM for WinCE that will be compatibe with DB2e? ...

Oracle Can't install Java Virtual Machine

I'm trying to installa de Java Virtual Machine in a UnixWare box, version 7.1.1 with 1GB RAM. When I run the script initjvm.sql I always get the error ORA-04030: out of process memory when trying to allocate 554648 bytes ....I've configured my Oracle 8.1.6 database with the parameters that the manua ...

Install a Java Virtual Machine to use with Oracle Help for Java

When I try to install a Java Virtual Machine onto my PC using an executable labeled jdk1_1_8-win.exe (so I can run Oracle Help for Java) no wizard opens to tell me where the JVM installs to. Is this normal? If this is normal, how can I find out where it installs so I can point the OHJ application to ...

Ubuntu Java Virtual Machine error, I think?

Ugh, I received this error message in a .txt file when I was searching places. Would anyone happen to know how to fix this on Ubuntu 8.04 Hardy?## An unexpected error has been detected by Java Runtime Environment:## SIGSEGV (0xb) at pc=0x06234ef3, pid=12508, tid=2850413456## Java VM: Java HotSpot(TM ...

Could not create the Java virtual machine. error?

so im trying to install a .sh file for a online game but i get this errorUnrecognized option: -XstartOnFirstThreadCould not create the Java virtual machine.can anyone He\p ...

Installation error - Java Virtual Machine cannot be loaded

I just installed Metastage 7 on an XP Pro system and get the following message: Unable to start the application-the Java Virtual Machine cannot be loaded. Class not registered.Any one know what's going on? Any help would be appreciated.... ...

Java Virtual Machine

Good day.I have just installed MetaStage and am unable to start the product due to a java virtual machine not starting error. I do have JRE 1.5.0 installed on XP.Any ideas on how I can get that started and begin using the product?Wesley ...

Newbie: Java Virtual Machine

I have just installed j2sdk-1_4_2 which includes the jre. However, when I try to run a web page containing an applet, I keep getting the prompt for 'On Deman Installation' for Java Virtual Machine, then when I click download pops a new browser window that takes me to the MS Windows update!I have IE ...

Pl help me to solve error message: " Couldnot create Java Virtual Machine"

I recently downloaded the Rational Application Developer for WebSphere Software v7.5and when i try to start to open it, it says " could not create Java virtual machine".my machine is windows xp pro. I have latest Java installed jre 1.6Pl help me how to fix this. ...

Java Virtual Machine

Is there an updated version of the Java Virtual Machine Specification or some place for more current information? The version at doesn't discuss changes in the latest JDK downloads. ...

java virtual machine internal thread?

I just want to know how many the internal thread of java virtual machine.I know that garbage collector is one thread. But there are always 7 or 8 other threads running even if i run single-threaded java program (only the main class). What thread are they?Is class loader and execution engine have one ...

Unable to initialize Java Virtual Machine

After calling JNI_CreateJavaVM(), I got the message "Unable to initialize Java Virtual Machine (rc = -1)".Will someone be so kind to tell me what I need to check to overcome this issue.Thanks in advance.This is run on AIX with Java 1.3.0 installed, and with the following environment variabl ...

RPT 8.1.1 installation failed: Could not create java virtual machine

During RPT install, I notice that every time, when the Installation manager try to run "complete" phase, the install will faile with the error message "Could not create Java virtual machine".It appears that eclipes.inf file created in SDP dir does not have Xmx option, and I think that is why the ins ...

PHP4.0.4cannot find java virtual machine

I am using IIS on NT configured to use php4.0.4I configured the [java] section in php.ini with java.home = c:\jdk1.2java.class.path = ".;c:\php\extensions\...jar;"when I run a simple script to display the version using System.getProperty("Java Version"), it returns with a fatal e ...

unable to create java virtual machine

sir,i want to use php-java i modified php.ini as given in article of this site php & java as follows.. [java]extension=php_java.dlljava.library.path=c:\web\php4\extensions\java.class.path="c:\web\php4\extensions\jdk1.2.2\php_java.jar;c:\myclasses"and also followed other in ...

Java and GTK (native code)

Hello! I'm trying to build a GUI for my java app and compile with gcj (to native code). I started googling and found 3 possibilities: Java-Gnome, Gnome-GCJ and libswt. Unfortunately, Java-Gnome is not compatible with gcj and Gnome-GCJ is, but is no longer maintained. The third option, libswt, I coul ...

Unable to create Java Virtual Machine

I have spent hours and hours pouring over a java/php install. I reviewed the Java and PHP article here ( and the many messages reporting a problem I am experiencing. After attempting all the various configuration tweaks and pouring over the for ...

Unable to create Java Virtual Machine?

I got something very odd while trying to integrate php with java. First, mysystem specifications:Windows 2000 SP3Apache 1.3.20PHP 4.3.1Sun Microsystems JDK 1.4.0Java settings from php.ini:extension_dir="C:\php\extensions"[Java]java.class.path="C:\php\extensions\php_java.jar;"java ...

Ubuntu Help install Java virtual machine

I tried to use synaptic to download a JVM, but I don't know which one, or how to configure it. Please help.marc@marc-desktop:~$ sh ./ No suitable Java Virtual Machine could be found on your system.The version of the JVM must be at least 1.5.Please define INSTALL4J_JAVA_HOME t ...

Java Virtual Machine

Im running windows XP Professional I have all of the latest updates on my laptop and I just downloaded the latest version of SQL Developer but when I try to open the program I receive this error “Unable to create an instance of the java virtual machine.”Ive been looking at solutions all morning and ...

unable to create java virtual machine

sir,i have configured php.ini as given in ur article as followsextension=php_java.dlljava.library.path=c:\web\php4\extensions\java.class.path="c:\web\php4\extensions\jdk1.2.2\php_java.jar;c:\myclasses"--i am using php4.0.3 and have download correct dll's from the site re ...

Install - Cannot create the Java virtual machine.

Hello, I'm trying to install RAD 8.0 Beta 2 without a previous installation on my machine. The IM installs fine, but once you get the RAD installation going, I get an error when it is installing disk 2 "Could not create Java virtual machine". Could someone please help me out? :) System: Windows XP ( ...

Ubuntu Could not create the Java virtual machine

I have Sun's java installed but when I attempt to run it, I get the "could not create the Java virtual machine" error message. Any ideas how to fix this?ktneely@ktneely-t400:~$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-pluginReading package lists... DoneBuilding dependency ...

Ubuntu How to install Java Virtual Machine

After two failed attempts using using the Ubuntu Software Center (software installs but is not recognized as JVM), I am left without a clear alternative.Any suggestions? ...

could not create the java virtual machine I am running windows xp pro sp3

I have a problem when trying to start RDP V8.0. It has been working OKuntil this morning. I am now getting the error: could not create the java virtual machine. Eclipse has a window that pops up with more detail see the attached?Does anyone know how to correct this problem?JamesJames R. MartinJ. Mar ...