JavaIDL and omniORB2
Henrik Voss
henrik@ifad.dk
Thu, 12 Feb 1998 16:15:00 +0100
Hi,
I have a (beginners) problem when I use JavaIDL (jdk1.2beta2) with omniORB2
(v2.4.0) on WinNT. I am running example 2 from the users manual, passing the
object reference as a string via a file from the server to the client.
The problem arises in the client when the client is written in Java. I have
included a few lines of the client below:
System.out.print("object to string ... ");
org.omg.CORBA.Object that = orb.string_to_object(objectString);
System.out.println("done");
System.out.print("narrow object ... ");
// Here is the problem!
Echo obj = EchoHelper.narrow(that);
System.out.println("done");
The problem seem to appear when the generic object reference is narrowed to an
Echo proxy object. If the server is running the method invocation is never
returning. If the server is not running narrow throws the exception "unable to
contact the object.
Any help?
---------------------------------------------------------------
Henrik Voss, IFAD
Forskerparken 10, DK-5230 Odense M, Denmark
Phone: +45 6315 7131, Fax: +45 6593 2999, Email: henrik@ifad.dk
WWW: http://www.ifad.dk/
---------------------------------------------------------------