[ 
http://issues.apache.org/jira/browse/COCOON-1931?page=comments#action_12442563 
] 
            
Georg Hüttenegger commented on COCOON-1931:
-------------------------------------------

I have now checked with newer cocoon versions and the issue has already been 
solved (presumabley in connection with the newer rhino and excalibur versions). 
My check within the cocoon sources was obviously inadequate. Sorry about that. 
Consequently, I am closing the issue (the patch might still be intereesting for 
people using older cocoon versions).

Georg

> Provide more information when compiling a Flowscript fails
> ----------------------------------------------------------
>
>                 Key: COCOON-1931
>                 URL: http://issues.apache.org/jira/browse/COCOON-1931
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: - Flowscript
>    Affects Versions: 2.1.8, 2.1.9, 2.2-dev (Current SVN), 2.1.10-dev (current 
> SVN)
>            Reporter: Georg Hüttenegger
>            Priority: Minor
>         Attachments: FOM_JavaScriptInterpreter.java.MoreErrorInfoPatch
>
>
> When a flowscript defined in the sitemap cannot be loaded a 
> NullPointerException is thrown without telling the developer the real cause 
> of the issue.
> The same is true for certain Javascript coding errors (at least missing 
> closing bracket of a for loop).
> The provided patch throws a CascadingRuntimeException with the name of the 
> flowscript instead of just a simple NullPointerException. In that way the 
> developer is lead directly to the cause of the problem instead of wondering 
> what the real issue might be.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to