Archived

This forum has been archived. Please start a new discussion on GitHub.

getting Ice::SocketException

Hi,I call a server method ,But sometimes, I am getting Ice::SocketException!

I also have following printout in the log file:

[ 05/08/06 13:10:54.187 IMICE: Network: received 12 of 12 bytes via tcp
local address = 192.168.101.65:59273
remote address = 192.168.101.70:11000 ]
[ 05/08/06 13:10:54.188 IMICE: Protocol: received reply
message type = 2 (reply)
compression status = 1 (not compressed; compress response, if any)
message size = 26
request id = 2
reply status = 0 (ok) ]
[ 05/08/06 13:11:10.532 IMICE: Network: received 14 of 14 bytes via tcp
local address = 192.168.101.65:59273
remote address = 192.168.101.70:11000 ]
[ 05/08/06 13:11:10.532 IMICE: Protocol: received close connection
message type = 4 (close connection)
compression status = 1 (not compressed; compress response, if any)
message size = 14 ]
[ 05/08/06 13:11:10.532 IMICE: Network: shutting down tcp connection for writing
local address = 192.168.101.65:59273
remote address = 192.168.101.70:11000 ]
05/08/06 13:11:10.532 IMICE: error: exception in `Ice.ThreadPool.Client': ThreadPool.cpp:358
ThreadPool.cpp:353: Ice::SocketException:
socket exception: Bad file descriptor

05/08/06 13:11:10.532 IMICE: error: exception in `Ice.ThreadPool.Client': ThreadPool.cpp:358
ThreadPool.cpp:353: Ice::SocketException:
socket exception: Bad file descriptor
05/08/06 13:11:10.533 IMICE: error: exception in `Ice.ThreadPool.Client': ThreadPool.cpp:358
ThreadPool.cpp:353: Ice::SocketException:
socket exception: Bad file descriptor
05/08/06 13:11:10.533 IMICE: error: exception in `Ice.ThreadPool.Client': ThreadPool.cpp:358
ThreadPool.cpp:353: Ice::SocketException:
socket exception: Bad file descriptor
....

My Environment:
ICE 3.0.1, Red Hat As 4.0 ,ACE 5.5, iksemel-1.2
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)

thanks for your time

fengqi

Comments

  • bernard
    bernard Jupiter, FL
    Hi fengqi,

    Please add your signature as described in this post.

    Best regards,
    Bernard
  • ok

    add success
  • benoit
    benoit Rennes, France
    Hi,

    Could you perhaps send us a small self compilable example demonstrating this problem? This would really help investigating this issue!

    Thanks,

    Cheers,
    Benoit.
  • ok

    ok! but program associate overfull code ! therefore only send simple client code !
  • marc
    marc Florida
    You just sent us some code by email. I tried to respond to your email, but the return address does not work.

    Please attach any sample code to your message here in these user forums instead of sending it to us by email. Also, please do not send us any examples that use ACE together with Ice. Please understand that we cannot give support for ACE, since we do not know ACE well enough, and therefore don't know what side effects it might have that can cause the problem you describe.

    If you would like us to examine code that also uses ACE, you would have to purchase commercial consulting services from us. In this case, please contact us at info@zeroc.com for pricing (with a return email address that works :) ).