console tries to connect to MWB agent which is
mantaray agent installed on
machine with 2 network interfaces.
the console succeed on connecting to the layer (manta
connection), but when it
tries to connect by JMX, it fails because it gets the
other interface IP
address, and tries to connect to it.
i.e. in the world map the mwb line is :
<agent name='mwb' >
<transport ip='192.168.1.102' port='80' type='MWB' />
</agent>
get in the log the connection details:
06/20/05 5:47:06 PM [AgentMonitorExecutionThread1]
INFO TransportProvider :
Creating MWB impl 0.0.0.0:0--/192.168.1.102:80.
06/20/05 5:47:06 PM [NetworkSelector] INFO
NetworkManager : HandleID: received
ID (mwb) from /192.168.1.102:80.
06/20/05 5:47:51 PM
[IncomingClientMessagesExecutionThread1] ERROR
ConsoleJMXGateway : Error in creating connection to
the MantaRay Layer 'mwb'.
java.rmi.ConnectException: Connection refused to host:
172.16.1.1; nested ...
we can see that the host name is the other interface's
IP address 172.16.1.1
in the mwb logs we see that the layers connected.
Logged In: YES
user_id=1073177
This is an RMI problem that seems to be a bug of sun.
see more details in:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6236528
Scenario description: The console approach a mantaray layer
through RMI. The mechaine on which the mantaray layer is
installed on has two network interfaces. The console
approaches the correct IP, on which the manta layer loaded
the RMI server for JMX connections. The prolem is, that an
RMI method on the side of the RMI server returns a message
to the console to approach the other network interface.