- Developer sees that the Spring boot DXA application (hosted externally on customer environment) is not able to connect to the RWS hosted CD microservices. - Same application is able to connect successfully to the customer hosted CD microservices. - Developer can connect successfully with Postman to the RWS hosted CD microservices. - From browser of server hosting the DXA application, the Discovery endpoint can be browsed to successfully. - From debug log when attempting to connect to RWS hosted CD microservices, error seen is Unable to resolve ContentServiceCapability using DiscoveryService: https://HOSTNAME/discovery.svc/TokenServiceCapabilities- cd_client log shows Caused by: javax.net.ssl.SSLException: Connection reset at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:349) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:292) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:287) at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:144) at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1408) at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1314) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411) at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334) at com.sdl.odata.client.caller.BasicEndpointCaller.getResponse(BasicEndpointCaller.java:186) ... 92 common frames omitted Suppressed: java.net.SocketException: Connection reset by peer: socket write error at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110) at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150) at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:81) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:380) ... 106 common frames omitted - From RWS hosted CD microservices, the Discovery and Content service logs do not log the connection attempts as the requests terminated on the load balancer external to RWS, before reaching the CD endpoints. |
Issue resolved after customer firewall was updated; some of the SSL constructs were blocked and caused the requests to fail. |