2011-03-28 29 views
1

我想在我的GAE帳戶上傳時髦的應用程序,但我不明白爲什麼這是行不通的。它似乎無法連接到GAE鏈接。我在Mac OSX上使用IntelliJ與GAE插件。如果我從終端ping到appengine.google.com,它會迴應。的IntelliJ - 上傳谷歌應用程序錯誤

 
/Library/Java/Home/bin/java -Dfile.encoding=MacRoman -classpath /Users/themihai/appengine-java-sdk-1.4.2/lib/appengine-tools-api.jar com.google.appengine.tools.admin.AppCfg [email protected] update /Users/themihai/Downloads/restapi/classes/artifacts/restapi_war_exploded 
******************************************************** 
Mar 28, 2011 9:46:31 PM com.google.appengine.tools.info.RemoteVersionFactory getVersion 
Warning: Future versions of the Dev App Server will require Java 1.6 or later. Please upgrade your JRE. 
INFO: Unable to access https://appengine.google.com/api/updatecheck?runtime=java&release=1.4.2&timestamp=1297891083&api_versions=['1.0'] 
******************************************************** 
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:189) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1642) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1605) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1588) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1142) 
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:450) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1081) 
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) 
    at java.net.URL.openStream(URL.java:1007) 
    at com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:76) 
    at com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:99) 
    at com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:174) 
    at com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:142) 
    at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:105) 
    at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:63) 
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:59) 
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at sun.security.validator.PKIXValidator.(PKIXValidator.java:56) 
    at sun.security.validator.Validator.getInstance(Validator.java:146) 
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:105) 
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:167) 
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320) 
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1020) 
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:120) 
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:574) 
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:510) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:888) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1131) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1158) 
    ... 13 more 
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183) 
    at java.security.cert.PKIXParameters.(PKIXParameters.java:103) 
    at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:87) 
    at sun.security.validator.PKIXValidator.(PKIXValidator.java:54) 
    ... 24 more 
Reading application configuration data... 
Beginning server interaction for mm-image... 
0% Creating staging directory 
Mar 28, 2011 9:46:31 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml 
INFO: Successfully processed /Users/themihai/Downloads/restapi/classes/artifacts/restapi_war_exploded/WEB-INF/appengine-web.xml 
Mar 28, 2011 9:46:31 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml 
INFO: Successfully processed /Users/themihai/Downloads/restapi/classes/artifacts/restapi_war_exploded/WEB-INF/web.xml 
5% Scanning for jsp files. 
8% Compiling jsp files. 
Mar 28, 2011 9:46:34 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml 
INFO: Successfully processed /var/folders/bG/bGU9UQqbHlynbNOrNizcs++++TI/-Tmp-/appcfg5900327360969772030.tmp/WEB-INF/web.xml 
20% Scanning files on local disk. 
25% Initiating update. 

Error Details: 
Mar 28, 2011 9:46:34 PM org.apache.jasper.JspC processFile 
INFO: Built File: /index.jsp 


javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
Unable to update app: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
Please see the logs [/var/folders/bG/bGU9UQqbHlynbNOrNizcs++++TI/-Tmp-/appcfg7459353099144995200.log] for further information. 

的appcfg7459353099144995200.log文件說,幾乎低於同一件事: 貓/var/folders/bG/bGU9UQqbHlynbNOrNizcs++++TI/-Tmp-/appcfg7459353099144995200.log

 

Unable to update: 
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:189) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1642) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1605) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1588) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1142) 
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:450) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) 
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1004) 
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) 
    at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:341) 
    at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:137) 
    at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:86) 
    at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:582) 
    at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:400) 
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:112) 
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:56) 
    at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:553) 
    at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:141) 
    at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:63) 
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:59) 
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at sun.security.validator.PKIXValidator.(PKIXValidator.java:56) 
    at sun.security.validator.Validator.getInstance(Validator.java:146) 
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:105) 
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:167) 
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320) 
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1020) 
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:120) 
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:574) 
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:510) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:888) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1131) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1158) 
    ... 16 more 
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183) 
    at java.security.cert.PKIXParameters.(PKIXParameters.java:103) 
    at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:87) 
    at sun.security.validator.PKIXValidator.(PKIXValidator.java:54) 
    ... 27 more 
com.google.appengine.tools.admin.AdminException: Unable to update app: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:62) 
    at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:553) 
    at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:141) 
    at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:63) 
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:59) 
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:189) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1642) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1605) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1588) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1142) 
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:450) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) 
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1004) 
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) 
    at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:341) 
    at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:137) 
    at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:86) 
    at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:582) 
    at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:400) 
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:112) 
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:56) 
    ... 4 more 
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at sun.security.validator.PKIXValidator.(PKIXValidator.java:56) 
    at sun.security.validator.Validator.getInstance(Validator.java:146) 
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:105) 
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:167) 
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320) 
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1020) 
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:120) 
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:574) 
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:510) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:888) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1131) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1158) 
    ... 16 more 
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 
    at java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:183) 
    at java.security.cert.PKIXParameters.(PKIXParameters.java:103) 
    at java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:87) 
    at sun.security.validator.PKIXValidator.(PKIXValidator.java:54) 
    ... 27 more 

+0

你檢查過/var/folders/bG/bGU9UQqbHlynbNOrNizcs++++TI/-Tmp-/appcfg7459353099144995200.log文件?它說什麼? – systempuntoout 2011-03-28 20:49:20

+0

@systempuntoout差不多。我用日誌文件的內容編輯了問題。 – mihai 2011-03-28 21:03:57

+0

看到這個答案http://stackoverflow.com/questions/4909504/com-google-gdata-util-authenticationexception-error-connecting-with-login-uri/4910013#4910013 – systempuntoout 2011-03-28 21:05:58

回答

0

將Java升級到1.6,或(在OSX上)將Java 1.6設置爲默認值。

+0

@Peter Knego我無法找到任何Java 1.6的Mac OS X 10.5(豹)。它似乎僅默認用於Mac OS X 10.6。沒有其他「解決方案」修復嗎? – mihai 2011-03-28 21:35:38

+0

嘗試用於OSX的OpenJDK。我前段時間嘗試用appengine,它確實有效。 http://code.google.com/p/openjdk-osx-build/ – 2011-03-28 21:42:35

+0

此外,即使在10.5下也有Java6。我想起來了。 http://support.apple.com/kb/TA25133?viewlocale=en_US – 2011-03-28 21:44:13

1

的莫名其妙想出解決方案。我不知道爲什麼它的工作原理反正...的證書從1.5版本縫不活動的鏈接,所以我決定不惜一切刪除它,然後從1.6目錄複製證書到1.5如下:

 

mihai:security mihai$ sudo rm -rf /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/security/cacerts 
mihai:security themihai$ sudo cp /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/cacerts /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/security/ 

我希望它有幫助!

+0

很高興它幫助,堅韌+1。您可以將此問題標記爲已接受。 – systempuntoout 2011-03-29 06:46:03

相關問題