garydgregory opened a new pull request #117: Refactor APIs like 
failed(Exception) to failed(String, Exception)
URL: https://github.com/apache/httpcomponents-core/pull/117
 
 
   Better error reporting with this patch gives us:
   ```
   Exception in thread "main" java.util.concurrent.ExecutionException:
   Socket bind failure for socket ServerSocket[unbound],
   address=0.0.0.0/0.0.0.0:8080, BacklogSize=0: java.net.BindException:
   Address already in use: bind
        at 
org.apache.hc.core5.concurrent.BasicFuture.getResult(BasicFuture.java:74)
        at org.apache.hc.core5.concurrent.BasicFuture.get(BasicFuture.java:87)
        at 
org.apache.hc.core5.http.examples.AsyncFileServerExample.main(AsyncFileServerExample.java:165)
   Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at 
org.apache.hc.core5.reactor.SingleCoreListeningIOReactor.processSessionRequests(SingleCoreListeningIOReactor.java:164)
        at 
org.apache.hc.core5.reactor.SingleCoreListeningIOReactor.processEvents(SingleCoreListeningIOReactor.java:102)
        at 
org.apache.hc.core5.reactor.SingleCoreListeningIOReactor.doExecute(SingleCoreListeningIOReactor.java:96)
        at 
org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:81)
        at 
org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44)
        at java.lang.Thread.run(Unknown Source)
   Thu, 04 Apr 2019 20:17:06 GMT | HTTP server shutting down
   ```
   Instead of just the BindException.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to