Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 1006

Summary: PrintStackTrace call in PortRangeSocketFactory (Jacorb 3.6)
Product: JacORB Reporter: david.shay
Component: ORBAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: jacorb
Priority: P5    
Version: 3.5   
Hardware: PC   
OS: Windows NT   

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