liang860908 / apjp

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

Mac下使用MacProxy切换代理,配置APJP后无法打开网页 #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Mac下还是safari体验最好,然每次需设全局代理,比较麻烦,��
�近试用MacProxy,切换比较方便,但配置APJP后无法打开网页,�
��成goagent便可以。 
另外,用netshade切换apjp代理也成功,就是license比较贵。

系统:Mac 10.7.4
DNS:opendns(DNSCrypt)
proxy:APJP cloudfondry/gae

1. apjp终端错误message如下:
APJP_LOCAL_HTTPS_SERVER: HTTPS_SERVER_WORKER: EXCEPTION
APJP.HTTP11.HTTPMessageException: HTTP_REQUEST_MESSAGE/READ
    at APJP.HTTP11.HTTPRequestMessage.read(HTTPRequestMessage.java:97)
    at APJP.HTTPS.HTTPSServerWorker.process(HTTPSServerWorker.java:234)
    at APJP.HTTPS.HTTPSServerWorker.run(HTTPSServerWorker.java:129)
    at java.lang.Thread.run(Thread.java:680)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection 
during handshake
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:882)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1203)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:818)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
    at java.io.InputStream.read(InputStream.java:82)
    at APJP.HTTP11.HTTPRequestMessage.read(HTTPRequestMessage.java:44)
    ... 3 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
    at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:333)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
    ... 8 more

2. MacProxy的log如下
1358443488 - mDNSResponder - 0xffffff800c5f7368 - DNS response parse - domain = 
thesaurus.com, IP = 0.0.0.21, resolved IP = 66.235.120.216
1358443488 - WebProcess - 0xffffff800b9871e0 - connect - IP = 0.0.0.21:80 
(proxy = 127.0.0.1:11080)
1358443488 - WebProcess - 0xffffff800b9871e0 - notify - connected
1358443488 - WebProcess - 0xffffff800b9871e0 - proxy connect - HTTP/HTTPS 
(Connect)
1358443488 - WebProcess - 0xffffff800b9871e0 - data sent - (queued) bytes = 357
1358443488 - WebProcess - 0xffffff800b9871e0 - data received - HTTP/HTTPS 
(Connect) - proxy connected
1358443488 - WebProcess - 0xffffff800b9871e0 - data sent - bytes = 357
1358443488 - WebProcess - 0xffffff800b9871e0 - data received - bytes = 7
1358443488 - WebProcess - 0xffffff800b9871e0 - data received - bytes = 0
1358443488 - WebProcess - 0xffffff800b9871e0 - notify - disconnected
1358443488 - WebProcess - 0xffffff800b9871e0 - notify - disconnected

any idea???
不胜感激!!!

Original issue reported on code.google.com by WuMin20...@gmail.com on 17 Jan 2013 at 5:49

GoogleCodeExporter commented 9 years ago
补充下,macproxy目前支持HTTP Transparent, HTTP Non-Transparent, HTTP 
Connect, SOCKS 4, 4a, 5协议。 apjp自动检测为http connect代理类型。 

Original comment by wumin20...@gmail.com on 17 Jan 2013 at 10:23

GoogleCodeExporter commented 9 years ago
1. 
最近期末考试,不想分心到计算机类的事情上来。到昨天才��
�完的,而今晚要一夜的火车回家的。因此,大约两天后才有�
��间的。
2. 
没用过Mac,不清楚能否找到问题原因。只能到时试试看的。

Original comment by goknmuse on 19 Jan 2013 at 1:21

GoogleCodeExporter commented 9 years ago
Thanks for your response anyway.

我试了下将代理类型指定为Http 
non-transparent,在一两分钟内,网页工作正常,但随即又无法��
�开,此时终端消息为:
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER/PROCESS: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/OPEN
    at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:123)
    at APJP.HTTP.HTTPServerWorker.process(HTTPServerWorker.java:261)
    at APJP.HTTP.HTTPServerWorker.run(HTTPServerWorker.java:128)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.net.NoRouteToHostException: No route to host
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
    at sun.net.www.http.HttpClient.New(HttpClient.java:300)
    at sun.net.www.http.HttpClient.New(HttpClient.java:317)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:949)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
    at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:119)
    ... 3 more
APJP_LOCAL_HTTP_SERVER: HTTP_SERVER_WORKER: EXCEPTION
APJP.HTTP11.HTTPRequestException: HTTP_REQUEST/OPEN
    at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:123)
    at APJP.HTTP.HTTPServerWorker.process(HTTPServerWorker.java:356)
    at APJP.HTTP.HTTPServerWorker.run(HTTPServerWorker.java:128)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.net.NoRouteToHostException: No route to host
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
    at sun.net.www.http.HttpClient.New(HttpClient.java:300)
    at sun.net.www.http.HttpClient.New(HttpClient.java:317)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:949)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
    at APJP.HTTP11.HTTPRequest.open(HTTPRequest.java:119)
    ... 3 more

looking forward to hearing from you...

Original comment by wumin20...@gmail.com on 21 Jan 2013 at 4:34

GoogleCodeExporter commented 9 years ago
抱歉,让你等那么多天,还要告诉你无解。:(

Original comment by goknmuse on 23 Jan 2013 at 12:46