Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-11153

Support Java 11 for control.sh & ignitevisorcmd.sh: remove odd --add-modules for java.xml.bind

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7.5
    • None

    Description

      JAXB module was removed from Java 11.

      Please adopt ignite control.sh in the same way as it is done for ignite.sh/bat

      elif [ $version -gt 8 ] && [ $version -lt 11 ]; then
          JVM_OPTS="\
              -XX:+AggressiveOpts \
              --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
              --add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
              --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
              --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
              --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
              --illegal-access=permit \
              --add-modules=java.transaction \
              --add-modules=java.xml.bind \
              ${JVM_OPTS}"
      
      elif [ $version -eq 11 ] ; then
          JVM_OPTS="\
              --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
              --add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
              --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
              --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
              --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
              --illegal-access=permit \
              ${JVM_OPTS}"
      
      

      But control.sh for master still declares --add-modules java.xml.bind \

      JVM_OPTS="--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
                --add-exports java.base/sun.nio.ch=ALL-UNNAMED \
                --add-exports java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
                --add-exports jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
                --add-modules java.xml.bind \
            ${JVM_OPTS}"
      

      Attachments

        Issue Links

          Activity

            People

              vveider Petr Ivanov
              dpavlov Dmitry Pavlov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m