Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] How to handle SocketTimeoutException

Hi Team

 

What would be the ideal way of handling the SocketTImeoutException from Jetty layer.

Our application tries to connect to Exchange server and failing with below exception. It is not recovering from this exception until restarting the application.

 

java.net.SocketTimeoutException: Connect Timeout at

org.eclipse.jetty.io.ManagedSelector$Connect.run(ManagedSelector.java:812) ~[?:?] at

java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_232] at

java.util.concurrent.FutureTask.run(FutureTask.java:266)~[?:1.8.0_232] at

java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_232] at

java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.8.0_232] at

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_232] at

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_232] at

java.lang.Thread.run(Thread.java:748)[?:1.8.0_232]

 

Jetty version is : 9.4.22.v20191022

 

Please suggest for any approach when application get this SocketTImeoutException with Jetty.

 

Thanks in advance

Sai Sankar Challa


Back to the top