bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/29501] New: RMI fixed to localhost?


From: das05 at doc dot ic dot ac dot uk
Subject: [Bug classpath/29501] New: RMI fixed to localhost?
Date: 18 Oct 2006 15:47:49 -0000

When I attempt to call a Remote object which is running on JamVM with
Classpath, the calls fail because the caller (which is running Sun's JVM and
libraries) attempts to access localhost rather than the machine the Remote
object is on.

When the same Remote object is running on another machine which is running
Sun's JVM+libraries, no such problem occurs.

In the example code I will attach, class A (implements RemoteA) is running on
JamVM+Classpath and class B (implements RemoteB) is running on Sun's JVM, on a
machine with rmiregistry. Class A looks up class B and is supposed to call
class B to register itself, and then class B can call A.hi().

The A.hi() call results in a ConnectException with message "connection refused
to localhost".

Interestingly, the reverse problem does not occur - code running on Classpath
can call a Remote object on Sun's libraries.

Furthermore, if the rmiregistry is run on the machine with Classpath, the very
same exception occurs. It's as if there is a field in the object passed out
from the Classpath machine that contains the IP calls should go to, and this is
fixed to localhost.

I have also been using the -D...codebase= and -D...policy= options as
necessary, and I have even tried -Djava.rmi.server.hostname=thecorrectone and
adding the correct host to /etc/hosts. None of these attempts work.


-- 
           Summary: RMI fixed to localhost?
           Product: classpath
           Version: 0.91
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: das05 at doc dot ic dot ac dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29501





reply via email to

[Prev in Thread] Current Thread [Next in Thread]