{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc-java/issues/4025","repository_url":"https://api.github.com/repos/grpc/grpc-java","labels_url":"https://api.github.com/repos/grpc/grpc-java/issues/4025/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc-java/issues/4025/comments","events_url":"https://api.github.com/repos/grpc/grpc-java/issues/4025/events","html_url":"https://github.com/grpc/grpc-java/issues/4025","id":293076140,"number":4025,"title":"netty 4.1.20 makes the RPC calls to fail","user":{"login":"pasdam","id":11477201,"avatar_url":"https://avatars0.githubusercontent.com/u/11477201?v=4","gravatar_id":"","url":"https://api.github.com/users/pasdam","html_url":"https://github.com/pasdam","followers_url":"https://api.github.com/users/pasdam/followers","following_url":"https://api.github.com/users/pasdam/following{/other_user}","gists_url":"https://api.github.com/users/pasdam/gists{/gist_id}","starred_url":"https://api.github.com/users/pasdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasdam/subscriptions","organizations_url":"https://api.github.com/users/pasdam/orgs","repos_url":"https://api.github.com/users/pasdam/repos","events_url":"https://api.github.com/users/pasdam/events{/privacy}","received_events_url":"https://api.github.com/users/pasdam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"carl-mastrangelo","id":8943572,"avatar_url":"https://avatars0.githubusercontent.com/u/8943572?v=4","gravatar_id":"","url":"https://api.github.com/users/carl-mastrangelo","html_url":"https://github.com/carl-mastrangelo","followers_url":"https://api.github.com/users/carl-mastrangelo/followers","following_url":"https://api.github.com/users/carl-mastrangelo/following{/other_user}","gists_url":"https://api.github.com/users/carl-mastrangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-mastrangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-mastrangelo/subscriptions","organizations_url":"https://api.github.com/users/carl-mastrangelo/orgs","repos_url":"https://api.github.com/users/carl-mastrangelo/repos","events_url":"https://api.github.com/users/carl-mastrangelo/events{/privacy}","received_events_url":"https://api.github.com/users/carl-mastrangelo/received_events","type":"User","site_admin":false},"assignees":[{"login":"carl-mastrangelo","id":8943572,"avatar_url":"https://avatars0.githubusercontent.com/u/8943572?v=4","gravatar_id":"","url":"https://api.github.com/users/carl-mastrangelo","html_url":"https://github.com/carl-mastrangelo","followers_url":"https://api.github.com/users/carl-mastrangelo/followers","following_url":"https://api.github.com/users/carl-mastrangelo/following{/other_user}","gists_url":"https://api.github.com/users/carl-mastrangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-mastrangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-mastrangelo/subscriptions","organizations_url":"https://api.github.com/users/carl-mastrangelo/orgs","repos_url":"https://api.github.com/users/carl-mastrangelo/repos","events_url":"https://api.github.com/users/carl-mastrangelo/events{/privacy}","received_events_url":"https://api.github.com/users/carl-mastrangelo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-01-31T08:51:12Z","updated_at":"2018-02-23T01:23:28Z","closed_at":"2018-02-23T01:23:28Z","author_association":"NONE","body":"I'm using the latest gRPC version (1.9.0), which comes with netty 4.1.17, but I have another dependency which requires netty 4.1.20. If I use the latter the RPC calls on the client side fail with the following exception:\r\n\r\n```\r\nException in thread \"main\" io.grpc.StatusRuntimeException: UNKNOWN\r\n\tat io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:221)\r\n\tat io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:202)\r\n\tat io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:131)\r\n\t...\r\nCaused by: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(10) exceeds writerIndex(0): PooledUnsafeDirectByteBuf(ridx: 0, widx: 0, cap: 30)\r\n\tat io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1403)\r\n\tat io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1390)\r\n\tat io.netty.buffer.AbstractByteBuf.readSlice(AbstractByteBuf.java:856)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2FrameWriter$DataFrameHeader.slice(DefaultHttp2FrameWriter.java:644)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2FrameWriter.writeData(DefaultHttp2FrameWriter.java:160)\r\n\tat io.netty.handler.codec.http2.Http2OutboundFrameLogger.writeData(Http2OutboundFrameLogger.java:44)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2ConnectionEncoder$FlowControlledData.write(DefaultHttp2ConnectionEncoder.java:411)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController$FlowState.writeAllocatedBytes(DefaultHttp2RemoteFlowController.java:372)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController$WritabilityMonitor$1.write(DefaultHttp2RemoteFlowController.java:562)\r\n\tat io.netty.handler.codec.http2.WeightedFairQueueByteDistributor$State.write(WeightedFairQueueByteDistributor.java:612)\r\n\tat io.netty.handler.codec.http2.WeightedFairQueueByteDistributor.distribute(WeightedFairQueueByteDistributor.java:293)\r\n\tat io.netty.handler.codec.http2.WeightedFairQueueByteDistributor.distributeToChildren(WeightedFairQueueByteDistributor.java:326)\r\n\tat io.netty.handler.codec.http2.WeightedFairQueueByteDistributor.distribute(WeightedFairQueueByteDistributor.java:272)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController$WritabilityMonitor.writePendingBytes(DefaultHttp2RemoteFlowController.java:643)\r\n\tat io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController.writePendingBytes(DefaultHttp2RemoteFlowController.java:267)\r\n\tat io.netty.handler.codec.http2.Http2ConnectionHandler.flush(Http2ConnectionHandler.java:200)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:776)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:768)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:749)\r\n\tat io.netty.channel.DefaultChannelPipeline.flush(DefaultChannelPipeline.java:991)\r\n\tat io.netty.channel.AbstractChannel.flush(AbstractChannel.java:248)\r\n\tat io.grpc.netty.WriteQueue.flush(WriteQueue.java:136)\r\n\tat io.grpc.netty.WriteQueue.access$000(WriteQueue.java:32)\r\n\tat io.grpc.netty.WriteQueue$1.run(WriteQueue.java:44)\r\n\tat io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)\r\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)\r\n\tat io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grpc/grpc-java/issues/comments/367879621","html_url":"https://github.com/grpc/grpc-java/issues/4025#issuecomment-367879621","issue_url":"https://api.github.com/repos/grpc/grpc-java/issues/4025","id":367879621,"user":{"login":"carl-mastrangelo","id":8943572,"avatar_url":"https://avatars0.githubusercontent.com/u/8943572?v=4","gravatar_id":"","url":"https://api.github.com/users/carl-mastrangelo","html_url":"https://github.com/carl-mastrangelo","followers_url":"https://api.github.com/users/carl-mastrangelo/followers","following_url":"https://api.github.com/users/carl-mastrangelo/following{/other_user}","gists_url":"https://api.github.com/users/carl-mastrangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-mastrangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-mastrangelo/subscriptions","organizations_url":"https://api.github.com/users/carl-mastrangelo/orgs","repos_url":"https://api.github.com/users/carl-mastrangelo/repos","events_url":"https://api.github.com/users/carl-mastrangelo/events{/privacy}","received_events_url":"https://api.github.com/users/carl-mastrangelo/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T01:23:28Z","updated_at":"2018-02-23T01:23:28Z","author_association":"MEMBER","body":"@pasdam Updating to netty 4.1.22 removes the error.   It may just be that 4.1.20 had a bug.    \r\n\r\nSince we have already updated to netty 4.1.22 in #4112, I think this should be fixed.    gRPC 1.11.x should pick up the update."}}
{"actor":{"display_login":"carl-mastrangelo"}}