trustAnchors empty, trustStore not found

In the last days, at work, while deploying our Java servlet-based application we got the following exception's message:

java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty


The full stacktrace doesn't matter, really. That was the root-cause of everything and we couldn't deploy anything. So, what is the meaning of this?

After doing some search, we did't find an absolute answer. They were all about "I did and it works now", nothing that solved our problem.

Then, we checked everything in application's files and we found that our trustStore (with certificates), which path is defined in Java property "javax.net.ssl.trustStore", wasn't there! Just moved it where it belongs and it worked!

So, the meaning is: Those anchors are empty because I don't have a valid trustStore to load. Easy, right?


About this entry


0 comentarios: