• Post Reply Bookmark Topic Watch Topic
  • New Topic


Shridhar. Blr.
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am facing some problems in JNI. I have a c program, which loads a dll (zlipwapi.dll, which i want to use to compress data) . i have created a dll for my c program(customDLL.dll).
In my Java class i am loading my customDLL.dll and calling my compressData(byte[],long,byte[],long).
When i execute my Java Class i am getting the following Error on the Console.
Can any please tell me whats wrong.

Error :
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xAC6200B Function=compress2+0x2B
Current Java thread:
at HelloWorld.compressData(Native Method)
at HelloWorld.main(HelloWorld.java:31)
Dynamic libraries:
0x00400000 - 0x00406000 D:\jdk1.4.1_01\jre\bin\java.exe
0x77F80000 - 0x77FFA000 C:\WINNT\system32\ntdll.dll
0x77DB0000 - 0x77E0D000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F36000 C:\WINNT\system32\KERNEL32.DLL
0x77D30000 - 0x77D9E000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D45A000 D:\jdk1.4.1_01\jre\bin\client\jvm.dll
0x77E10000 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 C:\WINNT\System32\WINMM.dll
0x6D1D0000 - 0x6D1D7000 D:\jdk1.4.1_01\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000 D:\jdk1.4.1_01\jre\bin\verify.dll
0x6D210000 - 0x6D229000 D:\jdk1.4.1_01\jre\bin\java.dll
0x6D320000 - 0x6D32D000 D:\jdk1.4.1_01\jre\bin\zip.dll
0x10000000 - 0x1003C000 D:\Projects\Test\customDLL.dll
0x0AC60000 - 0x0AC75000 C:\WINNT\zlibwapi.dll
0x74FA0000 - 0x74FC7000 C:\WINNT\System32\CRTDLL.dll
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x731B0000 - 0x731BA000 C:\WINNT\System32\PSAPI.DLL

Local Time = Mon Mar 29 14:13:50 2004
Elapsed Time = 0
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)

Any help would be highly appreciated..
Thanks in Advance..
Error :
Ernest Friedman-Hill
author and iconoclast
Posts: 24217
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The instruction 43 (2B) bytes into the "compress2" function in the zlibwapi.dll provoked an access violation signal. That means it tried to access memory not owned by the process -- perhaps by dereferencing a null pointer. If you're calling this routine, make sure the arguments you're passing are valid.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!