[R] Problem w/ SJava package
Humphreys, Darryl
darryl.humphreys at lehman.com
Thu Oct 23 18:48:51 CEST 2003
Hello,
Seems like it is almost working properly. I was able to run examples calling
R from Java successfully for the java code below. However, some commands,
such as "objects" when not commented out, give me the following error? If
you could point me to the correct place to find a solution, I would much
appreciate it. I am new to the R community and not sure where is the
appropriate place to look for this kind of help. I am running this on linux.
Thanks,
Darryl
Loading RInterpreter library
R : Copyright 2002, The R Development Core Team
Version 1.6.1 (2002-11-01)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type `license()' or `licence()' for distribution details.
R is a collaborative project with many contributors.
Type `contributors()' for more information.
Type `demo()' for some demos, `help()' for on-line help, or
`help.start()' for a HTML browser interface to help.
Type `q()' to quit R.
done w/ evaluator constructor
Unexpected Signal : 11 occurred at PC=0x4039A074
Function=(null)+0x4039A074
Library=/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/client/libjvm.so
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at org.omegahat.R.Java.REvaluator.call(Native Method)
at org.omegahat.R.Java.REvaluator.call(REvaluator.java:137)
at org.omegahat.R.Java.REvaluator.call(REvaluator.java:127)
at org.omegahat.R.Java.REvaluator.call(REvaluator.java:118)
at SJ.<init>(SJ.java:26)
at SJ.main(SJ.java:39)
Dynamic libraries:
08048000-0804e000 r-xp 00000000 00:17 1402717
/opt/sunjdk/1.4.1_01-b01/bin/java
0804e000-0804f000 rw-p 00005000 00:17 1402717
/opt/sunjdk/1.4.1_01-b01/bin/java
40000000-40016000 r-xp 00000000 08:01 97248 /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 08:01 97248 /lib/ld-2.2.4.so
40018000-4001b000 r--s 00000000 00:17 1352683
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/dnsns.jar
4001b000-4001c000 r--p 00000000 08:01 97167
/usr/lib/locale/en_US/LC_TIME
4001e000-4002b000 r-xp 00000000 08:01 210597 /lib/i686/libpthread-0.9.so
4002b000-4002f000 rw-p 0000c000 08:01 210597 /lib/i686/libpthread-0.9.so
4004f000-40052000 r-xp 00000000 08:01 97261 /lib/libdl-2.2.4.so
40052000-40053000 rw-p 00002000 08:01 97261 /lib/libdl-2.2.4.so
40053000-40186000 r-xp 00000000 08:01 210593 /lib/i686/libc-2.2.4.so
40186000-4018b000 rw-p 00132000 08:01 210593 /lib/i686/libc-2.2.4.so
4018f000-404a7000 r-xp 00000000 00:17 526106
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/client/libjvm.so
404a7000-4065b000 rw-p 00317000 00:17 526106
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/client/libjvm.so
4066b000-4067e000 r-xp 00000000 08:01 97266 /lib/libnsl-2.2.4.so
4067e000-4067f000 rw-p 00012000 08:01 97266 /lib/libnsl-2.2.4.so
40681000-406a3000 r-xp 00000000 08:01 210595 /lib/i686/libm-2.2.4.so
406a3000-406a4000 rw-p 00021000 08:01 210595 /lib/i686/libm-2.2.4.so
406a4000-406ad000 r-xp 00000000 00:17 526100
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/native_threads/libhpi.so
406ad000-406ae000 rw-p 00008000 00:17 526100
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/native_threads/libhpi.so
406af000-406bf000 r-xp 00000000 00:17 526110
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libverify.so
406bf000-406c1000 rw-p 0000f000 00:17 526110
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libverify.so
406c1000-406e2000 r-xp 00000000 00:17 526111
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libjava.so
406e2000-406e4000 rw-p 00020000 00:17 526111
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libjava.so
406e4000-406f9000 r-xp 00000000 00:17 2151585
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libzip.so
406f9000-406fb000 rw-p 00014000 00:17 2151585
/opt/sunjdk/1.4.1_01-b01/jre/lib/i386/libzip.so
406fb000-41dc9000 r--s 00000000 00:17 2635968
/opt/sunjdk/1.4.1_01-b01/jre/lib/rt.jar
41e0c000-41e23000 r--s 00000000 00:17 1352686
/opt/sunjdk/1.4.1_01-b01/jre/lib/sunrsasign.jar
41e23000-41e94000 r--s 00000000 00:17 1352694
/opt/sunjdk/1.4.1_01-b01/jre/lib/jsse.jar
41e94000-41ea7000 r--s 00000000 00:17 1352687
/opt/sunjdk/1.4.1_01-b01/jre/lib/jce.jar
41ea7000-42163000 r--s 00000000 00:17 1437648
/opt/sunjdk/1.4.1_01-b01/jre/lib/charsets.jar
4c413000-4c43e000 r--p 00000000 08:01 16337
/usr/lib/locale/en_US/LC_CTYPE
4c43e000-4c448000 r-xp 00000000 08:01 97282 /lib/libnss_files-2.2.4.so
4c448000-4c449000 rw-p 00009000 08:01 97282 /lib/libnss_files-2.2.4.so
4c449000-4c453000 r-xp 00000000 08:01 97287 /lib/libnss_nis-2.2.4.so
4c453000-4c454000 rw-p 00009000 08:01 97287 /lib/libnss_nis-2.2.4.so
4c658000-4c675000 r--s 00000000 00:17 1352682
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/sunjce_provider.jar
4c675000-4c714000 r--s 00000000 00:17 1352684
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/localedata.jar
4c714000-4c722000 r--s 00000000 00:17 1352685
/opt/sunjdk/1.4.1_01-b01/jre/lib/ext/ldapsec.jar
4c722000-4c82d000 r--s 00000000 00:22 393209
/home/dahumphr/colt/colt.jar
4c82d000-4c8ac000 r--s 00000000 00:22 97437
/home/dahumphr/r/R-1.6.1/library/SJava/org/omegahat/Jars/Environment.jar
4c8ac000-4c8eb000 r--s 00000000 00:22 97438
/home/dahumphr/r/R-1.6.1/library/SJava/org/omegahat/Jars/antlr.jar
4c8eb000-4c8f9000 r--s 00000000 00:22 97439
/home/dahumphr/r/R-1.6.1/library/SJava/org/omegahat/Jars/jas.jar
4c8f9000-4c945000 r--s 00000000 00:22 97440
/home/dahumphr/r/R-1.6.1/library/SJava/org/omegahat/Jars/jhall.jar
4c945000-4c950000 r--s 00000000 00:22 97441
/home/dahumphr/r/R-1.6.1/library/SJava/org/omegahat/Jars/ROmegahatExamples.j
ar
4c950000-4c95b000 r-xp 00000000 00:22 89455
/home/dahumphr/r/R-1.6.1/library/SJava/libs/SJava.so
4c95b000-4c95c000 rw-p 0000a000 00:22 89455
/home/dahumphr/r/R-1.6.1/library/SJava/libs/SJava.so
4c95c000-4c963000 r-xp 00000000 00:22 93715
/home/dahumphr/r/R-1.6.1/library/SJava/libs/libRSNativeJava.so
4c963000-4c964000 rw-p 00006000 00:22 93715
/home/dahumphr/r/R-1.6.1/library/SJava/libs/libRSNativeJava.so
4c965000-4cacb000 r-xp 00000000 00:22 31993
/home/dahumphr/r/R-1.6.1/bin/libR.so
4cacb000-4cad6000 rw-p 00165000 00:22 31993
/home/dahumphr/r/R-1.6.1/bin/libR.so
4cb0a000-4cb10000 r--p 00000000 08:01 162013
/usr/lib/locale/en_US/LC_COLLATE
4cb10000-4cb31000 r-xp 00000000 08:01 340277 /usr/lib/libreadline.so.4.2
4cb31000-4cb36000 rw-p 00020000 08:01 340277 /usr/lib/libreadline.so.4.2
4cb36000-4cb6b000 r-xp 00000000 08:01 340190 /usr/lib/libncurses.so.5.2
4cb6b000-4cb74000 rw-p 00034000 08:01 340190 /usr/lib/libncurses.so.5.2
4cb77000-4cb7f000 r-xp 00000000 08:01 97547 /lib/libpcre.so.0.0.1
4cb7f000-4cb81000 rw-p 00007000 08:01 97547 /lib/libpcre.so.0.0.1
4cb81000-4cb8f000 r-xp 00000000 08:01 340094 /usr/lib/libbz2.so.1.0.0
4cb8f000-4cb91000 rw-p 0000d000 08:01 340094 /usr/lib/libbz2.so.1.0.0
4cb91000-4cb9d000 r-xp 00000000 08:01 340459 /usr/lib/libz.so.1.1.3
4cb9d000-4cb9f000 rw-p 0000b000 08:01 340459 /usr/lib/libz.so.1.1.3
4cba7000-4cbaf000 r-xp 00000000 00:22 32113
/home/dahumphr/r/R-1.6.1/library/ctest/libs/ctest.so
4cbaf000-4cbb0000 rw-p 00007000 00:22 32113
/home/dahumphr/r/R-1.6.1/library/ctest/libs/ctest.so
Local Time = Thu Oct 23 12:46:52 2003
Elapsed Time = 2
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
<http://java.sun.com/cgi-bin/bugreport.cgi>
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
#
# An error report file has been saved as hs_err_pid10717.log.
# Please refer to the file for further information.
#
./RJava: line 66: 10717 Aborted ${JAVA} -classpath
${CLASSPATH}:/home/dahumphr ${OMEGA_PROPS} SJ
----------------------------------------------------------------------------
------------------------------------------------------------------
Code follows
----------------------------------------------------------------------------
------------------------------------------------------------------
import org.omegahat.R.Java.ROmegahatInterpreter;
import org.omegahat.R.Java.REvaluator;
public class SJ{
public SJ(String[] args){
ROmegahatInterpreter interp = new ROmegahatInterpreter(
ROmegahatInterpreter.fixArgs(args),false);
REvaluator e=new REvaluator();
System.out.println("done w/ evaluator constructor");
// String[] objects = (String[])e.call("objects");
int[] seq;
Object[] funArgs = new Object[2];
funArgs[0]=new Integer(1);
funArgs[1]=new Integer(10);
seq=(int[])e.call("seq",funArgs);
System.out.println("length "+seq.length);
for(int i=0;i<seq.length;i++){
System.out.print(seq[i]+" ");
}
System.out.println();
}
public static void main(String[] args){
SJ sj=new SJ(args);
}
}
Darryl Humphreys, Ph.D.
Vice President
Lehman Brothers
745 7th Ave.
15th Floor
New York, NY
10019
(212) 526-2701
------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above. If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers. Email transmission cannot be guaranteed to be
secure or error-free. Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such. All
information is subject to change without notice.
More information about the R-help
mailing list