How can I debug Exception in thread “main” javax.net.ssl.SSLHandshakeException: handshake failure?
This error can be caused by attempting to use RACF certificates with JSSE2 and specifying a null password when loading the RACFInputStream and the key manager factory. If this is the case, specify a password for the RACFInputStream and key manager factory and restart your application. If this does not resolve your issue, the next step is to determine what might be causing the handshake failure by getting trace data for the SSL handshake. In order to capture the trace for the SSL handshake specify the option javax.net.debug=all when you run your application. This causes trace data to be printed to stdout. To capture it, you redirect output to a trace file.
Related Questions
- Why do I get "Exception in thread main java.lang.NoClassDefFoundError:" when trying to run my first Java Sound program?
- Why do I get Exception in thread "main" java.lang.NoClassDefFoundError:edu/stanford/nlp/tagger/maxent/MaxentTagger?
- How do you catch an exception and then rethrow it on another thread?