good20087758521 / apjp

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

APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER: EXCEPTION #191

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
follow this struction from 
https://code.google.com/p/apjp/wiki/InstallGuideOnPHP,everything look like so 
fine,but open the website pass apjp proxy(127.0.0.1:10000),terminal output this 
ERROR info.

Who can help me? THKs.

What is the expected output? What do you see instead?
$ 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_WORKERS
APJP_LOCAL_HTTPS_PROXY_SERVER: HTTPS_PROXY_SERVER/START_HTTPS_SERVERS
APJP: START_PROXY_SERVER: OK
APJP: TEST_HTTP_REQUESTS
APJP: TEST_HTTP_REQUESTS: OK
APJP: TEST_HTTPS_REQUESTS
APJP: TEST_HTTPS_REQUESTS: OK
...
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/GET_HTTP_PROXY_SERVER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/GET_HTTPS_PROXY_SERVER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START_PROXY_SERVER_WORKER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER_WORKER/START
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER_WORKER/START_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/GET_HTTP_SERVER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER_WORKER/START
APJP_LOCAL_HTTP_PROXY_SERVER: 
HTTP_PROXY_SERVER_WORKER/START_HTTP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START_HTTP_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/START
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/START_HTTP_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/PROCESS: EXCEPTION
java.lang.NullPointerException
    at APJP.HTTP.HTTPServerWorker.process(HTTPServerWorker.java:261)
    at APJP.HTTP.HTTPServerWorker.run(HTTPServerWorker.java:128)
    at java.lang.Thread.run(Thread.java:701)
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER: EXCEPTION
java.lang.NullPointerException
    at APJP.HTTP.HTTPServerWorker.process(HTTPServerWorker.java:356)
    at APJP.HTTP.HTTPServerWorker.run(HTTPServerWorker.java:128)
    at java.lang.Thread.run(Thread.java:701)
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/STOP_HTTP_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/STOP
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/STOP_HTTP_SERVER_WORKER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/STOP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/STOP_HTTP_PROXY_SERVER_WORKER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER_WORKER/STOP
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER_WORKER/STOP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER_WORKER/STOP
APJP_LOCAL_HTTP_PROXY_SERVER: 
HTTP_PROXY_SERVER_WORKER/STOP_HTTP_PROXY_SERVER_WORKER

What version of the product are you using? On what operating system?
No LSB modules are available.

Linux: Ubuntu 12.04.3 LTS
$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
APJP:
 APJP_LOCAL_JAVA-1.0.0.zip
 APJP_REMOTE_PHP-1.0.0.zip
Chrome Browser

Please provide any additional information below.

Original issue reported on code.google.com by bf.wolf@gmail.com on 3 Dec 2013 at 6:38

GoogleCodeExporter commented 9 years ago
BYI: the remote server use BAE. 

Original comment by bf.wolf@gmail.com on 3 Dec 2013 at 6:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
above issue is solved.

in file APJP_LOCAL_JAVA-1.0.0/APJP_LOCAL.properties:
-APJP_REMOTE_HTTPS_SERVER_1_REQUEST_URL=http://3.xxx.duapp.com/index.php?HTTP
+APJP_REMOTE_HTTPS_SERVER_1_REQUEST_URL=http://3.xxx.duapp.com/index.php
-APJP_REMOTE_HTTP_SERVER_1_REQUEST_URL=http://3.xxx.duapp.com/index.php?HTTPS
+APJP_REMOTE_HTTP_SERVER_1_REQUEST_URL=http://3.xxx.duapp.com/index.php

++++++++++++++++++++++++++++++++++++++++++++++++++++++++
But A new issue:

APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/GET_HTTP_SERVER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/START_HTTP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER_WORKER/START
APJP_LOCAL_HTTP_PROXY_SERVER: 
HTTP_PROXY_SERVER_WORKER/START_HTTP_PROXY_SERVER_WORKER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/STOP_PROXY_SERVER_WORKER
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER_WORKER/STOP
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER_WORKER/STOP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/START_HTTP_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/START
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/START_HTTP_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER/STOP_HTTP_PROXY_SERVER_WORKER
APJP_LOCAL_HTTP_PROXY_SERVER: HTTP_PROXY_SERVER_WORKER/STOP
APJP_LOCAL_HTTP_PROXY_SERVER: 
HTTP_PROXY_SERVER_WORKER/STOP_HTTP_PROXY_SERVER_WORKER
APJP: HTTP_REQUEST/GET_HTTP_RESPONSE_MESSAGE: REQUEST: 
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/PROCESS: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/GET_HTTP_RESPONSE_MESSAGE
    at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:623)
    at APJP.HTTP.HTTPServerWorker.process(HTTPServerWorker.java:265)
    at APJP.HTTP.HTTPServerWorker.run(HTTPServerWorker.java:128)
    at java.lang.Thread.run(Thread.java:701)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    at APJP.HTTP11.HTTPRequest.getHTTPResponseMessage(HTTPRequest.java:148)
    ... 3 more
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER: EXCEPTION
APJP.HTTP.HTTPServerException: HTTP_SERVER_WORKER/PROCESS: REQUEST/METHOD != 
"GET", REQUEST/METHOD == ""
    at APJP.HTTP.HTTPServerWorker.process(HTTPServerWorker.java:322)
    at APJP.HTTP.HTTPServerWorker.run(HTTPServerWorker.java:128)
    at java.lang.Thread.run(Thread.java:701)
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER/STOP_HTTP_SERVER_WORKER
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/STOP
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/STOP_HTTP_SERVER_WORKER

THKs!

Original comment by bf.wolf@gmail.com on 3 Dec 2013 at 7:37