[R] SJava in R

Junwen wang junwen at astro.ocis.temple.edu
Wed Aug 20 21:01:26 CEST 2003


Hi,
Did anyone sucessfully install SJava package to R and was able to call R
function from java in redhat linux8.0? I tried several days it still give
me error either in libR.so or libjvm.so. for example, I can compile
JavaRCall.java(a example with the SJava package) without problem. When
I run it, it can connect to R and accomplish part of results, but fail for
other calls. The outputs are:
[junwen at chem250b 09]$ java JavaRCall
Loading RInterpreter library

R : Copyright 2003, The R Development Core Team
Version 1.7.1  (2003-06-16)

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.

[Previously saved workspace restored]

[search]
.GlobalEnv
package:methods
package:ctest
package:mva
package:modreg
package:nls
package:ts
Autoloads
package:base
[objects]
^
~
<
<<-
<=
<-
=
==
>
>=
|
||
-
:
::
!
!=
?
/
(
[
[<-
[[
[[<-
{
@
$
$<-
*
&
&&
%/%
%*%
%%
+
abbreviate
abline
abs
acos
acosh
add1
add1.default
add1.glm
add1.lm
add1.mlm
add.scope
addTaskCallback
aggregate
aggregate.data.frame
aggregate.default
aggregate.ts
agrep
AIC
AIC.default
AIC.logLik
alias
.Alias
alias.formula
alias.lm
alist
all
all.equal
all.equal.character
all.equal.default
all.equal.factor
all.equal.formula
all.equal.language
all.equal.list
all.equal.numeric
all.equal.POSIXct
all.names
all.vars
anova
anova.glm
anova.glmlist
anova.glm.null
anovalist.lm
anova.lm
anova.lmlist
anova.lm.null
anova.mlm
any
aov
aperm
append
apply
approx
approxfun
apropos
Arg
args
array
arrows
as.array
as.call
as.character
as.character.default
as.character.factor
as.character.octmode
as.character.POSIXt
 ...
yinch
zapsmall
zip.file.extract
function call [objects('package:base')]
^
~
<
<<-
<=
<-
=
==
>
>=
|
||
-
:
::
!
!=
?
/
(
[
[<-
[[
[[<-
{
@
$
$<-
*
&
&&
%/%
%*%
%%
+
abbreviate
abline
abs
acos
acosh
add1
add1.default
add1.glm
add1.lm
add1.mlm
add.scope
addTaskCallback
aggregate
aggregate.data.frame
aggregate.default
aggregate.ts
agrep
AIC
AIC.default
AIC.logLik
alias
.Alias
alias.formula
alias.lm
alist
all
all.equal
all.equal.character
all.equal.default
all.equal.factor
all.equal.formula
all.equal.language
all.equal.list
all.equal.numeric
all.equal.POSIXct
all.names
all.vars
anova
anova.glm
anova.glmlist
anova.glm.null
anovalist.lm
anova.lm
anova.lmlist
anova.lm.null
anova.mlm
any
aov
aperm
append
apply
approx
approxfun
apropos
Arg
args
array
arrows
as.array
as.call
as.character
as.character.default
as.character.factor
as.character.octmode
as.character.POSIXt
 ...
yinch
zapsmall
zip.file.extract
[seq(1, 10)]

Unexpected Signal : 11 occurred at PC=0x40232040
Function=(null)+0x40232040
Library=/usr/java/j2sdk/j2sdk1.4.2/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 JavaRCall.main(JavaRCall.java:43)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:05 2109873
/usr/java/j2sdk/j2sdk1.4.2/bin/java
...<ignored>
Heap at VM Abort:
Heap
 def new generation   total 576K, used 227K [0x44750000, 0x447f0000,
0x44c30000)  eden space 512K,  31% used [0x44750000, 0x44778e08,
0x447d0000)
  from space 64K, 100% used [0x447d0000, 0x447e0000, 0x447e0000)
  to   space 64K,   0% used [0x447e0000, 0x447e0000, 0x447f0000)
 tenured generation   total 1408K, used 268K [0x44c30000, 0x44d90000,
0x48750000)
   the space 1408K,  19% used [0x44c30000, 0x44c73350, 0x44c73400,
0x44d90000)
 compacting perm gen  total 4096K, used 2298K [0x48750000, 0x48b50000,
0x4c750000)
   the space 4096K,  56% used [0x48750000, 0x4898e840, 0x4898ea00,
0x48b50000)

Local Time = Wed Aug 20 14:48:44 2003
Elapsed Time = 3
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#
# An error report file has been saved as hs_err_pid3319.log.
# Please refer to the file for further information.
#
Aborted

Can anyone help me with this?

Thanks
John




More information about the R-help mailing list