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

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

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

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이 필수 버전 이하의 호스트에 설치되었습니다.

Resolution

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

Additional Information

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 서버가 한 번 이상 업그레이드되었을 수 있습니다.
 

Products

AppSync
Article Properties
Article Number: 000187282
Article Type: Solution
Last Modified: 10 Sep 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.