Background
Contrast Security agent is unable to communicate with the Contast UI.Error Messages
The error message that appears on screen is:java.net.SocketTimeoutException: Read timed out exception
java.net.SocketTimeoutException: Read timed out
at java.base/java.net.SocketInputStream.socketRead0(Native Method)
at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
Root Cause
This problem is caused by an environment issue, such as:Server is trying to read data from the request, but its taking longer than the timeout value for the data to arrive from the client. Timeout here would typically be tomcat connector -> connectionTimeout attribute.
- Client has a read timeout set, and server is taking longer than that to respond.
- This error can happen with high concurrency if the keep alive is enabled.
Resolution
A possible solution for this problem within the Tomcat web application is to modify the CONTEXT.XML file, and modify the CONNECTOR definition that governs the workstation browser connectivity to the Tomcat server.
<Connector port="7181" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="7182"
enableLookups="true"
/>
Specifically, modify the connectionTimeout value. Increase this value to suppress the error condition.