Using JDK 1.8 and running jasypt-1.9.3/bin/encrypt.sh, we encountered ExceptionInInitializerError

Solution Verified - Updated -

Issue

Using JDK 1.8 and running jasypt-1.9.3/bin/encrypt.sh, we encountered ExceptionInInitializerError

$java -version

openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)



$ ./encrypt.sh algorithm="PBEWITHMD5ANDDES" input=here password=there


----ENVIRONMENT-----------------
Runtime: Red Hat, Inc. OpenJDK 64-Bit Server VM 25.292-b10 
----ARGUMENTS-------------------
input: here
algorithm: PBEWITHMD5ANDDES
password: there
----ERROR-----------------------
java.lang.ExceptionInInitializerError

Environment

  • Red Hat Fuse 6.3
  • Red Hat AMQ 6.3
  • jasypt 1.9.3
  • OpenJDK 1.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content