Skip to main content
Participant
September 2, 2015
Answered

cfhttp : the trustAnchors parameter must be non-empty

  • September 2, 2015
  • 1 reply
  • 2215 views

I am making a cfhttp call from my main server to reporting server. And it was working fine until few days ago.

But suddenly it has started giving errors when I am trying to make http call through cfhttp. Following is the error dump :

Charset     [empty string]

ErrorDetail     I/O Exception: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Filecontent     Connection Failure

Header  [empty string]

Mimetype    Unable to determine MIME type of file.

Responseheader 

struct [empty]

Statuscode  Connection Failure. Status code unavailable.

Text    YES

Because this error has start coming all of sudden.I suspect is it because of automatic java update.

I had seen some links related truststore key missing , but nothing was related to coldfusion.

Anyone having idea regarding this ?

Thanks in advance

This topic has been closed for replies.
Correct answer ritucf

Upgrading java to latest version on both the servers resolved my problem.

1 reply

ritucfAuthorCorrect answer
Participant
September 2, 2015

Upgrading java to latest version on both the servers resolved my problem.

James Moberg
Inspiring
February 9, 2016

FYI:  This change just started in Feb 2016.... Java 1.8 is automatically updating (during restart) and deleting old versions of JRE.  Our CF 10 Server quit parsing XML, resizing images and CFHTTP was broken until we updated the Java path to point to the new JRE sub-directory.

Carl Von Stetten
Legend
February 9, 2016

Jamo Did you install the consumer JRE or the server JDK (which has a JRE inside of it) originally?  I don't think the JDKs do automatic updates, whereas the consumer JREs do.  If you install the JDK and use the JRE inside of it instead, it should be safe from automatic updates.