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. Do you have ideas? -- Nicolas Dumoulin Ingénieur d'études - Cemagref, LISC +33 (0)4.73.44.07.29
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.
Do you have ideas?
Seeing the trace, I guess this is the same problem as your previous NPE. Try using voidEval, it should solve the problem. I am investigating on how to solve this properly. Jean
Le 12/05/2010 16:43, Jean Couteau a écrit :
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.
Do you have ideas?
Seeing the trace, I guess this is the same problem as your previous NPE. Try using voidEval, it should solve the problem.
Ok, I know better about the problem now. In fact, the j2r understand pretty well the fast99 object, it is trying to convert it into a list (which is what it is after all), but it do not successfully convert the last object of the list which is the call, it is trying to convert it to a list, but it is not... You can do : rengine.voidEval("sa<- fast99( factors = 3, n = 1000, q = c('qunif','qunif','qunif'), q.arg = list(list(-1,1),list(-1,1),list(-1,1)))"); rengine.eval("sa$call"); you will got the same problem, but on the second call. You can try all the other elements it will be ok. The only problem is the call.
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.
Le vendredi 14 mai 2010 11:35:21 Jean Couteau, vous avez écrit :
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.
Ok, it seems fixed. Thanks -- Nicolas Dumoulin Ingénieur d'études - Cemagref, LISC +33 (0)4.73.44.07.29
participants (2)
-
Jean Couteau -
Nicolas Dumoulin