-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Android O CastException #3438
Android O CastException #3438
Comments
File a bug on b.android.com/new. Doesn't seem likely to be related to
OkHttp code.
…On Thu, Jun 29, 2017, 3:59 AM Dmitry ***@***.***> wrote:
For Android O i noticed such crash in crashlytic,
Fatal Exception: java.lang.ClassCastException: android.system.UnixSocketAddress cannot be cast to java.net.InetSocketAddress
at libcore.io.IoBridge.getLocalInetSocketAddress(IoBridge.java:700)
at libcore.io.IoBridge.connectDetail(IoBridge.java:197)
at libcore.io.IoBridge.connect(IoBridge.java:138)
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
at java.net.Socket.connect(Socket.java:616)
at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:63)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:223)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:149)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:192)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at com.pubnub.api.interceptors.SignatureInterceptor.intercept(SignatureInterceptor.java:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Will this be fixed in new version of library?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3438>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEESRGb9j_pzpeZxmSoVoLOkgHY40eks5sI1lagaJpZM4OI81v>
.
|
I have added an issue https://issuetracker.google.com/issues/63649622 |
It looks like the fix for this missed O. Is there any workaround in OkHttp other than not calling cancel? It's ugly to skip cancelling queued requests made with OkHttp in O only. |
Yeah we'll work around and catch the exception. |
Gosh! Getting same issue also. |
@swankjesse any chances of the fix making it into production sometime soon? 💟 |
…3624) * Add workaround for https://issuetracker.google.com/issues/63649622 This fixes #3438 * Rethrowing the Android O bug CCE as IOException
@yschimke any chance of getting an intermediate release that fixes just this bug before 3.10 is released? |
cc @swankjesse @JakeWharton Seems like a clean fix to apply to a 3.9.1 branch. |
…quare#3624) * Add workaround for https://issuetracker.google.com/issues/63649622 This fixes square#3438 * Rethrowing the Android O bug CCE as IOException
Released as OkHttp 3.9.1. |
For Android O i noticed such crash in crashlytic,
Will this be fixed in new version of library?
The text was updated successfully, but these errors were encountered: