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

Exception in OkHttp3 library on O #2355

Closed
sjudd opened this issue Sep 7, 2017 · 2 comments
Closed

Exception in OkHttp3 library on O #2355

sjudd opened this issue Sep 7, 2017 · 2 comments
Milestone

Comments

@sjudd
Copy link
Collaborator

sjudd commented Sep 7, 2017

09-07 10:10:54.540 E/AndroidRuntime( 8724): FATAL EXCEPTION: OkHttp Dispatcher
09-07 10:10:54.540 E/AndroidRuntime( 8724): Process: com.bumptech.glide.samples.flickr, PID: 8724
09-07 10:10:54.540 E/AndroidRuntime( 8724): java.lang.ClassCastException: android.system.UnixSocketAddress cannot be cast to java.net.InetSocketAddress
09-07 10:10:54.540 E/AndroidRuntime( 8724): at libcore.io.IoBridge.getLocalInetSocketAddress(IoBridge.java:700)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at libcore.io.IoBridge.connectDetail(IoBridge.java:197)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at libcore.io.IoBridge.connect(IoBridge.java:138)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.net.Socket.connect(Socket.java:616)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.Platform$Android.connectSocket(Platform.java:200)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.io.RealConnection.connectSocket(RealConnection.java:137)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.io.RealConnection.connect(RealConnection.java:108)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:188)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:127)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:97)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:289)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:241)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.RealCall.getResponse(RealCall.java:240)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.RealCall.access$100(RealCall.java:30)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:33)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
09-07 10:10:54.540 E/AndroidRuntime( 8724): at java.lang.Thread.run(Thread.java:764)
09-07 10:10:54.543 W/ActivityManager( 1539): Force finishing activity com.bumptech.glide.samples.flickr/.FlickrSearchActivity

See square/okhttp#3438 and https://issuetracker.google.com/issues/63649622.

@sjudd sjudd added the bug label Sep 7, 2017
@sjudd sjudd added this to the 4.2 milestone Sep 7, 2017
@sjudd sjudd closed this as completed in a4af922 Sep 8, 2017
@sjudd
Copy link
Collaborator Author

sjudd commented Dec 30, 2017

@yschimke probably yes, although anyone deliberately using an older version of OkHttp may break.

Probably ok to wait and see if that happens though, there's not much reason to force your build to be on an older version and I think Gradle will prefer the newest of an specified versions.

@sjudd sjudd reopened this Dec 30, 2017
@sjudd sjudd modified the milestones: 4.2, 4.5 Dec 30, 2017
@sjudd sjudd added enhancement and removed bug labels Dec 30, 2017
@sjudd sjudd closed this as completed in 642b2dc Dec 30, 2017
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

2 participants