connection issue via Jade bridge

View: New views
2 Messages — Rating Filter:   Alert me  

connection issue via Jade bridge

by Cuong Phuc Nguyen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

My application is briefly described as follow: a JADE agent system is running in Java platform, talking to another application running in MATLAB platform using JADE Bridge via SocketProxyAgent. A single port, say 4444, is used for this JADE-MATLAB communication. JADE agent system is started only once but MATLAB application can restart many times, thus the jade bridge is restarted any time MATLAB application is restarted. After restarting a few times, the connection is broken and the following exception appeared:

 

Exception when sending ACL:java.net.BindException: Address already in use: connect

 

What might be the problem? My guess is the previous connection is not completely released but I don’t know how to check if a jade bridge still exists or how to close the Jade bridge completely before restart a new Jade bridge at the same port.

 

Regards,

Nguyen


_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm

Re: connection issue via Jade bridge

by Oliver Huynh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Cuong!

Check your code, your connect query, you are connecting the same address two times, and that error occurs. Nothing more to care.

On Sat, Oct 17, 2009 at 11:55 PM, Cuong Phuc Nguyen <cnguyen7@...> wrote:

Hi,

 

My application is briefly described as follow: a JADE agent system is running in Java platform, talking to another application running in MATLAB platform using JADE Bridge via SocketProxyAgent. A single port, say 4444, is used for this JADE-MATLAB communication. JADE agent system is started only once but MATLAB application can restart many times, thus the jade bridge is restarted any time MATLAB application is restarted. After restarting a few times, the connection is broken and the following exception appeared:

 

Exception when sending ACL:java.net.BindException: Address already in use: connect

 

What might be the problem? My guess is the previous connection is not completely released but I don’t know how to check if a jade bridge still exists or how to close the Jade bridge completely before restart a new Jade bridge at the same port.

 

Regards,

Nguyen


_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm



--
Regards,
Oliver

"Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them."

_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm