Search code examples
javaeclipsedebuggingjssefips

"Only SunJSSE TrustManagers may be used" when debugging in Eclipse


I have very strange behavior when debugging some code in Eclipse 4.3.2 Java 1.7 on Mac.

I have some library (no source code) that probably defining it's own TrustManager (my guess). When During debug changing some variable value (not related to the library) and then calling this library I'm getting exception: "FIPS mode: only SunJSSE TrustManagers may be used". If I don't change the value before I call the library then everything is working fine.

What could be a reason for that strange behavior?


Solution

  • The message is clear enough : you, for some reasons, enabled the FIPS 140 compliant mode. The FIPS 140 mode makes using the JSSE trust manager mandatory.

    See http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/FIPS.html for more information on how to configure, or unconfigure, the FIPS mode, and what are the consequences of enabling it.