You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/12/05 04:20:59 UTC

[GitHub] [incubator-brpc] zhaocc1106 opened a new issue, #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

zhaocc1106 opened a new issue, #2039:
URL: https://github.com/apache/incubator-brpc/issues/2039

   **Describe the bug (描述bug)**
   使用thrift模式搭建服务,java客户端使用thrift原生api访问,容易出现下面的错误:
   Caused by: org.apache.thrift.transport.TTransportException
           at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:129) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) ~[libthrift-0.9.3.jar!/:0.9.3]
           at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77) ~[libthrift-0.9.3.jar!/:0.9.3]
           at com.netease.rec.pctr.PredictService$Client.recv_Predict(PredictService.java:92) ~[classes!/:0.0.1-SNAPSHOT]
           at com.netease.rec.pctr.PredictService$Client.Predict(PredictService.java:79) ~[classes!/:0.0.1-SNAPSHOT]
           ... 46 more
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] wwbmmm commented on issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #2039:
URL: https://github.com/apache/incubator-brpc/issues/2039#issuecomment-1336814175

   有TTransportException的报错具体信息吗


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] zhaocc1106 commented on issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

Posted by GitBox <gi...@apache.org>.
zhaocc1106 commented on issue #2039:
URL: https://github.com/apache/incubator-brpc/issues/2039#issuecomment-1336846278

   > 有TTransportException的报错具体信息吗
   
   thrift jar里对应代码位置的细节见如下截图:
   ![image](https://user-images.githubusercontent.com/26559935/205573745-3f0d8ed8-313e-4ab7-a99b-44a191c36162.png)
   ![image](https://user-images.githubusercontent.com/26559935/205573762-c64c9905-6201-49ed-96cc-72568fd1088c.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] zhaocc1106 commented on issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

Posted by GitBox <gi...@apache.org>.
zhaocc1106 commented on issue #2039:
URL: https://github.com/apache/incubator-brpc/issues/2039#issuecomment-1336828764

   > 有TTransportException的报错具体信息吗
   
   直接触发了thrift jar的exception,看起来是read返回信息时抛出的,但是服务端没有收到这条信息。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] zhaocc1106 closed issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

Posted by GitBox <gi...@apache.org>.
zhaocc1106 closed issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求
URL: https://github.com/apache/incubator-brpc/issues/2039


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] zhaocc1106 commented on issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

Posted by GitBox <gi...@apache.org>.
zhaocc1106 commented on issue #2039:
URL: https://github.com/apache/incubator-brpc/issues/2039#issuecomment-1336828570

   > 
   直接触发了thrift jar的exception,看起来是read返回信息时抛出的,但是服务端没有收到这条信息。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] zhaocc1106 commented on issue #2039: thrift模式下使用java客户端thrift原生api访问容易失败,服务端没有收到请求

Posted by GitBox <gi...@apache.org>.
zhaocc1106 commented on issue #2039:
URL: https://github.com/apache/incubator-brpc/issues/2039#issuecomment-1337339134

   问题已找到,服务端关闭了超时没有通信的链接,关闭问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org