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

Add JVM options analysis to Ignition.start() or handle and comment exceptions

    XMLWordPrintableJSON

Details

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

    Description

      In Ignite examples or using Ignite Embedded mode (using direct Ignition.start() call from a user IDE), may fail with exceptions for JDKs newer than 8.

      It may confuse the user. Instead of just logging an exception it is better to output message with advice on how to fix it. E.g.

      Please make sure --add-exports=java.base/sun.nio.ch=ALL-UNNAMED is enabled. 
      See https://apacheignite.readme.io/docs/getting-started#section-running-ignite-with-java-9-10-11 for more info
      

      Modern IDEs like IntelliJ will display the link as a clickable hyperlink and Ignite in embedded mode will show how to set up Application configuration

      Attachments

        1. image.png
          91 kB
          Denis A. Magda
        2. start-java11.png
          89 kB
          Dmitry Pavlov
        3. start-java11-2.png
          23 kB
          Dmitry Pavlov

        Issue Links

          Activity

            People

              dpavlov Dmitry Pavlov
              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