AppSync: Unable to launch appsync-cli.sh on Linux
Yhteenveto: Issue is with Java version or Java class.
Tämä artikkeli koskee tuotetta
Tämä artikkeli ei koske tuotetta
Tämä artikkeli ei liity tiettyyn tuotteeseen.
Tässä artikkelissa ei yksilöidä kaikkia tuoteversioita.
Oireet
When running the AppSync CLI to log in like so:
The following error is returned:
[root@hostname appsync]# ./appsync-cli.sh -login server="FQDN-of-AppSync-Server" port=8445 user=admin password="N@tRealPass1"
The following error is returned:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more
Syy
Java 8 was found to be installed on the host, which is below the required version.
Tarkkuus
Ensure that the supported version of Java is installed on the Linux Host.
Lisätietoja
See the AppSync User Guide to review all pre-requisite items for the AppSync CLI when run on Linux.
For AppSync 4.2.0.0, Java 11 is required per page 21 of the AppSync 4.2 User Guide which states:
For AppSync 4.2.0.0, Java 11 is required per page 21 of the AppSync 4.2 User Guide which states:
Java Runtime Environment (JRE) version 11 - must be installed and available in path.
It is also prudent to ensure the customer defined AppSync CLI folder on the Linux host contains the CLI from the current running AppSync Server version. It is possible the AppSync Server was upgraded one or more times since the AppSync CLI was originally copied over to the Linux host.
Tuotteet
AppSyncArtikkelin ominaisuudet
Artikkelin numero: 000187282
Artikkelin tyyppi: Solution
Viimeksi muutettu: 10 toukok. 2026
Versio: 6
Etsi vastauksia kysymyksiisi muilta Dell-käyttäjiltä
Tukipalvelut
Tarkista, kuuluuko laitteesi tukipalveluiden piiriin.