You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/01/28 10:12:59 UTC
[jira] Created: (SLING-844) JavaScript ScriptEngine does not
include causing exception in ScriptException
JavaScript ScriptEngine does not include causing exception in ScriptException
-----------------------------------------------------------------------------
Key: SLING-844
URL: https://issues.apache.org/jira/browse/SLING-844
Project: Sling
Issue Type: Bug
Affects Versions: Scripting JavaScript 2.0.2
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: Scripting JavaScript 2.1.0
Currently the RhinoJavaScriptEngine does not initialize the cause of the ScriptException thrown upon encountering an exception in the script. This makes handling the exception close to impossible, since the original cause cannot be found any more.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SLING-844) JavaScript ScriptEngine does not
include causing exception in ScriptException
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated SLING-844:
------------------------------------
Component/s: Scripting JavaScript (Rhino)
> JavaScript ScriptEngine does not include causing exception in ScriptException
> -----------------------------------------------------------------------------
>
> Key: SLING-844
> URL: https://issues.apache.org/jira/browse/SLING-844
> Project: Sling
> Issue Type: Bug
> Components: Scripting JavaScript (Rhino)
> Affects Versions: Scripting JavaScript 2.0.2
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: Scripting JavaScript 2.1.0
>
>
> Currently the RhinoJavaScriptEngine does not initialize the cause of the ScriptException thrown upon encountering an exception in the script. This makes handling the exception close to impossible, since the original cause cannot be found any more.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-844) JavaScript ScriptEngine does not include
causing exception in ScriptException
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger closed SLING-844.
-----------------------------------
Resolution: Fixed
The JavaScriptException may provide the cause in the value field. To set the cause on the ScriptException, we get the value field and check to see whether it is a Throwable. If so, we use this as the cause.
Fixed in Rev. 738410.
> JavaScript ScriptEngine does not include causing exception in ScriptException
> -----------------------------------------------------------------------------
>
> Key: SLING-844
> URL: https://issues.apache.org/jira/browse/SLING-844
> Project: Sling
> Issue Type: Bug
> Affects Versions: Scripting JavaScript 2.0.2
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: Scripting JavaScript 2.1.0
>
>
> Currently the RhinoJavaScriptEngine does not initialize the cause of the ScriptException thrown upon encountering an exception in the script. This makes handling the exception close to impossible, since the original cause cannot be found any more.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.