When running DX NetOps Spectrum, Java clients connect but users may see the following error message when failing to launch the OneClick WebApp:
SPC-OCC-10251: Could not connect to Web server at http(s)://<HOSTNAME>:<PORT>
When reviewing the <SPECROOT>/webtomcat/bin/logs/webswing.log file, you may see the following error:
2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm:
2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] at com.aprisma.util.net.http.HttpConnection.createSocket(HttpConnection.java:580)
2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] ... 25 more
2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] Caused by: java.security.UnrecoverableKeyException: Cannot recover key
An alternative error that may appear in the webtomcat webswing.log:
2024-12-17 17:49:29,751 INFO [Webswing Process Handler] (SwingProcessImpl.java:233) [oneclickwebapp_anonym_bbbd7f84d6_1734475768242] ERROR: Failed to connect websocket to server [wss://<OC_Host>:9443/spectrum/oneclickwebapp/async/app-bin]! -> Connection failed. |
2024-12-17 17:49:29,752 INFO [Webswing Process Handler] (SwingProcessImpl.java:233) [oneclickwebapp_anonym_bbbd7f84d6_1734475768242] ERROR: Exiting application because it could not connect to server -> jakarta.websocket.DeploymentException: Connection failed.
...
2024-12-17 17:49:29,753 INFO [Webswing Process Handler] (SwingProcessImpl.java:233) [oneclickwebapp_anonym_bbbd7f84d6_1734475768242] Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
In 25.4.3 after upgrading from 24.3.12 you may see in <SPECROOT>/webtomcat/bin/logs/webswing.log
All supported DX NetOps Spectrum releases
Misconfigured vmArgs entry in the $SPECROOT/webtomcat/webswing/webswing.config file or the $SPECROOT/webtomcat/bin/webswing-app.config file
NetOps 24.3.11 and above:
NetOps 25.4.3 and above:
You can run sslConfig.sh which will repair the above problem on 25.4.3
Important that if the keystore password is a complex password with special characters, the password DOES NOT need to be escaped with double or single quotes.