Http mtp problem when trying to connect a remote platform

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

Http mtp problem when trying to connect a remote platform

by Andrea Pierangeli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,
my problem is that i can't connect 2 different remote platforms
using http mtp.
If i try to add a new Remote Container on my host then  the
other host gets this error:

6-ott-2009 14.48.14 jade.core.messaging.
MessagingService deliverNow
AVVERTENZA: Cannot deliver message to address: http:
//stefano-laptop:7778/acc [jade.mtp.MTPException: stefano-laptop [nested java.
net.UnknownHostException: stefano-laptop]]. Trying the next one...

If the
other host try to add add my platform he receives this error:

6-ott-2009
14.48.14 jade.core.messaging.MessagingService deliverNow
AVVERTENZA: Cannot
deliver message to address: http://andrea:7778/acc [jade.mtp.MTPException:
andrea [nested java.net.UnknownHostException: stefano-laptop]]. Trying the next
one...

It seems we cannot answer to requests other host makes, because of the
lack of IP address.
Maybe it can be useful to say that i can send and receive
single messages between the 2 platforms without any error.
How can I solve this
problem?
Tanks a lot
Andrea Pierangeli
_______________________________________________
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: Http mtp problem when trying to connect a remote platform

by Robert Dodier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 16, 2009 at 6:50 AM, Andrea Pierangeli <Rama1987@...> wrote:

> AVVERTENZA: Cannot deliver message to address: http:
> //stefano-laptop:7778/acc [jade.mtp.MTPException: stefano-laptop [nested java.
> net.UnknownHostException: stefano-laptop]]. Trying the next one...

> AVVERTENZA: Cannot
> deliver message to address: http://andrea:7778/acc [jade.mtp.MTPException:
> andrea [nested java.net.UnknownHostException: stefano-laptop]]. Trying the next
> one...

The problem is that the default host names (stefano-laptop and andrea)
are some unresolvable names (i.e. apparently unknown to DNS).
You either must have a resolvable name, or a numerical IP address.

You can specify the address (and port number) when you
launch JADE with the -mtp option, like this:

  -mtp "jade.mtp.http.MessageTransportProtocol(http://MYHOST:MYPORT/acc)"

I'm guessing there are no resolvable names, so just use numerical IP addresses.
MYPORT can be the default (7778) or anything you want,
but you must ensure that it is not blocked by a firewall.

You can use the JADE GUI to inspect the addresses of agents.
If you look at them as they are now, you should see the unresolvable
addresses. If you specify the address in the -mtp option, you should
see that.

HTH

Robert Dodier
_______________________________________________
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: Http mtp problem when trying to connect a remote platform

by Caire Giovanni-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Can you provide more details about your setup?
- Network connectivity: are the two machines on the same LAN? Is there any Proxy, firewall, NAT...
- JADE configuration: can you provide the command lines you use to launch the two platforms and the output produced by JADE?
- Operations: which steps do you perform to "connect" the 2 platforms? Which steps do you perform to send/receive single messages between the two platforms?

Bye,

Giovanni

-----Original Message-----
From: jade-develop-bounces@... [mailto:jade-develop-bounces@...] On Behalf Of Andrea Pierangeli
Sent: venerdì 16 ottobre 2009 14.50
To: jade-develop@...
Subject: [jade-develop] Http mtp problem when trying to connect a remote platform

Hi everyone,
my problem is that i can't connect 2 different remote platforms
using http mtp.
If i try to add a new Remote Container on my host then  the
other host gets this error:

6-ott-2009 14.48.14 jade.core.messaging.
MessagingService deliverNow
AVVERTENZA: Cannot deliver message to address: http:
//stefano-laptop:7778/acc [jade.mtp.MTPException: stefano-laptop [nested java.
net.UnknownHostException: stefano-laptop]]. Trying the next one...

If the
other host try to add add my platform he receives this error:

6-ott-2009
14.48.14 jade.core.messaging.MessagingService deliverNow
AVVERTENZA: Cannot
deliver message to address: http://andrea:7778/acc [jade.mtp.MTPException:
andrea [nested java.net.UnknownHostException: stefano-laptop]]. Trying the next
one...

It seems we cannot answer to requests other host makes, because of the
lack of IP address.
Maybe it can be useful to say that i can send and receive
single messages between the 2 platforms without any error.
How can I solve this
problem?
Tanks a lot
Andrea Pierangeli
_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm
_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm