AMQ 7 - NoSuchAlgorithmException: Cannot find any provider supporting Blowfish
Issue
- Run Artemis to mask the password and configure the script attempt to decrypt credentials, but getting the following starting the AMQ server:
Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting Blowfish
at java.base/javax.crypto.Cipher.getInstance(Cipher.java:565)
at org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec$BlowfishAlgorithm.encode(DefaultSensitiveStringCodec.java:188)
at org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec.encode(DefaultSensitiveStringCodec.java:68)
at org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec.encode(DefaultSensitiveStringCodec.java:49)
at org.apache.activemq.artemis.cli.commands.Mask.execute(Mask.java:71)
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:160)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:108)
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:135)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:134)
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:50)
Environment
- Red Hat AMQ 7.10.1
- RHEL 8
- JDK 17
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.