Error: Cannot invoke "java.lang.Comparable.compareTo(Object)" because "a[runHi]" is null

Hi,

when I try to run the SDK samples there is an error.

What causes this error and how could it be fixed?

Thanks

Uli

  • Is this a new install?  What SDK are you using?  If it's 3.2 or greater, did you install devices in addition to the sdk?

  • We're going to need you to give us a bit more to go on here. It looks like you're building the MenuTest sample, so we have that, but..

    1. What SDK are you using?
    2. What JDK are you using?
    3. How are you invoking the build? Any special arguments?
  •  

    Eclipse IDE for Java Developers (includes Incubating components)

    Version: 2021-03 (4.19.0)
    Build id: 20210312-0638

    IQ_AppSettingsEditor (4.0.1) "Connect IQ App Settings Editor" [Starting]
    IQ_IDE (4.0.1) "Connect IQ" [Active]
    IQ_PackageWizard (4.0.1) "Connect IQ Package Wizard" [Starting]
    IQ_SdkManager (4.0.1) "Connect IQ Sdk Manager" [Active]

    java.runtime.name=OpenJDK Runtime Environment

    java.runtime.version=15.0.2+7-27

    java.specification.name=Java Platform API Specification

    java.specification.vendor=Oracle Corporation

    java.specification.version=15

    java.vendor=Oracle Corporation

    java.vendor.url=https://java.oracle.com/

    java.vendor.url.bug=bugreport.java.com/.../

    java.version=15.0.2

    java.version.date=2021-01-19

    java.vm.compressedOopsMode=32-bit

    java.vm.info=mixed mode

    java.vm.name=OpenJDK 64-Bit Server VM

    java.vm.specification.name=Java Virtual Machine Specification

    java.vm.specification.vendor=Oracle Corporation

    java.vm.specification.version=15

    java.vm.vendor=Oracle Corporation


    java.vm.version=15.0.2+7-27

    I start it with righ-click on the project > run as > 1 Connect IQ app

  • IQ_IDE (4.0.1) "Connect IQ" [Active]

    I only installed Venu SQ, is this a possible functional problem for the samples? (different requirements?)

  • What target are you trying to use for the run?  It's got to be the Venu sq if that's all you have installed.

  • I try to link it in the manifest file, but still error

  • Have you restated eclipse and the sim since you added the device?

  • yes restarted but still error message. If I add the device I got also following error log. Could it be that not all the samples are applicable for Venu Sq? I checkboxed Venu IQ in the manifest.xml

    BUILD: ERROR: Invalid device ID found in the manifest: vivoactive_hr
    BUILD: ERROR: Invalid device ID found in the manifest: fenix5s
    BUILD: ERROR: Invalid device ID found in the manifest: oregon7xx
    BUILD: ERROR: Invalid device ID found in the manifest: rino7xx
    BUILD: ERROR: Invalid device ID found in the manifest: vivoactive
    BUILD: ERROR: Invalid device ID found in the manifest: edge820
    BUILD: ERROR: Invalid device ID found in the manifest: fr230
    BUILD: ERROR: Invalid device ID found in the manifest: fr630
    BUILD: ERROR: Invalid device ID found in the manifest: edge1030
    BUILD: ERROR: Invalid device ID found in the manifest: d2bravo_titanium
    BUILD: ERROR: Invalid device ID found in the manifest: fenixchronos
    BUILD: ERROR: Invalid device ID found in the manifest: fr235
    BUILD: ERROR: Invalid device ID found in the manifest: fr920xt
    BUILD: ERROR: Invalid device ID found in the manifest: fr935
    BUILD: ERROR: Invalid device ID found in the manifest: edge_1000
    BUILD: ERROR: Invalid device ID found in the manifest: descentmk1
    BUILD: ERROR: Invalid device ID found in the manifest: fenix3
    BUILD: ERROR: Invalid device ID found in the manifest: fenix5
    BUILD: ERROR: Invalid device ID found in the manifest: d2bravo
    BUILD: ERROR: Invalid device ID found in the manifest: d2charlie
    BUILD: ERROR: Invalid device ID found in the manifest: fr735xt
    BUILD: ERROR: Invalid device ID found in the manifest: edge_520
    BUILD: ERROR: Invalid device ID found in the manifest: epix
    BUILD: ERROR: Invalid device ID found in the manifest: fenix5x
    BUILD: ERROR: Invalid device ID found in the manifest: vivoactive3
    BUILD: ERROR: Invalid device ID found in the manifest: approachs60
    BUILD: ERROR: Invalid device ID found in the manifest: fenix3_hr
    BUILD: ERROR: Invalid device ID found.
    BUILD: com.garmin.connectiq.common.manifest.ManifestException: [102] Invalid device ID found.
    BUILD:     at com.garmin.monkeybrains.Monkeybrains.runPRGCompiler(Monkeybrains.java:1380)
    BUILD:     at com.garmin.monkeybrains.Monkeybrains.compileApplication(Monkeybrains.java:1264)
    BUILD:     at com.garmin.monkeybrains.Monkeybrains.run(Monkeybrains.java:2672)
    BUILD:     at com.garmin.monkeybrains.Monkeybrains.simpleMain(Monkeybrains.java:322)
    BUILD:     at com.garmin.monkeybrains.Monkeybrains.main(Monkeybrains.java:351)
    BUILD: usage: monkeyc [-a <arg>] [-b <arg>] [-c <arg>] [-d <arg>] [-e]
    BUILD:        [--Eno-invalid-symbol] [-f <arg>] [-g] [-h] [-i <arg>] [-l <arg>] [-m
    BUILD:        <arg>] [-o <arg>] [-p <arg>] [-r] [-s <arg>] [-t] [-u <arg>] [-v] [-w]
    BUILD:        [-x <arg>] [-y <arg>] [-z <arg>]
    BUILD: -a,--apidb <arg>       API import file
    BUILD: -b,--apimir <arg>      API MIR file
    BUILD: -c,--api-level <arg>   API Level to target
    BUILD: -d,--device <arg>      Target device
    BUILD: -e,--package-app       Create an application package.
    BUILD:    --Eno-invalid-symbolDo not error when a symbol is found to be invalid
    BUILD: -f,--jungles <arg>     Jungle files
    BUILD: -g,--debug             Print debug output
    BUILD: -h,--help              Prints help information
    BUILD: -i,--import-dbg <arg>  Import api.debug.xml
    BUILD: -l,--typecheck <arg>   Type check [0=off, 1=gradual, 2=informative, 3=strict]
    BUILD: -m,--manifest <arg>    Manifest file (deprecated)
    BUILD: -o,--output <arg>      Output file to create
    BUILD: -p,--project-info <arg>projectInfo.xml file to use when compiling
    BUILD: -r,--release           Strip debug information
    BUILD: -s,--sdk-version <arg> SDK version to target (deprecated, use -c
    BUILD: -t,--unit-test         Enables compilation of unit tests
    BUILD: -u,--devices <arg>     devices.xml file to use when compiling (deprecated)
    BUILD: -v,--version           Prints the compiler version
    BUILD: -w,--warn              Show compiler warnings
    BUILD: -x,--excludes <arg>    Add annotations to the exclude list (deprecated)
    BUILD: -y,--private-key <arg> Private key to sign builds with
    BUILD: -z,--rez <arg>         Resource files (deprecated)
    ERROR: Invalid manifest file
    BUILD: Complete

  • Ok, that's because you have those devices in manifest.xml, but you haven't downloaded those devices.  You can change the target devices for all the apps, but it might be simpler if you just download all the devices and not just the venu sq

  • did now install all devices. Some even work with the examples but some not.

    Error message for "progress bar " sample:

    Cannot invoke "java.lang.Comparable.compareTo(Object)" because "pivot" is null