Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 1006 - PrintStackTrace call in PortRangeSocketFactory (Jacorb 3.6)
Summary: PrintStackTrace call in PortRangeSocketFactory (Jacorb 3.6)
Status: RESOLVED FIXED
Alias: None
Product: JacORB
Classification: Unclassified
Component: ORB (show other bugs)
Version: 3.5
Hardware: PC Windows NT
: P5 normal
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2015-03-17 11:48 UTC by david.shay
Modified: 2015-03-17 12:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david.shay 2015-03-17 11:48:06 UTC
In Jacorb 3.6, in class PortRangeSocketFactory, there remains a call to the printStackTrace method which floods our console with exceptions in cases we hit a firewall or a server did not start.
See line 177 in method doCreateSocket:

            catch (IOException ex)
            {
==>             ex.printStackTrace();
                tryToClose(socket);
            	if (useTimeout && System.currentTimeMillis() > expireTime)
            	{
            		throw new TIMEOUT("couldn't open socket within " + timeout + ". Last exception details: " + ex.toString());
            	}
            }

This call should be removed.
Comment 1 Nick Cross 2015-03-17 12:01:21 UTC
Fixed by 7c5b142e7a366c6ed46bfe018b71f93140712845