search cancel

[TelemetrySpringConfiguration] Stacktrace is : com.termalabs.common.JawsException: Unexpectedly could not build RestTemplate

book

Article ID: 200225

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

Have new password length requirement.  Created new certificate with 17 character password.  When starting JAWS 6.0.1-1 with new cert, this error is generated:

2020-09-24 10:54:51,271 WARN  [TelemetrySpringConfiguration] unable to retrieve REST config, using default

2020-09-24 10:54:51,271 DEBUG [TelemetrySpringConfiguration] Stacktrace is : com.termalabs.common.JawsException: Unexpectedly could not build RestTemplate

        at com.termalabs.common.serviceutils.RestApiUtils.buildRestTemplate(RestApiUtils.java:173)

        at com.termalabs.telemetry.service.TelemetrySpringConfiguration.getRestTemplate(TelemetrySpringConfiguration.java:44)

        at com.termalabs.telemetry.service.TelemetrySpringConfiguration$$EnhancerBySpringCGLIB$$f40b467a.CGLIB$getRestTemplate$4(<generated>)

        at com.termalabs.telemetry.service.TelemetrySpringConfiguration$$EnhancerBySpringCGLIB$$f40b467a$$FastClassBySpringCGLIB$$a0053c67.invoke(<generated>

)

        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)

        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)

        at com.termalabs.telemetry.service.TelemetrySpringConfiguration$$EnhancerBySpringCGLIB$$f40b467a.getRestTemplate(<generated>)

        ... 62 skipped

Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://hostname:8443/jaws/api/properties/s

erverParam/subscription.httpReadTimeout": Remote host terminated the handshake; nested exception is javax.net.ssl.SSLHandshakeException: Remote host terminat

ed the handshake

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

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

        at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:294)

        at com.termalabs.common.serviceutils.RestApiUtils.retrievePropertyValueAsString(RestApiUtils.java:260)

        at com.termalabs.common.serviceutils.RestApiUtils.getIntProperty(RestApiUtils.java:265)

        at com.termalabs.common.serviceutils.RestApiUtils.retrieveRequestTimeoutInMillis(RestApiUtils.java:271)

        at com.termalabs.common.serviceutils.RestApiUtils.buildHttpRestTemplateIfPossible(RestApiUtils.java:189)

        ... 68 in common

Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

        at sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1379)

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

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

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

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

        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:167)

        at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:78)

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

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

        ... 75 in common

Caused by: java.io.EOFException: SSL peer shut down incorrectly

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

        at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:460)

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

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

        ... 85 in common

 

2020-09-24 10:54:51,722 WARN  [JawsMicroServiceDriver] Unable to retrieve service enabled, setting to disabled

2020-09-24 10:54:51,737 INFO  [JawsMicroServiceDriver] Unable to get service enabled recheck interval

2020-09-24 10:54:52,013 WARN  [JawsMicroServiceDriver] Unable to retrieve service enabled, setting to disabled

2020-09-24 10:54:52,024 INFO  [JawsMicroServiceDriver] Unable to get service enabled recheck interval

2020-09-24 10:54:53,087 INFO  [TelemetryServlet] Started TelemetryServlet in 9.292 seconds (JVM running for 30.439)

 

Cause

Defect DE475614

Environment

Release : 6.0.1

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

This is a known issue when using JDK 1.8.261 and configuring HTTPS in versions of AAI before 6.0.2-1.

 

Upgrade to 6.0.2-1.