Hello all,
I have replaced simple_server.rb and simple_client.rb at
test/rb/integration using attached client and server.
What I have done here is added testVoid and testMultiException to server
and client which are defined in ThriftTest.thrift.
When I run the client against server, I got following error.

test_multi_exception(SimpleClientTest)
[rb/integration/simple_client.rb:174]:
[Thrift::Test::Xception2] exception expected, not
Class: <Thrift::TransportException>
Message: <"end of file reached">
---Backtrace---
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/transport/socket.rb:122:in
`rescue in read'
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/transport/socket.rb:97:in
`read'
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/transport/base_transport.rb:84:in
`read_all'
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/transport/base_transport.rb:73:in
`read_into_buffer'
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/protocol/binary_protocol.rb:194:in
`read_i32'
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/protocol/binary_protocol.rb:120:in
`read_message_begin'
/home/chamila/gsoc/1/thrift/lib/rb/lib/thrift/client.rb:45:in
`receive_message'
/home/chamila/gsoc/1/thrift/test/rb/gen-rb/thrift_test.rb:295:in
`recv_testMultiException'
/home/chamila/gsoc/1/thrift/test/rb/gen-rb/thrift_test.rb:287:in
`testMultiException'
rb/integration/simple_client.rb:175:in `block in test_multi_exception'

I observed that server works fine when I sent "Xception" as arg0, fails in
other cases. Also client works properly with java and node servers. Any
idea on what is wrong here?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
SMIEEE, SMIESL,
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.

Attachment: simple_client.rb
Description: application/ruby

Attachment: simple_server.rb
Description: application/ruby

Reply via email to