Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2330

Improve JVM version check

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    Description

      In the TTP running, the following exception was thrown, 
      2022-12-28 06:23:20 WARN - Caused by: java.lang.NumberFormatException: For input string: "17-ea"
      2022-12-28 06:23:20 WARN - at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
      2022-12-28 06:23:20 WARN - at java.base/java.lang.Integer.parseInt(Integer.java:668)
      2022-12-28 06:23:20 WARN - at java.base/java.lang.Integer.parseInt(Integer.java:786)
      2022-12-28 06:23:20 WARN - at org.talend.sdk.component.runtime.manager.asm.Unsafes.<clinit>(Unsafes.java:46)
      2022-12-28 06:23:20 WARN - ... 73 more
      2022-12-28 06:23:20 WARN - Exception in thread "org.talend.sdk.component.studio.ProcessManager$4-readiness-checker" java.lang.IllegalStateException: Component server startup failed
      2022-12-28 06:23:20 WARN - at org.talend.sdk.component.studio.ProcessManager$4.run(ProcessManager.java:395)
      The root cause behind it is: 
      [tuj@tal-rd01 20221228_0527]$ /opt/jdk17/bin/java -version
      openjdk version "17-ea" 2021-09-14
      OpenJDK Runtime Environment (build 17-ea+32-2679)
      OpenJDK 64-Bit Server VM (build 17-ea+32-2679, mixed mode, sharing)
      Please give a better way to check the JVM version in the https://github.com/Talend/component-runtime/blob/master/component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/asm/Unsafes.java#L46

      Attachments

        Activity

          People

            Unassigned Unassigned
            wyuan Wei Yuan
            emmanuel gallois, Wei Wang, Wei Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: