AppSync: Linux에서 appsync-cli.sh를 시작할 수 없음

Résumé: Java 버전 또는 Java 클래스에 문제가 있습니다.

Cet article concerne Cet article ne concerne pas Cet article n’est associé à aucun produit spécifique. Toutes les versions du produit ne sont pas identifiées dans cet article.

Symptômes

AppSync CLI를 실행하여 다음과 같이 로그인하는 경우:
 
[root@hostname appsync]# ./appsync-cli.sh -login server="FQDN-of-AppSync-Server" port=8445 user=admin password="N@tRealPass1"

다음 오류가 반환됩니다.
 
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

Cause

Java 8이 필수 버전 이하의 호스트에 설치되었습니다.

Résolution

지원되는 버전의 Java가 Linux 호스트에 설치되어 있는지 확인합니다.

Informations supplémentaires

Linux에서 실행되는 AppSync CLI의 모든 사전 필수 구성 요소를 검토하려면 AppSync 사용자 가이드를 참조하십시오.

AppSync 4.2.0.0의 경우 AppSync 4.2 사용자 가이드 21페이지에 명시된 다음 사항에 따라 Java 11이 필요합니다.     
 
JRE(Java Runtime Environment) 버전 11이 설치되어 있고 경로 내에서 사용할 수 있어야 합니다.
 
또한 고객이 Linux 호스트에서 정의한 AppSync CLI 폴더에 현재 실행 중인 AppSync 서버 버전의 CLI가 포함되었는지 확인하는 것이 좋습니다. AppSync CLI가 원래 Linux 호스트에 복제되었기 때문에 AppSync 서버가 한 번 이상 업그레이드되었을 수 있습니다.
 

Produits

AppSync
Propriétés de l’article
Numéro d’article: 000187282
Type d’article: Solution
Dernière modification: 10 sept. 2025
Version:  5
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.