Results 1 to 6 of 6

Thread: getting Ice::SocketException

  1. #1
    fengqi is offline Registered User
    Join Date
    Apr 2006
    Posts
    3

    Lightbulb 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
    Last edited by fengqi; 05-08-2006 at 10:57 PM.
    feng qi
    project name : IM Server
    Asiainfo(china), Inc.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi fengqi,

    Please add your signature as described in this post.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    fengqi is offline Registered User
    Join Date
    Apr 2006
    Posts
    3

    ok

    add success
    feng qi
    project name : IM Server
    Asiainfo(china), Inc.

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

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

    Thanks,

    Cheers,
    Benoit.

  5. #5
    fengqi is offline Registered User
    Join Date
    Apr 2006
    Posts
    3

    Lightbulb ok

    ok! but program associate overfull code ! therefore only send simple client code !

  6. #6
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    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 ).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 12-14-2010, 05:15 PM
  2. Replies: 3
    Last Post: 10-11-2006, 11:15 PM
  3. SocketException
    By yanhbo in forum Bug Reports
    Replies: 3
    Last Post: 08-08-2005, 07:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •