I have following structure

struct Response {
  1: optional bool isFinished, // for BLOB and CLOB
  2: optional ResponseSubset r1,
  3: optional i32 Count,
  4: optional list<alue> params,
  6: optional ResponseSubset1 warnings,
}

and Have api like this

Response performanOperation(1. required i32 id)

When I implement my server in Java, do i need to update all the fields
while constructing response . Or just some field updates is enough.

Sometimes I get following kind of exception


org.apache.thrift.transport.TTransportException
    at
org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
    at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
    at
org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
    at
org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
    at
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
    at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)


Thanks
Avinash

Reply via email to