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

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

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.5
    • Component/s: None
    • Labels:

      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-2.png
          23 kB
          Dmitry Pavlov
        3. start-java11.png
          89 kB
          Dmitry Pavlov

          Issue Links

            Activity

              People

              • Assignee:
                dpavlov Dmitry Pavlov
                Reporter:
                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