Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346044 - HostReachableValidator does not translate socket exceptions to issues
Summary: HostReachableValidator does not translate socket exceptions to issues
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Skalli (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 03:53 EDT by Michael Ochmann CLA
Modified: 2022-10-03 10:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Ochmann CLA 2011-05-17 03:53:20 EDT
Connection problems should be translated to meaningful issues. Just catching UnknownHostException seems to fail in certain cases:

} catch (UnknownHostException e) {
  issues.add(newIssue(Severity.ERROR, entityId, item, TXT_HOST_UNKNOWN,
                       url.getHost()));
} catch (IOException e) {
  LOG.warning(MessageFormat.format("I/O Exception on validation: {0}", 
                       e.getMessage())); //$NON-NLS-1$
}