Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368072

Summary: [dstore][ssl] no exception logged upon bind error
Product: [Tools] Target Management Reporter: Onno Van den Troost <onno>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: dmcknigh
Version: 3.2.1   
Target Milestone: 3.4 M5   
Hardware: Other   
OS: other   
Whiteboard:
Bug Depends on:    
Bug Blocks: 368188    
Attachments:
Description Flags
patch to log binding errors none

Description Onno Van den Troost CLA 2012-01-06 22:41:26 EST
Our customer gets 
Error binding socket on ports <port-range> 
when using SSL (it works when SSL is disabled).

One of our developers looked at it and said that OpenRSE just invokes a JVM method:
  serverSocket = sslContext.getServerSocketFactory().createServerSocket(i, backlog, bindAddr);

When an exception occurs in this method, the OpenRSE code will not log the exception.

It seems to me that we should modify OpenRSE to log the exception.

David D. helped us out and provided a dstore_core.jar with additional logging (to stderr), so you might want to check with him.

I would like to request that OpenRSE is modified to log the exception whether SSL is used or not. 

Please backport to v321.
Comment 1 David McKnight CLA 2012-01-09 12:28:22 EST
Created attachment 209223 [details]
patch to log binding errors
Comment 2 David McKnight CLA 2012-01-09 12:29:27 EST
I've committed a fix to log binding errors.  Does this need to be backported?
Comment 3 Onno Van den Troost CLA 2012-01-10 20:12:49 EST
Please backport to v321.
Comment 4 David McKnight CLA 2012-01-10 20:47:44 EST
(In reply to comment #3)
> Please backport to v321.

Yes, the backpack is bug 368188.