Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9518

WebPortPoller #onePing swallows Exceptions without any logging

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M4
    • 3.3.0.M3
    • server
    • None

      WebPortPoller#onePing swallows a plain Exception without at least logging it.
      See https://source.jboss.org/cru/REV-JBIDE-4/#c23

      	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;
      	}
      

            rob.stryker Rob Stryker (Inactive)
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: