|
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
|
|
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
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 19:47:22
|
[ http://jira.springframework.org/browse/RCP-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40224#action_40224 ]
Lieven Doclo commented on RCP-481:
----------------------------------
Status of this issue?
> Exceptions disappear in ApplicationLauncher
> -------------------------------------------
>
> Key: RCP-481
> URL: http://jira.springframework.org/browse/RCP-481
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Affects Versions: 1.0.0
> Reporter: Theo Gülcher
> Assignee: Peter De Bruycker
> Priority: Trivial
>
> http://forum.springframework.org/showthread.php?t=40931
> ---------------------------------------------------------------------------------
> 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 any exceptions:
> Code:
> public ApplicationLauncher(String startupContextPath, String[] rootContextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootContextConfigLocations, 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[] rootContextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootContextConfigLocations, startupContext));
> launchMyRichClient();
> }
> catch (Exception e) {
> logger.error("Application launcher", e);
> }
> finally {
> destroySplashScreen();
> }
> }
> After that I discovered I had some exceptions in my spring xml configuration.
> Maybe a good idea if any of the contributors/submitters would change this in SVN?
> Thanks in advance,
> Theo.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:49:25
|
[ http://jira.springframework.org/browse/RCP-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-481:
-----------------------------
Fix Version/s: 1.0.2
> Exceptions disappear in ApplicationLauncher
> -------------------------------------------
>
> Key: RCP-481
> URL: http://jira.springframework.org/browse/RCP-481
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Components: Application Framework
> Affects Versions: 1.0.0
> Reporter: Theo Gülcher
> Assignee: Lieven Doclo
> Priority: Trivial
> Fix For: 1.0.2
>
>
> http://forum.springframework.org/showthread.php?t=40931
> ---------------------------------------------------------------------------------
> 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 any exceptions:
> Code:
> public ApplicationLauncher(String startupContextPath, String[] rootContextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootContextConfigLocations, 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[] rootContextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootContextConfigLocations, startupContext));
> launchMyRichClient();
> }
> catch (Exception e) {
> logger.error("Application launcher", e);
> }
> finally {
> destroySplashScreen();
> }
> }
> After that I discovered I had some exceptions in my spring xml configuration.
> Maybe a good idea if any of the contributors/submitters would change this in SVN?
> Thanks in advance,
> Theo.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
From: Lieven D. (JIRA) <no...@sp...> - 2008-11-12 15:34:41
|
[ http://jira.springframework.org/browse/RCP-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo resolved RCP-481.
------------------------------
Resolution: Invalid
Dead issue, resolving
> Exceptions disappear in ApplicationLauncher
> -------------------------------------------
>
> Key: RCP-481
> URL: http://jira.springframework.org/browse/RCP-481
> Project: Spring Rich Client Project
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.0.0
> Reporter: Theo Gülcher
> Assignee: Lieven Doclo
> Priority: Trivial
> Fix For: 1.1.0
>
>
> http://forum.springframework.org/showthread.php?t=40931
> ---------------------------------------------------------------------------------
> 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 any exceptions:
> Code:
> public ApplicationLauncher(String startupContextPath, String[] rootContextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootContextConfigLocations, 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[] rootContextConfigLocations) {
> .....
> .....
> try {
> setRootApplicationContext(loadRootApplicationContext(rootContextConfigLocations, startupContext));
> launchMyRichClient();
> }
> catch (Exception e) {
> logger.error("Application launcher", e);
> }
> finally {
> destroySplashScreen();
> }
> }
> After that I discovered I had some exceptions in my spring xml configuration.
> Maybe a good idea if any of the contributors/submitters would change this in SVN?
> Thanks in advance,
> Theo.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|