Le 12/05/2010 16:33, Nicolas Dumoulin a écrit :
Hi,
I'm encounterring another NPE if I try this call: rengine.eval("sa<- fast99( factors = 3, n = 1000, q = c('qunif','qunif','qunif'), q.arg = list(list(-1,1),list(-1,1),list(-1,1)))");
The R call passes in R, buf fails in j2r with output: 12 mai 2010 16:30:26 org.nuiton.j2r.RProxy initOnNet INFO: Trying to initialize the R Proxy with Network 12 mai 2010 16:30:26 org.nuiton.j2r.net.RNetEngine init INFO: Trying to connect to the Rserve on '127.0.0.1:6311' 12 mai 2010 16:30:26 org.nuiton.j2r.net.RNetEngine convertResult GRAVE: Unknown return type on : org.rosuda.REngine.REXPSymbol[fast99] 12 mai 2010 16:30:26 org.nuiton.j2r.net.RNetEngine convertResult GRAVE: Unknown return type on : org.rosuda.REngine.REXPSymbol[list] 12 mai 2010 16:30:26 org.nuiton.j2r.net.RNetEngine convertResult GRAVE: Unknown return type on : org.rosuda.REngine.REXPSymbol[list] 12 mai 2010 16:30:26 org.nuiton.j2r.net.RNetEngine convertResult GRAVE: Unknown return type on : org.rosuda.REngine.REXPSymbol[-] Exception in thread "main" java.lang.NullPointerException at org.nuiton.j2r.net.RNetEngine.convertResult(RNetEngine.java:302) at org.nuiton.j2r.net.RNetEngine.convertResult(RNetEngine.java:293) at org.nuiton.j2r.net.RNetEngine.convertResult(RNetEngine.java:293) at org.nuiton.j2r.net.RNetEngine.convertResult(RNetEngine.java:293) at org.nuiton.j2r.net.RNetEngine.convertResult(RNetEngine.java:293) at org.nuiton.j2r.net.RNetEngine.eval(RNetEngine.java:169) at org.nuiton.j2r.RProxy.eval(RProxy.java:154) at org.simexplorer.test.sensitivity.Fast99.main(Fast99.java:33)
In the sample, the vector and lists for the domains are superfluous because identical for each factor, but I need this format for other cases.
This bug have been fixed on the trunk today. I just deployed the snapshot version. So you can try using the 1.0.2-SNAPSHOT version and it should be ok.