[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9518) WebPortPoller #onePing swallows Exceptions without any logging

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Thu Aug 11 05:31:15 EDT 2011


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
    Affects Versions: 3.3.0.M3
            Reporter: Andre Dietisheim
            Assignee: Rob Stryker
             Fix For: 3.3.x


{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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list