commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SCXML-179) Leave more context (location) information when failing to execute JEXL scripts
Date Mon, 02 Dec 2013 22:58:35 GMT

     [ https://issues.apache.org/jira/browse/SCXML-179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Woonsan Ko updated SCXML-179:
-----------------------------

    Description: 
Currently, it doesn't give enough context (location) information in warning logs when there
are script errors (e.g, undefined object usages) like the following:

EXPRESSION_ERROR (evalScript('
        unknownObject.invoke();
      '):org.apache.commons.scxml2.env.jexl.JexlEvaluator.evalScript@161![14,22]: 'unknownObject.invoke();'
attempting to call method on null):

The line number above (161) is from JexlEvaluator, not from SCXML source.
It would be better if it gave more information somehow about the SCXML location and element
location, for instance.

  was:
Currently, it doesn't give enough context (location) information in warning logs when there
are script errors (e.g, undefined object usages) like the following:

EXPRESSION_ERROR (evalScript('
        unknownObject.invoke();
      '):TEMPLATE_NAME@11:22![14,22]: 'unknownObject.invoke();' attempting to call method
on null): 

It would be better if it gave more information about the SCXML location and element location,
for instance.


> Leave more context (location) information when failing to execute JEXL scripts
> ------------------------------------------------------------------------------
>
>                 Key: SCXML-179
>                 URL: https://issues.apache.org/jira/browse/SCXML-179
>             Project: Commons SCXML
>          Issue Type: Improvement
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>            Priority: Minor
>             Fix For: 2.0
>
>
> Currently, it doesn't give enough context (location) information in warning logs when
there are script errors (e.g, undefined object usages) like the following:
> EXPRESSION_ERROR (evalScript('
>         unknownObject.invoke();
>       '):org.apache.commons.scxml2.env.jexl.JexlEvaluator.evalScript@161![14,22]: 'unknownObject.invoke();'
attempting to call method on null):
> The line number above (161) is from JexlEvaluator, not from SCXML source.
> It would be better if it gave more information somehow about the SCXML location and element
location, for instance.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message