Impacts of upgrade to Java 17
Adeptia Connect version 3.7.2 comes with an upgraded Amazon Corretto JRE. The bundled Amazon Corretto JRE in this version of Adeptia Connect has been upgraded from v8 to v17 to ensure improved security.
This section discusses the impacts of this upgrade and the actions you must take to deal with them.
The upgrade to Java 17 may require you to handle the conflicts that may occur with custom jars or custom classes. You may come across the following scenarios wherein you need to take the necessary actions to address the conflicts.Â
Java packages used in the custom plugins, custom jars, or custom classes may have changed. To address this issue, you need to change the custom plugins, custom jars, and custom classes accordingly.
Classes used in custom plugins, custom jars, or custom classes may have been deprecated or their implementation may have changed. To address this issue, you need to change the custom plugins, custom jars, and custom classes accordingly.
Although Java 17 is backward compatible – code compiled with Java 8 continues to run on Java 17 most of the time – there are certain restrictions implemented in Java 17, for example, Java 17 restricts the use of certain packages and reflections. However, you can override these restrictions by adding the required entries in the launcher.properties file.
External jar(s) in the ext folder may not be compatible with the upgraded versions of the framework. In this case, jars need to be upgraded accordingly.
With an upgrade to JRE v17,
The SAML implementation in Adeptia Connect has got configuration changes. To learn more about SAML in Adeptia Connect, refer to this document.
The JMS provider that connects to Apache Active MQ JMS server uses the two jars activemq-core-5.7.0.jar and geronimo-j2ee-management_1.1_spec-1.0.1.jar.  Ensure that:
You use these two jars when you create a JMS provider that connects to Apache Active MQ JMS server.
You have updated any existing JMS provider that connects to Apache Active MQ JMS server to use these two jars.
For more details, refer to this page.
The applets won’t open on the client machine. To fix this issue, perform the following actions on the client machine:
Upgrade the JRE to v17.
Download the IcedTea-Web tool zip.
Extract the downloaded zip.
Go to the path where you have extracted the zip.
The folder structure would look like the following:
<Drive>:\<Parent Folder (if any)>\icedtea-web-1.8.8.win.bin\icedtea-web-image\bin (This may vary based on where you have extracted the zip)Double-click itweb-settings.
On the IcedTea-Web Control Panel screen, select JVM Settings.
Point Java 17 in OpenJDK.
Click Apply, and then click OK.
Open itw modulejdk in a Notepad file, paste the following argument, and save the file.
--add-opens java.base/com.sun.crypto.provider=ALL-UNNAMEDDownload the data mapper jnlp file that you want open in the applet.
Right-click the jnlp file, and then click Open with > Choose another app.
On the How do you want to open this file? pop-up screen, do the followings:
Select the Always use this app to open .jnlp files checkbox.
Click More apps.
Click Look for another app on this PC.
Browse to the following path.
…\icedtea-web-1.8.8.win.bin\icedtea-web-image\bin (This path may vary based on where you have extracted the IcedTea-Web tool zip).
Select the file javaws.exe and click Open.
Â
As this is a major upgrade, it is recommended that you apply this patch to a test environment before applying it to production.