You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Antonio Petrelli (JIRA)" <ji...@apache.org> on 2008/01/07 20:57:04 UTC
[jira] Resolved: (TILES-237) When TilesListener throws
IllegalArgumentException, it should wrap the original cause.
[ https://issues.apache.org/struts/browse/TILES-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antonio Petrelli resolved TILES-237.
------------------------------------
Resolution: Fixed
Patch applied. Thanks Mike :-)
> When TilesListener throws IllegalArgumentException, it should wrap the original cause.
> --------------------------------------------------------------------------------------
>
> Key: TILES-237
> URL: https://issues.apache.org/struts/browse/TILES-237
> Project: Tiles
> Issue Type: Improvement
> Components: tiles-core
> Affects Versions: 2.0.5
> Reporter: Mike Calmus
> Assignee: Antonio Petrelli
> Fix For: 2.0.6
>
>
> The contextInitialized method of org.apache.tiles.web.startup.TilesListener throws an IllegalStateException when a TilesException is thrown. This exception should wrap the original TilesException so the underlying exception is not lost.
> patch (likely won't apply due to some syntax issues):
> Index: src/tiles-core/src/main/java/org/apache/tiles/web/startup/TilesListener.java
> ===================================================================
> --- src/tiles-core/src/main/java/org/apache/tiles/web/startup/TilesListener.java (revision ????)
> +++ src/tiles-core/src/main/java/org/apache/tiles/web/startup/TilesListener.java (working copy)
> @@ -61,? +61,? @@
> TilesAccess.setContainer(servletContext, container);
> } catch (TilesException e) {
> LOG.fatal("Unable to retrieve tiles factory.", e);
> - throw new IllegalStateException("Unable to instantiate container.");
> + throw new IllegalStateException("Unable to instantiate container.", e); }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.