The Artima Developer Community
Sponsored Link

Java Answers Forum
unexpected error, hotspot VM!

2 replies on 1 page. Most recent reply: Sep 13, 2005 6:45 AM by vsharma

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
vsharma

Posts: 7
Nickname: vps05
Registered: Aug, 2005

unexpected error, hotspot VM! Posted: Sep 12, 2005 11:00 PM
Reply to this message Reply
Advertisement
hello everybody

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


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: unexpected error, hotspot VM! Posted: Sep 13, 2005 5:24 AM
Reply to this message Reply
Are you sure Vector's in Java are compatible to Vector's in C?

Try passing a Array.

vsharma

Posts: 7
Nickname: vps05
Registered: Aug, 2005

Re: unexpected error, hotspot VM! Posted: Sep 13, 2005 6:45 AM
Reply to this message Reply
hello


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

Flat View: This topic has 2 replies on 1 page
Topic: casting... Previous Topic   Next Topic Topic: random triangles and colors

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use