Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For confidential or other support please email.
The time now is Sat Jul 04, 2009 11:55 pm
 <b>Register</b> (required to post and download)Register (required to post and download)
 Username:    Password:   Remember login       
 FAQFAQ   SearchSearch   DigestsDigests 
evaluator index out of bound (max elements 1000)
To watch this topic for replies  Register (enables digests) or give email address:
Reply to topic    Home -> Forums -> Support -> Library profiling: Structure based prediction & Chemical Terms -> evaluator index out of bound (max elements 1000)

Display posts from previous:        View previous topic :: View next topic    
Author Message
TobiasKind
Joined: 26 Jan 2005
Posts: 424


View user's profile

Visit poster's website

Back to top
Post subject: evaluator index out of bound (max elements 1000)
Link to postPosted: Tue Jul 22, 2008 3:43 am  Reply with quote

Hi,
I use a evaluator schema with more than 1000 elements and get the following errror: The reason is I don't want to use the API code because the
evaluator is quite comfortable. However I know how to use the API (with simple code).

Just an example from SMARTS

array(
matchCount("[OH1]
  • "),
    .. 10k elements
    matchcount("C(
  • )(
  • )(
  • )
  • "))

    use as evaluate -e test.xml "CCC"

    JCHEM Version is 4.1.13
    Cheers
    Tobias


    1000
    at chemaxon.nfunk.jep.JEP.getValueAsObject(JEP.java:477)
    at chemaxon.jep.ChemJEP.evaluate(ChemJEP.java:150)
    at chemaxon.jep.Evaluator.main(Evaluator.java:868)
    Error 1:
    java.lang.ArrayIndexOutOfBoundsException: 1000
    at chemaxon.nfunk.jep.util.OptStack.push(OptStack.java:29)
    at chemaxon.nfunk.jep.EvaluatorVisitor.visit(EvaluatorVisitor.java:423)
    at chemaxon.nfunk.jep.ASTConstant.jjtAccept(ASTConstant.java:42)
    at chemaxon.nfunk.jep.SimpleNode.childrenAccept(SimpleNode.java:70)
    at chemaxon.nfunk.jep.EvaluatorVisitor.visit(EvaluatorVisitor.java:268)
    at chemaxon.nfunk.jep.ASTFunNode.jjtAccept(ASTFunNode.java:60)
    at chemaxon.nfunk.jep.SimpleNode.childrenAccept(SimpleNode.java:70)
    at chemaxon.nfunk.jep.EvaluatorVisitor.visit(EvaluatorVisitor.java:268)
    at chemaxon.nfunk.jep.ASTFunNode.jjtAccept(ASTFunNode.java:60)
    at chemaxon.nfunk.jep.EvaluatorVisitor.getValue(EvaluatorVisitor.java:156)
    at chemaxon.nfunk.jep.JEP.getValueAsObject(JEP.java:470)
    at chemaxon.jep.ChemJEP.evaluate(ChemJEP.java:150)
    at chemaxon.jep.Evaluator.main(Evaluator.java:868)
    Error 2:
    ERRORS:
    Error 1:
    1000
    ------------------------------
    TRACES:
    chemaxon.nfunk.jep.ParseException:
    1000
    at chemaxon.nfunk.jep.EvaluatorVisitor.getValue(EvaluatorVisitor.java:160)
    at chemaxon.nfunk.jep.JEP.getValueAsObject(JEP.java:470)
    at chemaxon.jep.ChemJEP.evaluate(ChemJEP.java:150)
    at chemaxon.jep.Evaluator.main(Evaluator.java:868)
    Error 1:
    java.lang.ArrayIndexOutOfBoundsException: 1000
    at chemaxon.nfunk.jep.util.OptStack.push(OptStack.java:29)
    at chemaxon.nfunk.jep.EvaluatorVisitor.visit(EvaluatorVisitor.java:423)
    at chemaxon.nfunk.jep.ASTConstant.jjtAccept(ASTConstant.java:42)
    at chemaxon.nfunk.jep.SimpleNode.childrenAccept(SimpleNode.java:70)
    at chemaxon.nfunk.jep.EvaluatorVisitor.visit(EvaluatorVisitor.java:268)
    at chemaxon.nfunk.jep.ASTFunNode.jjtAccept(ASTFunNode.java:60)
    at chemaxon.nfunk.jep.SimpleNode.childrenAccept(SimpleNode.java:70)
    at chemaxon.nfunk.jep.EvaluatorVisitor.visit(EvaluatorVisitor.java:268)
    at chemaxon.nfunk.jep.ASTFunNode.jjtAccept(ASTFunNode.java:60)
    at chemaxon.nfunk.jep.EvaluatorVisitor.getValue(EvaluatorVisitor.java:156)
    at chemaxon.nfunk.jep.JEP.getValueAsObject(JEP.java:470)
    at chemaxon.jep.ChemJEP.evaluate(ChemJEP.java:150)
    at chemaxon.jep.Evaluator.main(Evaluator.java:868)
  • Zsolt
    Joined: 11 Jan 2006
    Posts: 446
    ChemAxon personnel

    View user's profile

    Visit poster's website

    Back to top
    Post subject:
    Link to postPosted: Tue Jul 22, 2008 9:56 am  Reply with quote

    Hi,

    The exception is thrown because there is a size limitation in chemaxon.nfunk.jep.util.OptStack. It already has been fixed in JChem 5.1 (will be released soon), and we will fix it in JChem 5.0.7 too.

    Regards,
    Zsolt
    Display posts from previous:   
    Reply to topic    Home -> Forums -> Library profiling: Structure based prediction & Chemical Terms -> evaluator index out of bound (max elements 1000) All times are GMT + 1 Hour
    Page 1 of 1
    To watch this topic for replies   Register (enables digests) or give email address  
    Jump to:  
    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum
    You cannot attach files in this forum
    You can download files in this forum