Issue with Java Version Compatibility After Migrating Application from Mendix 10.12.8 to 10.24.6 on AWS EKS Private Cloud
0
I recently migrated my application from Mendix 10.12.8 to Mendix 10.24.6. The migration was successful, but when I attempted to publish the application on our private cloud (AWS EKS connected cluster), I encountered the following error: "Defaulted container "mendix" out of: mendix, m2ee-sidecarMendix Runtime launcher failed to start.For more information set 'MX_LOG_LEVEL' to 'i' (info) or 'v' (verbose) and try again.[rtlauncher:main$] ERROR Incompatible java version: 11.0.25, jvm name: OpenJDK 64-Bit Server VM, Java 21 is required.java.lang.RuntimeException: Incompatible java version: 11.0.25, jvm name: OpenJDK 64-Bit Server VM, Java 21 is required. at com.mendix.container.boot.Container$.$anonfun$verifyJdkCompatibility$1(Container.scala:87) at com.mendix.container.boot.Container$.$anonfun$verifyJdkCompatibility$1$adapted(Container.scala:83) at scala.util.Either.flatMap(Either.scala:360) at com.mendix.container.boot.Container$.verifyJdkCompatibility(Container.scala:83) at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$1(Container.scala:68) at com.mendix.container.boot.Container$.time(Container.scala:148) at com.mendix.container.boot.Container$.startAndWaitForever(Container.scala:68) at com.mendix.container.boot.Main$.$anonfun$execute$2(Main.scala:16) at com.mendix.container.boot.Main$.$anonfun$new$2(Main.scala:20) at scala.util.Either.flatMap(Either.scala:360) at com.mendix.container.boot.Main$.delayedEndpoint$com$mendix$container$boot$Main$1(Main.scala:19) at com.mendix.container.boot.Main$delayedInit$body.apply(Main.scala:12) at scala.Function0.apply$mcV$sp(Function0.scala:42) at scala.Function0.apply$mcV$sp$(Function0.scala:42) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) at scala.App.$anonfun$main$1(App.scala:98) at scala.App.$anonfun$main$1$adapted(App.scala:98) at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:619) at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:617) at scala.collection.AbstractIterable.foreach(Iterable.scala:935) at scala.App.main(App.scala:98) at scala.App.main$(App.scala:96) at com.mendix.container.boot.Main$.main(Main.scala:12) at com.mendix.container.boot.Main.main(Main.scala)" It seems the issue occurs because the runtime is still using Java 11, while Mendix 10.24 requires Java 21 by default. Interestingly, I did not face this problem when publishing the same application to the Mendix Cloud, where the deployment succeeded without errors. If anyone has suggestions or a solution for handling this in a private AWS EKS environment, I would really appreciate the help.