liang860908 / apjp

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

proxy server start failure #196

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
APJP_LOCAL_JAVA-1.0.1 under arch linux 3.17.6-1 x86_64

启动apjp 时,proxy server 不启动,但https request 
测试通过.相同设置在win7 
中运行正常.请问还需提供哪些信息?谢谢!

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: EXCEPTION
java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:330)
        at APJP.ProxyServer.startProxyServer(ProxyServer.java:200)
        at APJP.ProxyServer.start(ProxyServer.java:61)
        at APJP.Main.main(Main.java:240)
APJP_LOCAL_PROXY_SERVER: PROXY_SERVER/START: EXCEPTION
APJP.ProxyServerException: PROXY_SERVER/START_PROXY_SERVER
        at APJP.ProxyServer.startProxyServer(ProxyServer.java:209)
        at APJP.ProxyServer.start(ProxyServer.java:61)
        at APJP.Main.main(Main.java:240)
Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:330)
        at APJP.ProxyServer.startProxyServer(ProxyServer.java:200)
        ... 2 more
APJP: START_PROXY_SERVER: EXCEPTION
APJP.ProxyServerException: PROXY_SERVER/START
        at APJP.ProxyServer.start(ProxyServer.java:70)
        at APJP.Main.main(Main.java:240)
Caused by: APJP.ProxyServerException: PROXY_SERVER/START_PROXY_SERVER
        at APJP.ProxyServer.startProxyServer(ProxyServer.java:209)
        at APJP.ProxyServer.start(ProxyServer.java:61)
        ... 1 more
Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:330)
        at APJP.ProxyServer.startProxyServer(ProxyServer.java:200)
        ... 2 more
APJP: START_PROXY_SERVER: NOT 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
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
        at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:975)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
        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
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
        at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
        at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:975)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
        at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:119)
        ... 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_REQUEST/GET_RESPONSE_MESSAGE: RESPONSE: HTTP/1.1 200 OK
APJP: TEST_HTTPS_REQUESTS: OK

Original issue reported on code.google.com by abe7...@gmail.com on 20 Jan 2015 at 4:44

GoogleCodeExporter commented 9 years ago
java version "1.7.0_71"
OpenJDK Runtime Environment (IcedTea 2.5.3) (Arch Linux build 
7.u71_2.5.3-3-x86_64)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Original comment by abe7...@gmail.com on 20 Jan 2015 at 4:47

GoogleCodeExporter commented 9 years ago
solved after another extraction of the APJP zip pack. an comparison of the two 
versions of extracted .jar files showed error in the extraction process should 
account for the server start failure.

Original comment by abe7...@gmail.com on 21 Jan 2015 at 1:15