Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1381

Openshift source to image is not working with JDK17

XMLWordPrintable

      This issue is blocker because affect to all users and also blocks `QUARKUS-728`

      When you create an application with JDK17 and then try to deploy to Openshift by s2i, the app is deployed but the start-up process fails:

      Caused by: java.lang.UnsupportedClassVersionError: org/acme/rest/GreetingResource has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
      	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
      	at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:96)
      	at io.quarkus.bootstrap.runner.RunnerClassLoader.loadClass(RunnerClassLoader.java:56)
      	at java.base/java.lang.Class.forName0(Native Method)
      	at java.base/java.lang.Class.forName(Class.java:398)
      	at org.acme.rest.GreetingResource_Bean.<init>(GreetingResource_Bean.zig:48)
      	at io.quarkus.arc.setup.Default_ComponentsProvider.addBeans1(Default_ComponentsProvider.zig:246)
      	at io.quarkus.arc.setup.Default_ComponentsProvider.getComponents(Default_ComponentsProvider.zig:38)
      	at io.quarkus.arc.impl.ArcContainerImpl.<init>(ArcContainerImpl.java:116)
      	at io.quarkus.arc.Arc.initialize(Arc.java:20)
      	... 19 more
      

      Seems that the app is compiled with JDK17 but the docker image use JDK11

       

              Unassigned Unassigned
              rhn-support-pagonzal Pablo Gonzalez Granados (Inactive)
              Pablo Gonzalez Granados Pablo Gonzalez Granados (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: