Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20340

Fix version comparison in ConfigurationGenerator.checkJavaVersion()

    XMLWordPrintable

    Details

    • Tags:
    • Backlog priority:
      1,000
    • Sprint:
      nxSL Sprint 8.4.1, nxSL Sprint 8.4.2
    • Story Points:
      2

      Description

      NXP-20189 introduces a regression in the way the Java version is checked. Now version like 1.8.0_72-internal are not supported any more, because of the -internal suffix.
      Same problem with the -ea (early access) suffix

      Startup fails with the following error:

      ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.ComponentManagerImpl] Failed to register component: service:org.nuxeo.runtime.management.ServerLocator (java.lang.NumberFormatException: For input string: "72-internal")
      java.lang.NumberFormatException: For input string: "72-internal"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.parseInt(Integer.java:615)
      	at org.nuxeo.launcher.config.ConfigurationGenerator.checkJavaVersion(ConfigurationGenerator.java:1291)
      	at org.nuxeo.launcher.config.ConfigurationGenerator.checkJavaVersion(ConfigurationGenerator.java:1322)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d