|
From: <no...@at...> - 2007-07-14 10:36:01
|
Exceptions disappear in ApplicationLauncher
-------------------------------------------
Key: RCP-481
URL: http://opensource.atlassian.com/projects/spring/brows=
e/RCP-481
Project: Spring Framework Rich Client Project
Issue Type: Improvement
Components: Application Framework
Affects Versions: 0.3.0
Reporter: Theo G=C3=BClcher
Priority: Trivial
http://forum.springframework.org/showthread.php?t=3D40931
---------------------------------------------------------------------------=
------
Hi,
I discovered some strange behavior at startup of my application. After the =
splash screen became visible it suddenly disappeared and I did not see any =
exception.
I discovered that the following piece of code was responsible for hiding an=
y exceptions:
Code:
public ApplicationLauncher(String startupContextPath, String[] rootCont=
extConfigLocations) {
.....
.....
try {
setRootApplicationContext(loadRootApplicationContext(rootContex=
tConfigLocations, startupContext));
launchMyRichClient();
}
finally {
destroySplashScreen();
}
}
I think this code is very wrong, because any exceptions in the try block wo=
uld just be swallowed without showing an exception in your console or log f=
ile, so I added a catch block, like this:
Code:
public ApplicationLauncher(String startupContextPath, String[] rootCont=
extConfigLocations) {
.....
.....
try {
setRootApplicationContext(loadRootApplicationContext(rootContex=
tConfigLocations, startupContext));
launchMyRichClient();
}
catch (Exception e) {
logger.error("Application launcher", e);
}
finally {
destroySplashScreen();
}
}
After that I discovered I had some exceptions in my spring xml configuratio=
n.
Maybe a good idea if any of the contributors/submitters would change this i=
n 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
|