Well, it's not necessary that simple.
1) First, let's please confirm what Java version is shown in the cf admin, on the "settings summary" (the page AFTER the "Java and jvm" page). What you shared above was a screenshot of the folders where you have different Java versions installed. That doesn't confirm that your cf instance is USING that Java you highlighted.
If you show you ARE using that latest Java, you might think that proves it's "not a Java problem". But actually that 1.8.0_301 is only the latest Java 8...
2) Second, Cf2016 also supports Java 11, at least as long as you're past cf2016 update 8. It's possible that this is a problem of tls-related support that is fixed with Java 11 and not Java 8. And just as that 301 is the latest update to Java 8 (from this week, in fact), so it java 11. 0.12 now the latest Java 11.
That said, do beware that if you change major Java versions like that, you should also "clear the cfclasses" folder (if it has files in it), to force cf to recompile all your code using the new Java, or else you may start getting unexpected java errors, as some existing Java 8 code may now conflict with Java 11. (And there are a couple of related folders, cf-stubs and cfc-skeletons, that need to be cleared if they have files in them. And beware NOT to mistake classes for cfclasses above. ) I discuss clearing these things in point 12 of my post, https://www.carehart.org/blog/client/index.cfm/2014/12/11/help_I_updated_CFs_JVM_and_it_wont_start
3) Note also that by being on cf2016 still, you are running on borrowed time. Its support has ended earlier this year, with the March update, 17, being its last. Going forward, only cf2021 and 2018 will get updates, including security updates.
4) Finally, I appreciate that all this can be a lot to take in. While I give all the info anyone should need in my various posts on the various topics (and related ones they link to), I appreciate that some don't want to read all that, or they find it overwhelming, or they may trip over what they feel is a unique problem, or they, or they may just want someone to "handle it". For all those reasons, I can indeed help directly, remotely, quickly, and with satisfaction guaranteed or you won't pay for the time. More at carehart.org/consulting.
Please do let us know how it goes, whether you resolve things or hit new challenges.
Hi Charlie,
THANKS a lot for your input!!
My problem is resolved for now by restoring the Java version to 8.0_111. Or at least, the Data Source connection behavior is the same as before the problem occurred.
Given what you said, I will pursue upgrade of CF2018 or CF20201 as soon as possible.
As for the Java version, from the server, when I go to java.com to download, it showed me Version 8, update 301. It seems that other version of Java are found under oracle.com/java (Java SE 11 for example).
Thanks!
Dchan