Linear Collider Forum



Home » Analysis and Reconstruction » Analysis Tools » JAS3 bug ?
JAS3 bug ? [message #964] Thu, 12 July 2007 10:47 Go to previous message
mitaroff
Messages: 10
Registered: March 2004
Location: HEPHY Vienna, Austria, EU
We get a run-time error with current JAS3 v0.8.3 build 1686 (Feb 1, 2007), which we didn't encounter with older JAS3 v0.8.3 build 1643 (April 5, 2006). This is the code and the error message:

------------------------------------------------------------ ---
import hep.aida.*;
public class Test2 {
public static void main( String args[] ) {
IAnalysisFactory af = IAnalysisFactory.create();
ITree tree = af.createTreeFactory().create();
IFunctionFactory funf = af.createFunctionFactory( tree );
String titfun = "[ y = a + b|x ]";
IFunction invx = funf.createFunctionFromScript( titfun, 1, "a+b/x[0]", "a,b", "", null );
}
}
------------------------------------------------------------ ---

java.lang.NumberFormatException: For input string: "a+b/x[0]"
at java.lang.NumberFormatException.forInputString(NumberFormatE xception.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at hep.aida.ref.function.FunctionCreator.createFromCodelet(Func tionCreator.java:81)
at hep.aida.ref.function.FunctionFactory.createFunctionFromScri pt(FunctionFactory.java:104)
at org.freehep.jas.extension.aida.function.JAS3FunctionFactory. createFunctionFromScript(JAS3FunctionFactory.java:30)
at Test2.main(Test2.java:8)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.freehep.jas.extension.compiler.JASClassManager$1.run(JAS ClassManager.java:231)

Winfried Mitaroff
(HEPHY Vienna)
 
Read Message
Read Message
Previous Topic:making jas / wired aware of custom lcdd geometry file
Next Topic:bug in FastMC in org.lcsim
Goto Forum:
  


Current Time: Thu Sep 20 20:51:36 Pacific Daylight Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software