• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

GetStringUTFChars

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic