Java客户端调用python服务器报告错误org.apache.thrift.TApplicationException:内部错误

时间:2019-04-10 08:36:29

标签: java python thrift

我使用thrift make java服务器调用python客户端,连接正常 服务器响应使用100毫秒至500毫秒,但是以下错误在三分钟内发生两次,有人可以帮我吗?

python服务器:

transport = TSocket.TServerSocket("127.0.0.1", 8080)
tfactory = TTransport.TBufferedTransportFactory()
pfactory = TBinaryProtocol.TBinaryProtocolFactory()
rpcServer = TServer.TThreadPoolServer(processor, transport, tfactory, pfactory)

Java客户端:

socket = new TSocket("127.0.0.1", 8080);        
TProtocol protocol = new TBinaryProtocol(tTransport);
client = new ImDetect.Client(protocol);

这是我的错误的详细信息:

  

org.apache.thrift.TApplicationException:内部错误位于   org.apache.thrift.TApplicationException.read(TApplicationException.java:111)     在   org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)     在   business.thriftclient.ImDetect $ Client.recv_doWatermarkDetect(ImDetect.java:75)     在   business.thriftclient.ImDetect $ Client.doWatermarkDetect(ImDetect.java:62)     在   business.thriftclient.AsynCThriftClient.imageWatermarkDetection(AsynCThriftClient.java:95)     在   service.business.soa.ImageWatermarkDetectionServiceImpl.doWatermarkDetection(ImageWatermarkDetectionServiceImpl.java:123)     在   service.business.soa.ImageWatermarkDetectionServiceImpl.asynImageWatermarkDetection(ImageWatermarkDetectionServiceImpl.java:72)     在sun.reflect.GeneratedMethodAccessor107.invoke(未知来源)   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)在   com.ctriposs.baiji.rpc.server.OperationHandler.invoke(OperationHandler.java:430)     在   com.ctriposs.baiji.rpc.server.handler.ServiceRequestHandlerBase.executeService(ServiceRequestHandlerBase.java:417)     在   com.ctriposs.baiji.rpc.server.handler.ServiceRequestHandlerBase.handleInternal(ServiceRequestHandlerBase.java:168)     在   com.ctriposs.baiji.rpc.server.handler.ServiceRequestHandlerBase.handle(ServiceRequestHandlerBase.java:133)     在   com.ctriposs.baiji.rpc.server.BaijiServiceHost.processRequest(BaijiServiceHost.java:113)     在   com.ctriposs.baiji.rpc.server.BaijiServlet.service(BaijiServlet.java:66)     在javax.servlet.http.HttpServlet.service(HttpServlet.java:731)在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     在   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)     在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)     在   com.ctriposs.baiji.rpc.client.ribbon.HttpContextFilter.doFilter(HttpContextFilter.java:34)     在

     

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)     在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

0 个答案:

没有答案