handle JCE security errors on Java 6 correctly