InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Problem Statement: Getting exception while trying to connecting remote https system.

Caused by: the trustAnchors parameter must be non-empty
	... 28 common frames omitted

Solution: System is not getting keystore from relative path.
Provide absolutepath and keystore name. It should be resolved.

//System.setProperty("", relativePath+key_name); //Not working

System.setProperty("", absolutePath+key_name); //Working



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s