Legacy Knowledge Base
Published Jul. 2, 2025

RuntimeException - java.lang.IllegalArgumentException: none of the ciphers are supported by this JVM

Written By

Thanga Meena

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Below RuntimeException throws which indicates listed ciphers are not available under the supported ciphers of the JVM.
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: none of the ciphers [TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA] are supported by this JVM
at org.elasticsearch.xpack.core.XPackClientPlugin.getTransports(XPackClientPlugin.java:492)
at org.elasticsearch.common.network.NetworkModule.<init>(NetworkModule.java:130)
at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:190)

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3

Resolution

  • With the prior version of Liferay DXP, This runtime exception usually may occur when there are different JDK distributions or versions configured in the Elasticsearch and Liferay. As per the Liferay document, the search engine and Liferay DXP must use the same JDK version and distribution. (e.g., Oracle Open JDK 1.8.0_201). This consideration is necessary for Elasticsearch.
  • Also, this is a known and documented limitation. That is, the Transport Client relies on Java serialization. Because of this, the Major version and the Vendor of the JVM used by DXP and Elasticsearch must be the same.
  • On a side note: The above limitation has overcome with the use of Java REST Client in Liferay DXP 7.3. This communicates with ES over the HTTP communication protocol which doesn't rely on Java serialization. Hence, the Elasticsearch nodes can run on different JVM than what the DXP deployment is using.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base