java

WiX: How to check if JRE is installed on install only

Checking JRE can be done with below code. I found this on the net, but it failed for me with WixUI_FeatureTree and WixUI_Mondo setup interfaces. The problem was that the condition has not checked only on install. Therefore I got the message also if I tried to modify features and this prevented my from changing them. The added Installed OR makes sure this condition is only checked on the very first install and no more later. It would otherwise cause serious issues for the user if the application should be removed after the JRE has been uninstalled.

ColdFusion / Java: PKIX path validation failed with keyCertSign bit is not set

We tried to access a remote webservice from a partner and they updated their certificate a few days ago. This request fails with an very unhelpful error message in ColdFusion.

Symptom:

  • ColdFusion CFHTTP is broken if you access a SSL site, but it worked in past.
  • ColdFusion CFDUMP says Connection Failure with I/O Exception: peer not authenticated

Analysis:

The very first idea was - there must be something wrong with the top level certification authority like a missing root certificate in the cacerts store that has not been integrated with Java in past. The root level certificate has been imported manually, but the error was still there. As you may expierenced yourself, ColdFusion is always very unhelpful if it comes to SSL errors. If you need more detailed information you need to go on the Java level. Here is an example code snippet you can run:

RSS - java abonnieren