Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JNI - Unhandled exception

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 "".
 
Sheriff
Posts: 22796
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My colleagues
 
narasimharao konjeti
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 22796
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ask your colleagues to output some debugging information in the library. That way you can see at what point the code fails.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic