Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-05-2008
Ylliac Ylliac is offline
Registered User
 
Name: Antoine CAILLY
Organization: INSA of Rennes (France)
Project: School project
 
Join Date: Nov 2007
Posts: 12
Problem : Connection lost Exception

Hello

I'm trying to create an application with a client who send an "image" to a computer, this computer calculate things with this image and send back to the client the results.

The image is in fact a sequence of int. First, I tried with a little array, it worked perfectly. After, I tried with an array of 1000000 values. It raised an MemoryLimitException so I increased the MessageSizeMax for the client, the IceGrid server (I use Icegrid between the client and the computer who calculate) and for the computer who calculate.

Then, I've an Ice::ConnectionLostException in this error message :

03/05/08 14:04:51.531 warning: connection exception:
TcpTransceiver.cpp:223: Ice::ConnectionLostException:
connection lost: recv() returned zero
local address = 10.133.8.221:4058
remote address = 10.133.8.221:4043
03/05/08 14:04:51.578 warning: connection exception:
TcpTransceiver.cpp:167: Ice::ConnectionLostException:
connection lost: WSAECONNABORTED
local address = 10.133.8.221:4060
remote address = 10.133.8.221:4043
GridClient.exe: TcpTransceiver.cpp:167: Ice::ConnectionLostException:
connection lost: WSAECONNABORTED

If it's not an error with the constant MemoryLimitException, I don't know where does it come from? hope you'll see better than me.

Thanks

Antoine
Reply With Quote
  #2 (permalink)  
Old 03-05-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,541
Hi,

Did you also set the Ice.MessageSizeMax property in the server configuration file? If not the server will close the connection if it receives messages bigger than the default message size limit.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 03-05-2008
Ylliac Ylliac is offline
Registered User
 
Name: Antoine CAILLY
Organization: INSA of Rennes (France)
Project: School project
 
Join Date: Nov 2007
Posts: 12
Hi,

Yes, I set the Ice.MessageSizeMax property in the server configuration file, and it didn't change anything. I always got the same error message...

Cheers
Antoine
Reply With Quote
  #4 (permalink)  
Old 03-05-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,541
Do you have Ice.Warn.Connections=1 set in the server configuration file? If you do, the server should display connection warnings when it ungracefully closes the client connection. These warnings should give more information about the error. The Ice::ConnectionLostException exception in the client could also indicate a server crash. Could this be the reason?

If you still can't figure out why this is happening, you should describe a little more your deployment and provide tracing information of the server and client (by setting the Ice.Trace.Network=2, Ice.Warn.Connections=1 and Ice.Trace.Protocol=1 properties in both the server & client configuration files). Please also specify which Ice version and operating system you're using.

Note that if your server is deployed with IceGrid, you need to specify the properties in the server XML descriptor and update the application with icegridadmin. You can also use the IceGrid administrative GUI to update the server properties.

Cheers,
Benoit.
Reply With Quote
  #5 (permalink)  
Old 03-05-2008
Ylliac Ylliac is offline
Registered User
 
Name: Antoine CAILLY
Organization: INSA of Rennes (France)
Project: School project
 
Join Date: Nov 2007
Posts: 12
Thank you.
It works properly.
I added in the XML File the property and all was allright !
Cheers
Antoine
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
timeout and connection lost problem rayeuy Help Center 4 06-04-2007 06:33 AM
problem connection shimrod Help Center 10 05-03-2007 05:37 PM
Connection problem. laotee Help Center 12 09-05-2005 04:52 AM
Connection Refused Exception with Redhat Linux mwilson Help Center 6 07-12-2005 01:09 PM
problem about connection fengxb Help Center 6 07-28-2004 11:27 PM


All times are GMT -4. The time now is 08:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.