good20087758521 / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

错误原因: GAE平台未成功部署APJP_REMOTE_JAVA_APPENGINE #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
用的是APJP_REMOTE_JAVA---GAE平台
以前用过GoAgent,今天又重新上传了一次APP,也是成功的。然�
��改完APJP_LOCAL.properties文件之后运行APJP_LOCAL.bat出错,错误如�
��:

D:\tizi\APJP\APJP_LOCAL_JAVA-1.0.1>java -classpath APJP_LOCAL_JAVA-1.0.1.jar APJ
P.Main
*****************************************************************************
***                                                                       ***
***                    Welcome to the IAIK JCE Library                    ***
***                                                                       ***
*** This version of IAIK-JCE is licensed for evaluation, education,       ***
*** research, and use in open-source projects only.                       ***
*** Commercial use of this software is prohibited.                        ***
*** For details please see http://jce.iaik.tugraz.at/sales/.              ***
*** This message does not appear in the registered commercial version.    ***
***                                                                       ***
*****************************************************************************

APJP: START_PROXY_SERVER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_PROXY_SERVER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_PROXY_SERVER_WORKERS
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_HTTP_PROXY_SERVER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_PROXY_SERVER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_PROXY_SERVER_WORKERS
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_SERVER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START_HTTP_SERVER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START_HTTP_SERVER_WORKERS
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_HTTPS_PROXY_SERVER
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_PROXY_SERVER
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_PROXY_SERVER_WORKE
RS
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_SERVERS
APJP: START_PROXY_SERVER: OK
APJP: TEST_HTTP_REQUESTS
APJP: HTTP_REQUESTS/TEST: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/OPEN
        at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:123)
        at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:79)
        at APJP.Main.main(Main.java:257)
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Sou
rce)
        at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:119)
        ... 2 more
APJP: TEST_HTTP_REQUESTS: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUESTS/TEST
        at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:107)
        at APJP.Main.main(Main.java:257)
Caused by: APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/OPEN
        at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:123)
        at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:79)
        ... 1 more
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Sou
rce)
        at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:119)
        ... 2 more
APJP: TEST_HTTP_REQUESTS: NOT OK
APJP: TEST_HTTPS_REQUESTS
APJP: HTTPS_REQUESTS/TEST: EXCEPTION
APJP.HTTP11.HTTPSRequestException: HTTPS_REQUEST/OPEN
        at APJP.HTTP11.HTTPSRequest.open(HTTPSRequest.java:123)
        at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:68)
        at APJP.Main.main(Main.java:274)
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Sou
rce)
        at APJP.HTTP11.HTTPSRequest.open(HTTPSRequest.java:119)
        ... 2 more
APJP: TEST_HTTPS_REQUESTS: EXCEPTION
APJP.HTTP11.HTTPSRequestException: HTTPS_REQUESTS/TEST
        at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:96)
        at APJP.Main.main(Main.java:274)
Caused by: APJP.HTTP11.HTTPSRequestException: HTTPS_REQUEST/OPEN
        at APJP.HTTP11.HTTPSRequest.open(HTTPSRequest.java:123)
        at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:68)
        ... 1 more
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Sou
rce)
        at APJP.HTTP11.HTTPSRequest.open(HTTPSRequest.java:119)
        ... 2 more
APJP: TEST_HTTPS_REQUESTS: NOT OK

另外  附上APJP_LOCAL.properties文件

Original issue reported on code.google.com by wufei...@gmail.com on 6 Nov 2012 at 5:32

Attachments:

GoogleCodeExporter commented 9 years ago
1. Thanks, 将APJP_LOCAL.properties附上。:P

2. 
不过还是建议,将APJP_KEY去掉,或换个不是自己使用的,随机
的一个。

3. 问题主要有两个:
  a. 如标题。你并没有成功将APJP_REMOTE_JAVA_APPENGINE部署到GAE的。
     验证方法: 直接访问你的App地址( http://forincr***.appspot.com/ 从你的APJP_LOCAL.properties中所得)得,"Error: NOT_FOUND"。正常的见附图appspot.jpg。
  b. "https://74.125.128.160/HTTP" 你所用的Google IP,Ping所得
     "74.125.128.160 的 Ping 统计信息:
       数据包: 已发送 = 100,已接收 = 99,丢失 = 1 (1% 丢失),往返行程的估计时间(以毫秒为单位):
       最短 = 39ms,最长 = 109ms,平均 = 46ms"
     从Ping统计信息可看,你使用的IP基本上没受到任何的干扰,非常好的。但是无法在浏览器中直接访问 https://74.125.128.160/ (我这里是这样的)。Ping只能说明HTTP没什么问题,但HTTPS不行。所以若是 "http://74.125.128.160/HTTP(S)"填入APJP_LOCAL.properties是没问题的,但不能像你现在这样的。若想用HTTPS,换个在浏览器中访问出现证书错误的IP (如: https://74.125.128.18/ ),不过我还是建议使用个受干扰较少的支持HTTPS的Google Domain,参考此文 ( http://code.google.com/p/apjp/wiki/InstallGuideOnGAE#%E7%BC%96%E8%BE%91APJP_LOCAL_JAVA/APJP_LOCAL.properties )图片下的几段文字。

Original comment by goknmuse on 6 Nov 2012 at 9:24

Attachments: