liang860908 / apjp

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

未部署成功或APJP_KEY不一致导致Heroku平台HTTP 500 error #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

E:\g1\heroku\APJP_LOCAL_JAVA-1.0.0>java -classpath APJP_LOCAL_JAVA-1.0.0.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_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.io.IOException: Server returned HTTP response code: 500 for URL:
 http://quiet-earth-5271.herokuapp.com/HTTP
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:426)
        ... 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.io.IOException: Server returned HTTP response code: 500 for URL:
 http://quiet-earth-5271.herokuapp.com/HTTP
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:426)
        ... 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.io.IOException: Server returned HTTP response code: 500 for URL:
 https://quiet-earth-5271.herokuapp.com/HTTPS
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
        at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:426
)
        ... 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.io.IOException: Server returned HTTP response code: 500 for URL:
 https://quiet-earth-5271.herokuapp.com/HTTPS
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
own Source)
        at APJP.HTTP11.HTTPSRequest.getHTTPResponseMessage(HTTPSRequest.java:426
)
        ... 2 more
APJP: TEST_HTTPS_REQUESTS: NOT OK

Original issue reported on code.google.com by SRW...@gmail.com on 8 Jul 2012 at 3:18

GoogleCodeExporter commented 9 years ago
自己解決

Original comment by SRW...@gmail.com on 8 Jul 2012 at 3:28

GoogleCodeExporter commented 9 years ago
请问你是如何解决这个问题的?

Original comment by jamiehua...@gmail.com on 28 Aug 2012 at 2:06

GoogleCodeExporter commented 9 years ago
1. 错误原因: "Caused by: java.io.IOException: Server returned HTTP response 
code: 500 for URL:
 http://quiet-earth-5271.herokuapp.com/HTTP"

他并没有成功将APJP部署于Heroku的。

2. http://code.google.com/p/apjp/wiki/InstallGuideOnHeroku#%E4%B8%8A%E4%BC%A0App

执行完"heroku open" 或直接在浏览器中打开 
http://***.herokuappp.com/ , 
在浏览器中可以看到截图所示,说明上传成功的。

Original comment by goknmuse on 28 Aug 2012 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by goknmuse on 30 Oct 2012 at 12:49