Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1332

Failed to register an app for test services when using JDK 11

    Details

    • Type: Bug
    • Status: In Review
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: CLI Release 7.0.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      JDK 11
      appc cli 7.0.6

    • Severity:
      Major
    • Story Points:
      3

      Description

      Description

      When using JDK 11 test services fail to get enabled with the following error, this is because the jar uses the java.activation module which was deprecated in JDK 9 and is now removed. CLI-1311 added the compatibility for JDK 9 but as they are removed this is no longer valid.

      Personally I think we should detect if the user is using JDK 11 and then error/warn that test cannot be enabled using that JDK version as test is now only supported for orgs with existing subscriptions

      2018-10-04T10:36:23.841Z | TRACE  | Test enablement command :  [ 'java',
        '--add-modules=java.activation',
        '-jar',
        '"/Users/eharris/Library/Application Support/Titanium/plugins/com.appcelerator.test/versions/MakeAppTouchTestable/MakeAppTouchTestable.jar"',
        '-project',
        '"/Users/eharris/Documents/Appcelerator_Studio_Workspace/terstjdk11"',
        '-url',
        'https://360-preprod-test-1.cloud.appctest.com/concerto',
        '-username',
        'eharris@axway.com/100001711',
        '-password',
        '[HIDDEN]',
        '-appobjectname',
        '"terstjdk11_04ea390a-dfd1-4628-9bbb-07658992c8d5"',
        '-overwriteapp' ]
      2018-10-04T10:36:23.940Z | ERROR  | Failure to enable Test service: Error: Command failed: java --add-modules=java.activation -jar "/Users/eharris/Library/Application Support/Titanium/plugins/com.appcelerator.test/versions/MakeAppTouchTestable/MakeAppTouchTestable.jar" -project "/Users/eharris/Documents/Appcelerator_Studio_Workspace/terstjdk11" -url https://360-preprod-test-1.cloud.appctest.com/concerto -username eharris@axway.com/100001711 -password ******** -appobjectname "terstjdk11_04ea390a-dfd1-4628-9bbb-07658992c8d5" -overwriteapp
      Unrecognized option: --add-modules=java.activation
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      

      Steps to reproduce

      1. Install JDK 11
      2. Make sure it is your active version (check using appc ti info -t jdk) you can enable it via JAVA_HOME or appc ti config java.home <path>
      3. Create an app in an enterprise org with test enabled (e.g. qe enterprise orgs) and enable test

      Actual

      Error occurs

      Expected

      Unsure, I don't believe we can (or even should) make it work for JDK 11 so I believe we should error/warn that JDK 11 and test are not compatible

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eharris Ewan Harris
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Source Code