• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

GetStringUTFChars

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I can't seem to convert the jstring I return from my java code to a c++ string.

I get a core when I call GetStringUTFChars.

Here's my code:



and the error:

Unexpected Signal : 11 occurred at PC=0xff1131a4
Function name=JVM_MonitorWait
Library=/usr/j2se/jre/lib/sparc/libjvm.so

Current Java thread:

Dynamic libraries:
0x10000 a.out
0xff350000 /usr/j2se/jre/lib/sparc/libjava.so
0xff000000 /usr/j2se/jre/lib/sparc/libjvm.so
0xfefd0000 /usr/lib/libm.so.1
0xfef00000 /usr/lib/libc.so.1
0xfeed0000 /usr/j2se/jre/lib/sparc/libverify.so
0xfeeb0000 /usr/lib/libsocket.so.1
0xfee00000 /usr/lib/libnsl.so.1
0xff390000 /usr/lib/libdl.so.1
0xfedc0000 /usr/lib/libCrun.so.1
0xfed70000 /usr/lib/libthread.so.1
0xfed50000 /usr/lib/libmp.so.2
0xfedf0000 /usr/lib/libw.so.1
0xfed30000 /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1
0xfecc0000 /usr/j2se/jre/lib/sparc/native_threads/libhpi.so
0xfec90000 /usr/j2se/jre/lib/sparc/libzip.so
0xfe3a0000 /usr/lib/locale/en_IE.ISO8859-1/en_IE.ISO8859-1.so.2
0xfe2e0000 /usr/lib/nss_files.so.1
0xfe2c0000 /usr/lib/nss_nis.so.1

Local Time = Tue Feb 1 11:42:09 2005
Elapsed Time = 1
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002C4 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_01 interpreted mode)
#
# An error report file has been saved as hs_err_pid14507.log.
# Please refer to the file for further information.
#
Abort (core dumped)

If anybody has any suggestions it would be appreciated?
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic