Errors and Exceptions Archives - Little Big Extra Skip to main content

How to add Subject Alt Names or multiple domains in a key-store and self signed certificate

How to add multiple domains(subject alt names) into certificate and a keystore(.jks) file Introduction In this article, we will see how to add multiple domains also known as the Subject alt name in the JKS file. If you are getting SSL handshake exception and your application is complaining about

then basically it means that […]

Read More

How to fix javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present

How to fix javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present Introduction In this article, we will focus on how to resolve the SSLHandshakeException and possible cause behind it. If you are getting below error, let’s find out how to resolve it. javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names presentat sun.security.ssl.Alerts.getSSLException(Alerts.java:192)at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959)at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:328)at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322)at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1614) Cause of error The reason, we get above error is that CN(Common name) […]

Read More

How to fix PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

How to fix PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException Introduction In the last article, we were trying to enable communication over https between 2 applications using the self-signed certificate. Once the certificate was added and when we ran the application some users would have got the below error.

In this article, we will focus on […]

Read More

How to fix – Execution build and start of goal io.fabric8:docker-maven-plugin:0.20.0:build failed: A tar file cannot include itself

How to fix- Execution build and start of goal io.fabric8:docker-maven-plugin:0.20.0:build failed: A tar file cannot include itself. Introduction When using fabric8:docker-maven-plugin I got this error and below fix helped me to fix this. I assume this error occurs when you use dockerFileDir or dockerFile tag in maven plugin, it seems the tar file which is […]

Read More

How to fix org.apache.cxf.ws.policy.PolicyException: These policy alternatives can not be satisfied

How to fix – org.apache.cxf.ws.policy.PolicyException: These policy alternatives can not be satisfied: I encountered this error when trying to call a secure web service which had username password authentication along with Timestamp authentication. Exception I got following exception when I was calling secure web service

  Following steps helped me fix this problem, hope it […]

Read More

How to resolve – org.springframework.social.UncategorizedApiException: bio field is deprecated for versions v2.8 and higher

How to fix – org.springframework.social.UncategorizedApiException: (#12) bio field is deprecated for versions v2.8 and higher I encountered this error when using spring-social-facebook API. I did git clone of Spring tutorial for accessing facebook data I was hoping for it to work straightaway but got blocked by this error. Following steps helped me fix this problem, hope it helps. […]

Read More

Exception – How to resolve com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

Exception I got this exception while using Apache CXF service. I was trying to use cxf endpoint to add some interceptors as shown on apache page.

But I was getting this exception continously

I had added the following dependencies in my POM  

The error got resolved when I changed it to

[…]

Read More

Bitnami