[erlang-bugs] Bugfix for OTP-7330 in JInterface had some side-effects

Raimo Niskanen raimo+erlang-bugs@REDACTED
Thu Dec 18 16:49:30 CET 2008


On Mon, Dec 15, 2008 at 03:21:19PM +0100, Nico Kruber wrote:
> Assume you're working on computer "some-pc" and you're creating a node 
> "node1@REDACTED".
> In former versions (up until and including 1.4.0) it was possible to connect 
> from Java/JInterface to that node by using "node1@REDACTED" and everything 
> worked fine - unlike the bugfix description suggested.
> This is not possible anymore which prevents easy distribution of software 
> containing a java interface using an erlang node on the same host 

The old behaviour was erroneous from an Erlang point of view.
It has never been possible to have different names on nodes
from the connection endpoints when two Erlang nodes communicate.
The connection setup fails when they find the name difference.

A solution would be either to force the Erlang node's name
to be 'node1@REDACTED', or to find the hostname from
Java and use "node1@REDACTED" in Jinterface.

> 
> bugfix notes from the release notes:
> Jinterface now refuses to connect to another node that does not agree on the 
> other node's name. This has been a problem in that a connection was set up, 
> but not used on a following send, which caused a second erroneous connection 
> attemt to fail since the other (Erlang) node rejects a connection due to name 
> disagreement.
> Problem reported and dissected by Alexander Lamb
> Own Id: OTP-7330
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-bugs

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-bugs mailing list