Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7257

Windows standalone.bat: Missing String delimiters -> JAVA_OPTS interpreted as commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 29.0.0.Final
    • 28.0.1.Final
    • Scripts
    • None

      When the default modular JVM parameters are built, the file common.bat is called like the following:

      call "!DIRNAME!common.bat" :setDefaultModularJvmOptions !JAVA_OPTS!
      

      The parameter

      !JAVA_OPTS!

      is missing surrounding hyphens

      "!JAVA_OPTS!"

      .

      When passing a JVM parameter containing pipes like "-Dhttp.nonProxyHosts=localhost^|127.0.0.1" the pipe will be executed as batch command and is not treated as an argument. This results in a Wildfly start without granted access to private members for a couple of libraries and will show errors like this:

      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Class java.util.EnumMap.keyType accessible: module java.base does not "opens java.util" to unnamed module @76e163a8

        1. WFCORE-7257.txt
          14 kB
          Yeray Borges Santana

              lvydra Lukas Vydra
              a.guelle Angelo Pluskwa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: