You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2019/05/09 22:16:00 UTC

[jira] [Created] (JEXL-299) Improve message error when method could not be found

Jarek Jarcec Cecho created JEXL-299:
---------------------------------------

             Summary: Improve message error when method could not be found
                 Key: JEXL-299
                 URL: https://issues.apache.org/jira/browse/JEXL-299
             Project: Commons JEXL
          Issue Type: Improvement
            Reporter: Jarek Jarcec Cecho


We incorporated JEXL into our product and it's working really well - thanks for all the hard work and effort that went into the project!

One thing that that does stand out as a possible improvement is to increase the verbosity of the following message:

{code}
org.apache.commons.jexl3.JexlException$Method: com.streamsets.datacollector.antennadoctor.engine.AntennaDoctorEngine.evaluateCondition@1:48 unsolvable function/method 'intersection'
{code}

It took us a few hours the first time we saw this exception as the {{intersection}} method definitely existed. It turned out that we were mistakenly calling it with an array rather than with expected list and thus method {{intersection(Object[]}} was indeed not found as only {{intersection(List)}} was present.

Any chance to improve the error message and in addition to printing the missing method also print the argument which Jexl is trying to match? E.g. something like:

{code}
org.apache.commons.jexl3.JexlException$Method:  unsolvable function/method 'intersection(Object[])'
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)