aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes JNI - Unhandled exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI - Unhandled exception" Watch "JNI - Unhandled exception" New topic
Author

JNI - Unhandled exception

narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
Hi,
I am getting below exception, while running a shared library (.so, c program) in linux. I have been accessing the library in java.

Please let me know the solution for this?
This is bit URGENT.

Thanks in advance.
Narasimha


Exception:-
-----------
Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=0026A0A4 Handler2=002AE854 InaccessibleAddress=4F525249
EDI=4F525245 ESI=243C800E EAX=00008000 EBX=A25A90F4
ECX=08844FD4 EDX=A25A90F0
EIP=00FD59A4 ES=C040007B DS=C040007B ESP=005FC06C
EFlags=00210246 CS=00000073 SS=0000007B EBP=005FC094
Module=/home/nr/ibm-java2-i386-50/jre/bin/libj9gc23.so
Module_base_address=00F9B000
Target=2_30_20080314_17962_lHdSMr (Linux 2.6.18-8.el5)
CPU=x86 (1 logical CPUs) (0x2b3a2000 RAM)
JVMDUMP006I Processing Dump Event "gpf", detail "" - Please Wait.
JVMDUMP007I JVM Requesting System Dump using '/home/nr/workspace/PingProbe/core.20080619.211936.6371.0001.dmp'
JVMDUMP010I System Dump written to /home/nr/workspace/PingProbe/core.20080619.211936.6371.0001.dmp
JVMDUMP007I JVM Requesting Snap Dump using '/home/nr/workspace/PingProbe/Snap.20080619.211936.6371.0002.trc'
JVMDUMP010I Snap Dump written to /home/nr/workspace/PingProbe/Snap.20080619.211936.6371.0002.trc
JVMDUMP007I JVM Requesting Java Dump using '/home/nr/workspace/PingProbe/javacore.20080619.211936.6371.0003.txt'
JVMDUMP010I Java Dump written to /home/nr/workspace/PingProbe/javacore.20080619.211936.6371.0003.txt
JVMDUMP013I Processed Dump Event "gpf", detail "".


"Unwise to sweat petty stuff, wise to pet sweaty stuff."
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

Please EaseUp.

This is most likely caused by some error in the native library; I'd say a memory error (comparable to NullPointerException).
Who wrote the library? Is it you (or your company), or somebody else? Did you heed all warnings in the API, like not passing null values?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
My colleagues
narasimharao konjeti
Ranch Hand

Joined: Apr 26, 2003
Posts: 130
Hello Rob
I will check the null pointers. Please let me know the other causes.
If you given me a more light, it will be great to me.

Regards
nr konjeti
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

Ask your colleagues to output some debugging information in the library. That way you can see at what point the code fails.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI - Unhandled exception