2011-09-07 2 views
1

난 그냥 아이튠즈 커넥트에 대한 새로운 Autoingestion보고 도구를 다운로드했지만 나는 다음과 같은 스택 추적을 받고 있어요 :아이튠즈 Autoingestion 오류 : trustAnchors 매개 변수가 있어야합니다 비어

javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) 
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611) 
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1574) 
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1557) 
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1150) 
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1127) 
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:423) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) 
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:850) 
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250) 
    at Autoingestion.main(Autoingestion.java:61) 
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:75) 
    at sun.security.validator.Validator.getInstance(Validator.java:178) 
    at sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:129) 
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:225) 
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) 
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:973) 
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:142) 
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:533) 
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:471) 
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:904) 
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1116) 
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1143) 
    ... 6 more 
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200) 
    at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120) 
    at java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104) 
    at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:73) 
    ... 17 more 

내가 자바 1.6을 사용하고 있습니다를 다음 명령을 실행하십시오 (민감한 값이 검열 됨) :

java Autoingestion [email protected] asdf1234 XXXXXXXX Sales Daily Summary 20110901 

아이디어가 있습니까?

답변

2

내 리눅스 머신의 자바 배포판에는 필요한 SSL 인증서가 들어있는 cacerts 파일 복사본이 없다는 것이 밝혀졌습니다. 내 맥에서 사본을 움켜 잡고 지금은 잘 작동하고 내 리눅스 서버에 설치되어 있어야합니다.

이 게시물에 대한 답변을 발견했습니다. java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty on Linux, or why is the default truststore empty

관련 문제