[jbosstools-issues] [JBoss JIRA] (JBIDE-9518) WebPortPoller #onePing swallows Exceptions without any logging
Martin Malina (JIRA)
jira-events at lists.jboss.org
Thu Apr 5 08:58:49 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-9518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Malina closed JBIDE-9518.
--------------------------------
> WebPortPoller #onePing swallows Exceptions without any logging
> --------------------------------------------------------------
>
> Key: JBIDE-9518
> URL: https://issues.jboss.org/browse/JBIDE-9518
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: JBossAS/Servers
> Affects Versions: 3.3.0.M3
> Reporter: Andre Dietisheim
> Assignee: Rob Stryker
> Fix For: 3.3.0.M4
>
>
> WebPortPoller#onePing swallows a plain Exception without at least logging it.
> See https://source.jboss.org/cru/REV-JBIDE-4/#c23
> {code}
> private static boolean onePing(String url) {
> try {
> URL pingUrl = new URL(url);
> URLConnection conn = pingUrl.openConnection();
> ((HttpURLConnection)conn).getResponseCode();
> return true;
> } catch( FileNotFoundException fnfe ) {
> return true;
> } catch( Exception e) {
> }
> return false;
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list