search cancel

TDM Portal logs show quartzScheduler java.net.SocketTimeoutException: Read timed out

book

Article ID: 252760

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

 Why do we see these errors in the TDM Portal's TDMDataReservation.log? It doesn't seem to be impacting anything.

 

[ERROR] [quartzScheduler_Worker-2 ] --- [U:][M:][P:]             c.c.t.d.j.ReservationExpiryMonitorJob:  Exception caught in reservation expiry monitor job

java.net.SocketTimeoutException: Read timed out

              at java.net.SocketInputStream.socketRead0(Native Method)

              at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)

              at java.net.SocketInputStream.read(SocketInputStream.java:171)

              at java.net.SocketInputStream.read(SocketInputStream.java:141)

              at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:464)

              at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:165)

              at sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)

              ... 37 common frames omitted

Wrapped by: javax.net.ssl.SSLException: Read timed out

              at sun.security.ssl.Alert.createSSLException(Alert.java:127)

              at sun.security.ssl.TransportContext.fatal(TransportContext.java:324)

              at sun.security.ssl.TransportContext.fatal(TransportContext.java:267)

              at sun.security.ssl.TransportContext.fatal(TransportContext.java:262)

              at sun.security.ssl.SSLTransport.decode(SSLTransport.java:138)

              at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1397)

              at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1305)

              at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)

              at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)

              at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)

              at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)

              at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)

              at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)

              at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)

              at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)

              at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

              at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

              at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

              at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)

              at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:87)

              at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)

              at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66)

              at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:776)

              ... 18 common frames omitted

Wrapped by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for https://<hostname.myDomin.com>:8443/TestDataManager/user/login: Read timed out; nested exception is javax.net.ssl.SSLException: Read timed out

              at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:785)

              at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:711)

              at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:602)

              at com.ca.tdm.security.impl.client.SecurityClientImpl.fetchTokenInternal(SecurityClientImpl.java:227)

              ... 15 common frames omitted

Wrapped by: com.ca.tdm.security.client.AuthenticationException: Login failed due to I/O error

              at com.ca.tdm.security.impl.client.SecurityClientImpl.fetchTokenInternal(SecurityClientImpl.java:230)

              at com.ca.tdm.security.impl.client.SecurityClientImpl.access$000(SecurityClientImpl.java:54)

              at com.ca.tdm.security.impl.client.SecurityClientImpl$1.load(SecurityClientImpl.java:88)

              at com.ca.tdm.security.impl.client.SecurityClientImpl$1.load(SecurityClientImpl.java:85)

              at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)

              at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)

              at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)

              at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)

              at com.google.common.cache.LocalCache.get(LocalCache.java:3937)

              at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)

              at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)

              at com.ca.tdm.security.impl.client.SecurityClientImpl.login(SecurityClientImpl.java:108)

              at com.ca.tdm.datareservation.job.ReservationExpiryMonitorJob.getIntegratorSecurityContext(ReservationExpiryMonitorJob.java:121)

              at com.ca.tdm.datareservation.job.ReservationExpiryMonitorJob.execute(ReservationExpiryMonitorJob.java:142)

              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

Environment

Release : 4.10.X

Cause

Engineering looked into this error and found that the root cause is the Find & Reserve microservice is starting up faster than the main service, so authentication is failing when F&R tries to log in with the integrator account. Once the main service is ready, the authentication is successful. That is why there aren't any problems related to the error.

Resolution

Engineering is looking into a fix to stop the recording of this error until after the main service is available.