Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.net.SocketException in HttpResponseContentsDetector.onCheckForPortal() #15

Closed
zach-klippenstein opened this issue May 3, 2012 · 0 comments

Comments

@zach-klippenstein
Copy link
Owner

Applies to version 1.1.0

This exception will be caught and logged, instead of crashing, in v1.1.1+.

Will leave until I can check for a bug in the state machine, otherwise this isn't affecting anything.

Source method: OSNetworkSystem.connectStreamWithTimeoutSocketImpl()

java.lang.RuntimeException: Error executing request
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.executeRequestOrThrow(HttpResponseContentsDetector.java:80)
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.onCheckForPortal(HttpResponseContentsDetector.java:56)
at com.zachklipp.captivate.captive_portal.PortalDetector.checkForPortal(PortalDetector.java:50)
at com.zachklipp.captivate.service.PortalDetectorService.checkForPortal(PortalDetectorService.java:164)
at com.zachklipp.captivate.service.PortalDetectorService.onHandleIntent(PortalDetectorService.java:147)
at com.zachklipp.captivate.util.StickyIntentService$WorkerThread.handleMessage(StickyIntentService.java:114)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:123)
at android.os.HandlerThread.run(HandlerThread.java:60)
Caused by: java.net.SocketException: Network unreachable
at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)
at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:115)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:244)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
at java.net.Socket.connect(Socket.java:1074)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:153)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.executeRequestOrThrow(HttpResponseContentsDetector.java:76)
... 8 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant