i am writing a jni for some api's in c++ in linux i sending vector as parameter and returning a vector through the same function. all i need to do is read a file put all the lines in vector. pass the vector object as parameter to function 4m java, read the vector retrive single line and pass it to the c++ function.
but in java i m getting this error An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x0000002a959320cb, pid=11361, tid=182894179040 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_01-b08 mixed mode) # Problematic frame: # V [libjvm.so+0x3b60cb] # # An error report file with more information is saved as hs_err_pid11361.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Aborted [vandana@SIOCR001 JWrapper]$ java classifyPckg.classify ./cdd
can u plz help me out why am i getting this error regards vps
i have tested it using an array of strings the same error still exists can u plz give me an idea why am i getting segmentation error. is it something related to memory derefrencing