|
From: Peter De B. (JIRA) <no...@at...> - 2007-10-10 20:05:59
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-481?page=
=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_=
26847 ]=20
Peter De Bruycker commented on RCP-481:
---------------------------------------
I cannot reproduce this behaviour. What exceptions did you have in your spr=
ing xml configuration?
> Exceptions disappear in ApplicationLauncher
> -------------------------------------------
>
> Key: RCP-481
> URL: http://opensource.atlassian.com/projects/spring/brow=
se/RCP-481
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Affects Versions: 0.3.0
> Reporter: Theo G=C3=BClcher
> Assignee: Peter De Bruycker
> Priority: Trivial
>
> http://forum.springframework.org/showthread.php?t=3D40931
> -------------------------------------------------------------------------=
--------
> Hi,
> I discovered some strange behavior at startup of my application. After th=
e splash screen became visible it suddenly disappeared and I did not see an=
y exception.
> I discovered that the following piece of code was responsible for hiding =
any exceptions:
> Code:
> public ApplicationLauncher(String startupContextPath, String[] rootCo=
ntextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootCont=
extConfigLocations, startupContext));
> launchMyRichClient();
> }
> finally {
> destroySplashScreen();
> }
> }
> I think this code is very wrong, because any exceptions in the try block =
would just be swallowed without showing an exception in your console or log=
file, so I added a catch block, like this:
> Code:
> public ApplicationLauncher(String startupContextPath, String[] rootCo=
ntextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootCont=
extConfigLocations, startupContext));
> launchMyRichClient();
> }
> catch (Exception e) {
> logger.error("Application launcher", e);
> }
> finally {
> destroySplashScreen();
> }
> }
> After that I discovered I had some exceptions in my spring xml configurat=
ion.
> Maybe a good idea if any of the contributors/submitters would change this=
in SVN?
> Thanks in advance,
> Theo.
--=20
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: htt=
p://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|