Issue while promoting WS Rest consumer

Process Flow and WSRest consumer are not working after migrating to another environment. Below error is encountered while running it on the Target environment:

java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)

Resolution: For resolving this error. Please make sure that below steps are followed and values are correct:

1. Open server-configure.properties file of Source environment and search for property "javax.net.ssl.trustStore". Copy this file to the Target environment and restart Adeptia services. Also check the server-configure.properties of target environment have correct path of this new file.

2. Password for Keystore and Trustore used in SSL configuration should match with the password of Keystore(javax.net.ssl.keyStore) and trustore(javax.net.ssl.trustStore) placed on the locations respectively.

3. If the above doesn't helps then add below property tag under SSL configuration this will log the complete certificate where the error occurs in the Kernelapplication.log file that might help to point where the issue exists.

<Property comment="SSL debugging" dynamic="no" name="javax.net.debug">ssl</Property>

See below screenshot of server-configure.properties.

6-25-2014_5-21-58_PM.jpg

Note:

After making any changes in configuration files or placing the trustore make sure to RESTART Adeptia services.

As a precaution take backup of all initial files.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.