- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在使用 http2 的 post 调用中从 okhttp 随机获得这些以下中断的异常。根据文档,我什至将读/写和调用超时设置为 0,这意味着没有超时。
下面是我的httpclient
this.client = new OkHttpClient.Builder()
.protocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE)
.connectionSpecs(Collections.singletonList(ConnectionSpec.CLEARTEXT))
.connectionPool(new ConnectionPool(20, 30, TimeUnit.SECONDS))
.readTimeout(0, TimeUnit.MILLISECONDS)
.writeTimeout(0, TimeUnit.MILLISECONDS)
.callTimeout(0, TimeUnit.MILLISECONDS)
.build();
谁能告诉我为什么会出现以下异常以及如何解决这些异常
java.io.InterruptedIOException: null
at okhttp3.internal.http2.Http2Stream.waitForIo$okhttp(Http2Stream.kt:662) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:140) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:96) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:148) ~[okhttp-4.5.0.jar:?]
at com.mycom.common-code.lb.http.EnvoyHttp2Proxy.executeRequest(EnvoyHttp2Proxy.java:117) [common-code-lb-2.1.0.1365.jar:?]
at com.mycom.common-code.lb.http.EnvoyHttp2Proxy.execute(EnvoyHttp2Proxy.java:83) [common-code-lb-2.1.0.1365.jar:?]
at com.mycom.common-code.lb.http.mycomHttpTracingClient.callClient(mycomHttpTracingClient.java:111) [common-code-lb-2.1.0.1365.jar:?]
at com.mycom.common-code.lb.http.mycomHttpTracingClient.execute(mycomHttpTracingClient.java:92) [common-code-lb-2.1.0.1365.jar:?]
at com.mycom.common-code.lb.http.mycomHttpTracingClient.execute(mycomHttpTracingClient.java:55) [common-code-lb-2.1.0.1365.jar:?]
at com.mycom.common-code.lb.http.mycomHttpClientWrapper.execute(mycomHttpClientWrapper.java:43) [common-code-lb-2.1.0.1365.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getBulkserviceCs(serviceCService.java:264) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b.CGLIB$getBulkserviceCs$6(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b$$FastClassByGuice$$c4d006de.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b.getBulkserviceCs(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getAllBulkserviceCs(serviceCService.java:233) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getserviceCs(serviceCService.java:147) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b.CGLIB$getserviceCs$1(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b$$FastClassByGuice$$c4d006de.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b.getserviceCs(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getserviceCs(serviceCService.java:130) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b.CGLIB$getserviceCs$0(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b$$FastClassByGuice$$c4d006de.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$aae0540b.getserviceCs(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService.enrich(BookmarkEnricherService.java:54) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService$$EnhancerByGuice$$647c6025.CGLIB$enrich$0(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService$$EnhancerByGuice$$647c6025$$FastClassByGuice$$b13fc520.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService$$EnhancerByGuice$$647c6025.enrich(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.redis.RedisDataMigrationService.migrateHashValues(RedisDataMigrationService.java:21) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.redis.RedisBookmarkmycomIdManager.lambda$enrich$10(RedisBookmarkmycomIdManager.java:191) [serviceB-common-code.jar:?]
at com.mycom.serviceB.common-code.HystrixProxy.run(HystrixProxy.java:29) [serviceB-common-code.jar:?]
at com.mycom2.hystrix.HystrixCommand$2.call(HystrixCommand.java:302) [hystrix-core-1.5.12.jar:1.5.12]
at com.mycom2.hystrix.HystrixCommand$2.call(HystrixCommand.java:298) [hystrix-core-1.5.12.jar:1.5.12]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:46) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) [rxjava-1.2.0.jar:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94) [rxjava-1.2.0.jar:1.2.0]
at com.mycom2.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56) [hystrix-core-1.5.12.jar:1.5.12]
at com.mycom2.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:47) [hystrix-core-1.5.12.jar:1.5.12]
at com.mycom2.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69) [hystrix-core-1.5.12.jar:1.5.12]
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) [rxjava-1.2.0.jar:1.2.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
和
java.io.InterruptedIOException: interrupted
at okio.Timeout.throwIfReached(Timeout.kt:98) ~[okio-2.5.0.jar:?]
at okio.OutputStreamSink.write(JvmOkio.kt:50) ~[okio-2.5.0.jar:?]
at okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:103) ~[okio-2.5.0.jar:?]
at okio.RealBufferedSink.flush(RealBufferedSink.kt:247) ~[okio-2.5.0.jar:?]
at okhttp3.internal.http2.Http2Writer.flush(Http2Writer.kt:120) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http2.Http2Connection.flush(Http2Connection.kt:408) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http2.Http2Stream$FramingSink.close(Http2Stream.kt:626) ~[okhttp-4.5.0.jar:?]
at okio.ForwardingSink.close(ForwardingSink.kt:37) ~[okio-2.5.0.jar:?]
at okhttp3.internal.connection.Exchange$RequestBodySink.close(Exchange.kt:242) ~[okhttp-4.5.0.jar:?]
at okio.RealBufferedSink.close(RealBufferedSink.kt:268) ~[okio-2.5.0.jar:?]
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:60) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197) ~[okhttp-4.5.0.jar:?]
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:148) ~[okhttp-4.5.0.jar:?]
at com.mycom.common-code.lb.http.EnvoyHttp2Proxy.executeRequest(EnvoyHttp2Proxy.java:121) [common-code-lb-2.1.0.1366.jar:?]
at com.mycom.common-code.lb.http.EnvoyHttp2Proxy.execute(EnvoyHttp2Proxy.java:87) [common-code-lb-2.1.0.1366.jar:?]
at com.mycom.common-code.lb.http.mycomHttpTracingClient.callClient(mycomHttpTracingClient.java:111) [common-code-lb-2.1.0.1366.jar:?]
at com.mycom.common-code.lb.http.mycomHttpTracingClient.execute(mycomHttpTracingClient.java:92) [common-code-lb-2.1.0.1366.jar:?]
at com.mycom.common-code.lb.http.mycomHttpTracingClient.execute(mycomHttpTracingClient.java:55) [common-code-lb-2.1.0.1366.jar:?]
at com.mycom.common-code.lb.http.mycomHttpClientWrapper.execute(mycomHttpClientWrapper.java:43) [common-code-lb-2.1.0.1366.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getBulkserviceCs(serviceCService.java:264) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb.CGLIB$getBulkserviceCs$4(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb$$FastClassByGuice$$82565de9.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb.getBulkserviceCs(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getAllBulkserviceCs(serviceCService.java:233) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getserviceCs(serviceCService.java:147) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb.CGLIB$getserviceCs$1(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb$$FastClassByGuice$$82565de9.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb.getserviceCs(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService.getserviceCs(serviceCService.java:130) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb.CGLIB$getserviceCs$0(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb$$FastClassByGuice$$82565de9.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.serviceCService$$EnhancerByGuice$$af924afb.getserviceCs(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService.enrich(BookmarkEnricherService.java:54) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService$$EnhancerByGuice$$aafb80a9.CGLIB$enrich$1(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService$$EnhancerByGuice$$aafb80a9$$FastClassByGuice$$c0b15525.invoke(<generated>) [guice-4.0.jar:?]
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.executeBlocking(ProfilerInterceptor.java:111) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.mycom.common-code.utils.logging.profiler.ProfilerInterceptor.invoke(ProfilerInterceptor.java:103) [common-code-mycom-stats-2.1.0.1360.jar:?]
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) [guice-4.0.jar:?]
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.service.BookmarkEnricherService$$EnhancerByGuice$$aafb80a9.enrich(<generated>) [guice-4.0.jar:?]
at com.mycom.serviceB.backend.redis.RedisDataMigrationService.migrateHashValues(RedisDataMigrationService.java:21) [serviceB-common-code.jar:?]
at com.mycom.serviceB.backend.redis.RedisBookmarkmycomIdManager.lambda$enrich$10(RedisBookmarkmycomIdManager.java:191) [serviceB-common-code.jar:?]
at com.mycom.serviceB.common-code.HystrixProxy.run(HystrixProxy.java:29) [serviceB-common-code.jar:?]
at com.mycom2.hystrix.HystrixCommand$2.call(HystrixCommand.java:302) [hystrix-core-1.5.12.jar:1.5.12]
at com.mycom2.hystrix.HystrixCommand$2.call(HystrixCommand.java:298) [hystrix-core-1.5.12.jar:1.5.12]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:46) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) [rxjava-1.2.0.jar:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) [rxjava-1.2.0.jar:1.2.0]
at rx.Observable.unsafeSubscribe(Observable.java:10151) [rxjava-1.2.0.jar:1.2.0]
at rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94) [rxjava-1.2.0.jar:1.2.0]
at com.mycom2.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56) [hystrix-core-1.5.12.jar:1.5.12]
at com.mycom2.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:47) [hystrix-core-1.5.12.jar:1.5.12]
at com.mycom2.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69) [hystrix-core-1.5.12.jar:1.5.12]
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) [rxjava-1.2.0.jar:1.2.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
最佳答案
如果你要取消 future ,你会得到这个。不幸的是,您的堆栈跟踪不完整,因此我无法确认这是一个可能的原因。
关于java - 使用 OkHttp 4.5.0 随机获取 java.io.InterruptedIOException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61583744/
我正在实现 Server-Sent Events使用 OkHttp 的库。服务器发送事件的工作原理是与服务器保持开放的 HTTP 连接,在该服务器上,“事件”可以流式传输回客户端。连接只会在错误或客户
我需要用 OkHttp 重现错误,这样我就可以提交错误或在 StackOverflow 上提问。 无需大量设置即可执行此操作的最简单方法是什么? 我读过 https://stackoverflow.c
我需要用 OkHttp 重现错误,这样我就可以提交错误或在 StackOverflow 上提问。 无需大量设置即可执行此操作的最简单方法是什么? 我读过 https://stackoverflow.c
我正在尝试使用 OkHttp 与 HTTP/2 服务器进行通信客户端。 添加到 Maven POM: com.squareup.okhttp3 okhttp 3.2.0 这是我的
我在使用我的应用程序时不断在 Logcat 中看到以下日志行: 19098-19147/ W/OkHttpClient: A connection to was leaked. Did you fo
我的团队正受此困扰issue使用 slack 集成来上传文件,因此根据该问题中的评论,我想限制我们的 Kotlin 实现中的请求。 我正在尝试集成 Okio Throttler在 OkHttp 拦截器
如何验证 okhttp 是否成功协商了 http/2 而没有使用 https/1.1?我可以检查回复中的一些信息吗? 谢谢, -托尼 最佳答案 仅供引用,因为 okhttp 3.0 左右 OkHttp
我想提出一个请求并强制它使用 Protocol.HTTP_2。 我尝试了下面的代码: import okhttp3.{OkHttpClient, Protocol, Request} import s
我不太熟悉 OkHttp 库,我对它应该如何用于异步请求有一些疑问。 对于 Android 编程,我将 android 库用于 http,并将 asyncTask 用于某些请求。 但是因为我想尝试 O
我在我的项目中使用 Retrofit-1.6.0 + okhttp-2.0.0-RC1 。当我运行项目时出现错误。 java.lang.RuntimeException: Retrofit detec
OkHttpClient 的默认行为是将 keep-alive 设置为 true。对于我们的特定用例,我需要将其设置为 false。 我没有在 Java 源代码中找到任何设置来执行此操作。 有人遇到过
我试图让 OkHttp 在我的 Android Studio 项目中工作,我创建了一个类并从这里粘贴以下代码:https://github.com/square/okhttp/blob/master/
我注意到 OkHttp 在 Android 5.0+ 中通过 ALPN 支持 h2。 来自 some article ,我了解到我们可以对 http/2 请求使用 NPN 协商。 我可以通过 NPN
我知道,Retrofit 在内部使用 OkHttp。但是,我可以看到一些开发人员提供了以下方法的应用 return new Retrofit.Builder() .baseUrl(Bu
我正在努力让 Android 上的 OkHttpClient 使用自定义证书发出 HTTPS 请求,同时绑定(bind)到特定网络接口(interface)的本地地址。我目前对此的尝试使用以下 OkH
我有一个用于 https 连接演示的 native android 应用程序,我遇到了这样的异常:: 我的连接代码很简单: URL url = new URL("https://192.168.1.5
我正在重写 EventListener 中的 dnsEnd() 函数: @Override public void dnsEnd(Call call, String domainName, L
我有okhttp的android多项目设置,作为多个项目的一部分 在项目A中,okhttp包含在源代码中。 在项目B中,okhttp带有库依赖项的一部分。 构建时,出现以下错误。 Execution
我正在尝试使用pesapal向我的应用程序添加付款但遇到问题,我将它们的依赖实现'com.pesapal.android:pesapalandroid:1.0.5'添加到我的应用程序中,从那时起我就一
我只是尝试使用 OkHttp但是当我将我的 gradle 文件与 Android Studio 同步时,我遇到了以下问题: Error:Failed to find: com.squareup.okh
我是一名优秀的程序员,十分优秀!