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

Fix -Djvmcheck=nofail being useless

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      Trying to start the server with an early-access Java version will fail.

      Java version:

      $ java --version                                     
      openjdk 11.0.11-ea 2021-04-20
      OpenJDK Runtime Environment (build 11.0.11-ea+4-post-Debian-1)
      OpenJDK 64-Bit Server VM (build 11.0.11-ea+4-post-Debian-1, mixed mode, sharing)
      

      -Djvmcheck=nofail has been added to nuxeo.conf, proof:

      $ ./bin/nuxeoctl showconf | grep nofail
      launcher.java.opts=--illegal-access=permit -XX:InitialRAMPercentage=3 -XX:MaxRAMPercentage=25 -Djvmcheck=nofail -Dfile.encoding=UTF-8 -Dmail.mime.decodeparameters=true -Dnet.sf.ehcache.skipUpdateCheck=true -Djava.util.Arrays.useLegacyMergeSort=true -Dsun.net.http.retryPost=false -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djava.util.logging.config.file=conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
      

      Then, starting the server still fail:

      $ ./bin/nuxeoctl start
      Nuxeo home:          /home/tiger-222/projects/nuxeo-server-tomcat-11.5-SNAPSHOT
      Nuxeo configuration: /home/tiger-222/projects/nuxeo-server-tomcat-11.5-SNAPSHOT/bin/nuxeo.conf
      Include template: /home/tiger-222/projects/nuxeo-server-tomcat-11.5-SNAPSHOT/templates/common-base
      Include template: /home/tiger-222/projects/nuxeo-server-tomcat-11.5-SNAPSHOT/templates/common
      Include template: /home/tiger-222/projects/nuxeo-server-tomcat-11.5-SNAPSHOT/templates/default
      Include template: /home/tiger-222/projects/nuxeo-server-tomcat-11.5-SNAPSHOT/templates/drive
      Nuxeo Dev mode is enabled
      Cannot execute command. Cannot check java version
      java.lang.IllegalArgumentException: Cannot check java version
      	at org.nuxeo.launcher.config.ConfigurationChecker.checkJavaVersion(ConfigurationChecker.java:214) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.config.ConfigurationChecker.checkJavaVersion(ConfigurationChecker.java:152) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.config.ConfigurationChecker.checkJavaVersionIsCompliant(ConfigurationChecker.java:130) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.config.ConfigurationChecker.checkJavaVersion(ConfigurationChecker.java:466) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.NuxeoLauncher.configure(NuxeoLauncher.java:1995) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.NuxeoLauncher.doStart(NuxeoLauncher.java:1663) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1617) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1002) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:947) [nuxeo-launcher-22341.jar:?]
      Caused by: java.text.ParseException: Cannot parse 11.0.11-ea as a JDK 9+ version
      	at org.nuxeo.launcher.config.JVMVersion.parseJdk9(JVMVersion.java:88) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.config.JVMVersion.parse(JVMVersion.java:66) ~[nuxeo-launcher-22341.jar:?]
      	at org.nuxeo.launcher.config.ConfigurationChecker.checkJavaVersion(ConfigurationChecker.java:196) ~[nuxeo-launcher-22341.jar:?]
      	... 8 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.