Looks like older versions of Java, even often used ones (like SE 8), can generate this error if your JCE jar files are not updated. To be precise, JCE jars refer to Java Cryptography Extension Unlimited Strength Policy Files. Updating your two JCE jar files might help.
Grab a .zip of the files from Oracle. There should be two jars inside: local_policy.jar and US_export_policy.jar.
Copy/paste them to your JRE’s lib/security folder and overwrite the older ones. Your path will vary, but on a Windows machine it could be something like: C:/Program Files/Java/jdk.1.8.0_151/jre/lib/security/.