Open GoogleCodeExporter opened 9 years ago
信息不足,只能猜测其可能原因。
1. 可能是APJP_REMOTE没有成功部署。
验证方法:
APJP_REMOTE_JAVA*,无论是什么平台,浏览器访问App,都会如下图
所示
http://clip2net.com/clip/m96404/1346123922-clip-4kb.png
APJP_REMOTE_PHP*,无路是什么平台,浏览器访问App,显示的是一�
��空白,不会出现任何多余的东西。
APJP_REMOTE_PYTHON* 和 APJP_REMOTE_RUBY* (我忘记了的 :S
),浏览器访问App,不会出现错误一类的。
请提供你的App地址,我看下。
2. 可能原因APJP.properties编辑有误。
请删掉APJP.properties中的APJP_KEY,将其上传我看下。
拜托,你连使用的是哪个APJP_REMOTE,哪个平台都不说!唉。
Original comment by goknmuse
on 28 Aug 2012 at 3:33
[deleted comment]
[deleted comment]
[deleted comment]
APJP_REMOTE_JAVA。。。GAE。。。
Original comment by jamiehua...@gmail.com
on 28 Aug 2012 at 4:09
Attachments:
我找到问题的原因了。
问题原因: "Caused by: java.net.ConnectException: Connection timed out:
connect"
这个是APJP_REMOTE_JAVA_APPENGINE
比较有可能遇到的。其他的平台也会遇到的。
line 34(174):
APJP_REMOTE_HTTP_SERVER_1_REQUEST_URL=https://203.208.39.22/HTTP(S)
http://clip2net.com/clip/m96404/1346129722-clip-14kb.png
203.208.39.22 不可用。执行 "nslookup g.cn 8.8.8.8" 获取可用的IP。
Original comment by goknmuse
on 28 Aug 2012 at 4:57
换成了203.208.46.176
结果变成了这个样子:
F:\——翻墙——\APJP\APJP_LOCAL_JAVA-1.0.0>java -classpath
APJP_LOCAL_JAVA-1.0.0
.jar APJP.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_REQUEST/GET_HTTP_RESPONSE_MESSAGE: REQUEST: HEAD / HTTP/1.0
APJP: HTTP_REQUESTS/TEST: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/GET_HTTP_RESPONSE_MESSAGE
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:623)
at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:83)
at APJP.Main.main(Main.java:257)
Caused by: java.security.InvalidKeyException: Illegal key size or default parame
ters
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1011)
at javax.crypto.Cipher.implInit(Cipher.java:786)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1213)
at javax.crypto.Cipher.init(Cipher.java:1153)
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:394)
... 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/GET_HTTP_RESPONSE_MESS
AGE
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:623)
at APJP.HTTP11.HTTPRequests.test(HTTPRequests.java:83)
... 1 more
Caused by: java.security.InvalidKeyException: Illegal key size or default parame
ters
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1011)
at javax.crypto.Cipher.implInit(Cipher.java:786)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1213)
at javax.crypto.Cipher.init(Cipher.java:1153)
at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:394)
... 2 more
APJP: TEST_HTTP_REQUESTS: NOT OK
APJP: TEST_HTTPS_REQUESTS
APJP: HTTPS_REQUEST/GET_RESPONSE_MESSAGE: REQUEST: HEAD / HTTP/1.0
APJP: HTTPS_REQUESTS/TEST: EXCEPTION
APJP.HTTP11.HTTPSRequestException: HTTPS_REQUEST/GET_HTTP_RESPONSE_MESSAGE
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:623
)
at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:72)
at APJP.Main.main(Main.java:274)
Caused by: java.security.InvalidKeyException: Illegal key size or default parame
ters
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1011)
at javax.crypto.Cipher.implInit(Cipher.java:786)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1213)
at javax.crypto.Cipher.init(Cipher.java:1153)
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:394
)
... 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/GET_HTTP_RESPONSE_ME
SSAGE
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:623
)
at APJP.HTTP11.HTTPSRequests.test(HTTPSRequests.java:72)
... 1 more
Caused by: java.security.InvalidKeyException: Illegal key size or default parame
ters
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1011)
at javax.crypto.Cipher.implInit(Cipher.java:786)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1213)
at javax.crypto.Cipher.init(Cipher.java:1153)
at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:394
)
... 2 more
APJP: TEST_HTTPS_REQUESTS: NOT OK
Original comment by jamiehua...@gmail.com
on 28 Aug 2012 at 5:11
但是,还有一个潜在的问题。幸亏你没将APJP_KEY删掉。
http://clip2net.com/clip/m96404/1346129902-clip-7kb.png
从你的APJP.properties中可以看出,你的APJP_KEY编辑有误,多了一
个空格的。
有可能是你使用Notepad编辑所致,推荐使用Notepad++ (
http://notepad-plus-plus.org/ ).
What's more, 我用你的APJP_KEY 和
你的ja***.appspot.com,仍然会出错的。
你确实已经成功将APJP部署于GAE的,剩下的可能原因就是APJP_RE
MOTE_JAVA_APPENGINE-1.0.0\war\WEB-INF\APJP_REMOTE.properties
中APJP_KEY,也多了一个空格的。(或者你的REMOTE and LOCAL
APJP_KEY 根本就不一样,可能性较小)
或许你有疑问,既然APJP_REMOTE.properties 和 APJP.properties
中的APJP_KEY都多一个空格的话,那么两个APJP_KEY是一样的哇。�
��题出在APJP使用RC4
128bit加密协议的,密钥的长度最多只能为128bit,即16个字符的
。若多的话,就会出现如下图所示:
http://clip2net.com/clip/m96404/1346130865-clip-22kb.png
Original comment by goknmuse
on 28 Aug 2012 at 5:14
于是,解决这最后一个问题的方法只能是,重新编辑
APJP_REMOTE_JAVA_APPENGINE-1.0.0\war\WEB-INF\APJP_REMOTE.properties
中的APJP_KEY (换个新的哈),小心不要有多余的空格(
还是不要使用Notepad编辑code一类的,真的不适合
),接着就要重新部署APJP_REMOTE_JAVA_APPENGINE的了。这次应该没��
�问题了的。:P
Original comment by goknmuse
on 28 Aug 2012 at 5:20
现在没问题了,十分感谢!!
Original comment by jamiehua...@gmail.com
on 28 Aug 2012 at 5:23
No problem. :D
Original comment by goknmuse
on 28 Aug 2012 at 5:24
现在还有个问题,我导入证书无法识别APJP.pem文件
Original comment by jamiehua...@gmail.com
on 28 Aug 2012 at 5:30
已经解决,感谢!~~~~~\(≧▽≦)/~
Original comment by jamiehua...@gmail.com
on 28 Aug 2012 at 5:33
Original comment by goknmuse
on 30 Oct 2012 at 1:21
Issue 121 has been merged into this issue.
Original comment by goknmuse
on 23 Nov 2012 at 2:22
Issue 131 has been merged into this issue.
Original comment by goknmuse
on 13 Dec 2012 at 4:04
Issue 133 has been merged into this issue.
Original comment by goknmuse
on 13 Dec 2012 at 4:05
Issue 130 has been merged into this issue.
Original comment by goknmuse
on 13 Dec 2012 at 4:26
Original issue reported on code.google.com by
jamiehua...@gmail.com
on 28 Aug 2012 at 2:30