You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Cedric Gatay (JIRA)" <ji...@apache.org> on 2013/04/18 19:52:17 UTC
[jira] [Updated] (WICKET-5146) Application not destroyed if
WicketFilter#init() fails
[ https://issues.apache.org/jira/browse/WICKET-5146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cedric Gatay updated WICKET-5146:
---------------------------------
Attachment: fix-WICKET-5146.patch
You'll find a patch that should work around the issue you described. However, without a quickstart, it would be difficult to check if it is ok. Please test it and tell me if it works for you.
> Application not destroyed if WicketFilter#init() fails
> ------------------------------------------------------
>
> Key: WICKET-5146
> URL: https://issues.apache.org/jira/browse/WICKET-5146
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 6.7.0
> Reporter: bernard
> Attachments: fix-WICKET-5146.patch
>
>
> WicketFilter calls Application#initApplication() which calls Application#init().
> In case of Exception thrown in the application's init() method, there is no cleanup in WicketFilter's finally block.
> The result of this is, in case where Wicket is in the application server's libraries (not deployed with the war file), that the application cannot be re-deployed withhout re-starting the application server.
> That is because Application#setName() crashes with IllegalStateException("Application name can only be set once.").
> In Application, private static final Map<String, Application> applicationKeyToApplication holds a reference to the crashed instance after the application is undeployed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira