From amirafrah@gmail.com Tue Feb 5 02:39:45 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19D84750073 for ; Tue, 5 Feb 2008 02:39:45 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 1.353 X-Spam-Level: * X-Spam-Status: No, score=1.353 tagged_above=-999 required=2 tests=[BAYES_50=0.001, HTML_10_20=1.351, HTML_MESSAGE=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 6064 hrs), (distance 12, link: (Google 2)), [64.233.166.176] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EZF0-ViKHW1l for ; Tue, 5 Feb 2008 02:39:40 +0000 (GMT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 39E59750060 for ; Tue, 5 Feb 2008 02:39:39 +0000 (GMT) Received: by py-out-1112.google.com with SMTP id w49so3426766pyg.36 for ; Mon, 04 Feb 2008 18:39:38 -0800 (PST) Received: by 10.64.179.12 with SMTP id b12mr14379001qbf.1.1202179177728; Mon, 04 Feb 2008 18:39:37 -0800 (PST) Received: by 10.65.251.9 with HTTP; Mon, 4 Feb 2008 18:39:37 -0800 (PST) Message-ID: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> Date: Mon, 4 Feb 2008 18:39:37 -0800 From: "Amir Afrah" To: orbit-list@gnome.org Subject: getting ORBit examples to work across the network MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8239_13877550.1202179177724" X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 02:39:45 -0000 ------=_Part_8239_13877550.1202179177724 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I have been trying to get the simple example of echo-server/echo-client to work on 2 machines on the network but Ive had no luck for almost 2 days, I can run both server and client on a single machine but when i place the client on a different machine I get the following error massage: ** ERROR **: service raised exception : IDL:omg.org/CORBA/COMM_FAILURE:1.0 I have been searching on google and the only issue that is ever brought up is that IIOP over IP server sockets in default setting and there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command line. I have tried both of these extensively and no luck, any help regarding this would be greatly appriciated. Thanks! ------=_Part_8239_13877550.1202179177724 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,

I have been trying to get the simple example of echo-server/echo-client to work on 2 machines on the network but Ive had no luck for almost 2 days, I can run both server and client on a single machine but when i place the client on a different machine I get the following error massage:

** ERROR **: service raised exception : IDL:omg.org/CORBA/COMM_FAILURE:1.0

I have been searching on google and the only issue that is ever brought up is that IIOP over IP server sockets in default setting and there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command line. I have tried both of these extensively and no luck, any help regarding this would be greatly appriciated.

Thanks!
------=_Part_8239_13877550.1202179177724-- From colding@42tools.com Tue Feb 5 07:58:28 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C37FC750050 for ; Tue, 5 Feb 2008 07:58:28 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 1903 hrs), (distance 18, link: ethernet/modem), [195.41.139.234] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zJxpJJVEEb-j for ; Tue, 5 Feb 2008 07:58:23 +0000 (GMT) Received: from mail.42tools.com (mail.42tools.com [195.41.139.234]) by menubar.gnome.org (Postfix) with ESMTP id D94C375008E for ; Tue, 5 Feb 2008 07:58:22 +0000 (GMT) Received: from [192.168.0.2] (unknown [85.218.191.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.42tools.com (Postfix) with ESMTP id 457B6F38044; Tue, 5 Feb 2008 07:58:20 +0000 (Local time zone must be set--see zic manual page) Subject: Re: getting ORBit examples to work across the network From: Jules Colding To: Amir Afrah In-Reply-To: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> Content-Type: text/plain Date: Tue, 05 Feb 2008 08:58:19 +0100 Message-Id: <1202198299.12072.259.camel@omc-2.42tools.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 07:58:28 -0000 Hi Amir, On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote: > Hi all, > > I have been trying to get the simple example of > echo-server/echo-client to work on 2 machines on the network but Ive > had no luck for almost 2 days, I can run both server and client on a > single machine but when i place the client on a different machine I > get the following error massage: > > ** ERROR **: service raised exception : > IDL:omg.org/CORBA/COMM_FAILURE:1.0 > > I have been searching on google and the only issue that is ever > brought up is that IIOP over IP server sockets in default setting and > there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 > in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command > line. I have tried both of these extensively and no luck, any help > regarding this would be greatly appriciated. I just need to give the client a reference to the server. You can do this by stringifying the server object, put the ior in a text file and feed this to the client. There are more elegant methods (corbaloc) but something like the above should be relatively easy to set up. HTH, jules From kcc1967@gmail.com Tue Feb 5 08:03:30 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 788FD750075 for ; Tue, 5 Feb 2008 08:03:30 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 5641 hrs), (distance 14, link: (Google 2)), [66.249.82.229] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CQ9NwaZIVc9B for ; Tue, 5 Feb 2008 08:03:25 +0000 (GMT) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by menubar.gnome.org (Postfix) with ESMTP id 7D33275008E for ; Tue, 5 Feb 2008 08:03:25 +0000 (GMT) Received: by wx-out-0506.google.com with SMTP id h26so2029456wxd.9 for ; Tue, 05 Feb 2008 00:03:23 -0800 (PST) Received: by 10.142.213.9 with SMTP id l9mr4009757wfg.71.1202198602721; Tue, 05 Feb 2008 00:03:22 -0800 (PST) Received: by 10.143.155.15 with HTTP; Tue, 5 Feb 2008 00:03:22 -0800 (PST) Message-ID: <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> Date: Tue, 5 Feb 2008 16:03:22 +0800 From: "Kuang-Chun Cheng" To: "Jules Colding" Subject: Re: getting ORBit examples to work across the network In-Reply-To: <1202198299.12072.259.camel@omc-2.42tools.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 08:03:30 -0000 Hi Amir, Make sure your client can see server by hostname. Two hosts connected OK by IP address is not enough for ORBit2, AFAIK. Regards KC On Feb 5, 2008 3:58 PM, Jules Colding wrote: > Hi Amir, > > > On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote: > > Hi all, > > > > I have been trying to get the simple example of > > echo-server/echo-client to work on 2 machines on the network but Ive > > had no luck for almost 2 days, I can run both server and client on a > > single machine but when i place the client on a different machine I > > get the following error massage: > > > > ** ERROR **: service raised exception : > > IDL:omg.org/CORBA/COMM_FAILURE:1.0 > > > > I have been searching on google and the only issue that is ever > > brought up is that IIOP over IP server sockets in default setting and > > there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 > > in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command > > line. I have tried both of these extensively and no luck, any help > > regarding this would be greatly appriciated. > > I just need to give the client a reference to the server. You can do > this by stringifying the server object, put the ior in a text file and > feed this to the client. > > There are more elegant methods (corbaloc) but something like the above > should be relatively easy to set up. > > HTH, > jules > > > _______________________________________________ > orbit-list mailing list > orbit-list@gnome.org > http://mail.gnome.org/mailman/listinfo/orbit-list > From colding@42tools.com Tue Feb 5 09:27:26 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCA48750172 for ; Tue, 5 Feb 2008 09:27:26 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 1906 hrs), (distance 18, link: ethernet/modem), [195.41.139.234] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ep2LeuH4M+UT for ; Tue, 5 Feb 2008 09:27:19 +0000 (GMT) Received: from mail.42tools.com (mail.42tools.com [195.41.139.234]) by menubar.gnome.org (Postfix) with ESMTP id A1D82750078 for ; Tue, 5 Feb 2008 09:27:19 +0000 (GMT) Received: from [192.168.0.2] (unknown [85.218.191.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.42tools.com (Postfix) with ESMTP id 8AFB3F38045; Tue, 5 Feb 2008 09:27:17 +0000 (Local time zone must be set--see zic manual page) Subject: Re: getting ORBit examples to work across the network From: Jules Colding To: Kuang-Chun Cheng In-Reply-To: <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> Content-Type: text/plain Date: Tue, 05 Feb 2008 10:27:16 +0100 Message-Id: <1202203636.12072.284.camel@omc-2.42tools.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 09:27:27 -0000 On Tue, 2008-02-05 at 16:03 +0800, Kuang-Chun Cheng wrote: > Hi Amir, > > Make sure your client can see server by hostname. Two hosts connected > OK by IP address is not enough for ORBit2, AFAIK. It is: 2005-07-25 Jules Colding * src/orb/orb-core/corba-orb.c: Added new ORB_init option, ORBNetID. Valid values for a hypothetical local host (FQDN:thor.test.com, IP:10.0.3.2): "local": all attempts to resolve the local host will be done using "localhost" "short": all attempts to resolve the local host will be done using "thor". "fqdn" : all attempts to resolve the local host will be done using "thor.test.com". "ipaddr: all attempts to resolve the local host will be done using "10.0.3.2". The new option will be evaluated after ORBLocalOnly but ORBLocalOnly will always take precedence. Best regards, jules > Regards > KC > > On Feb 5, 2008 3:58 PM, Jules Colding wrote: > > Hi Amir, > > > > > > On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote: > > > Hi all, > > > > > > I have been trying to get the simple example of > > > echo-server/echo-client to work on 2 machines on the network but Ive > > > had no luck for almost 2 days, I can run both server and client on a > > > single machine but when i place the client on a different machine I > > > get the following error massage: > > > > > > ** ERROR **: service raised exception : > > > IDL:omg.org/CORBA/COMM_FAILURE:1.0 > > > > > > I have been searching on google and the only issue that is ever > > > brought up is that IIOP over IP server sockets in default setting and > > > there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 > > > in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command > > > line. I have tried both of these extensively and no luck, any help > > > regarding this would be greatly appriciated. > > > > I just need to give the client a reference to the server. You can do > > this by stringifying the server object, put the ior in a text file and > > feed this to the client. > > > > There are more elegant methods (corbaloc) but something like the above > > should be relatively easy to set up. > > > > HTH, > > jules > > > > > > _______________________________________________ > > orbit-list mailing list > > orbit-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/orbit-list > > From kcc1967@gmail.com Tue Feb 5 12:39:05 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A6FF75014E for ; Tue, 5 Feb 2008 12:39:05 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.297 X-Spam-Level: X-Spam-Status: No, score=-2.297 tagged_above=-999 required=2 tests=[AWL=0.302, BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.4-2.6 (Google crawlbot) (firewall!) (up: 2203 hrs), (distance 14, link: (Google 2)), [64.233.184.225] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GzFPDWaF7beP for ; Tue, 5 Feb 2008 12:38:59 +0000 (GMT) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by menubar.gnome.org (Postfix) with ESMTP id AE8B2750119 for ; Tue, 5 Feb 2008 12:38:58 +0000 (GMT) Received: by wr-out-0506.google.com with SMTP id c49so1980894wra.1 for ; Tue, 05 Feb 2008 04:38:56 -0800 (PST) Received: by 10.142.177.7 with SMTP id z7mr4220282wfe.47.1202215134767; Tue, 05 Feb 2008 04:38:54 -0800 (PST) Received: by 10.143.155.15 with HTTP; Tue, 5 Feb 2008 04:38:54 -0800 (PST) Message-ID: <5eb4b0650802050438u1399381aj362a9b3e802e062@mail.gmail.com> Date: Tue, 5 Feb 2008 20:38:54 +0800 From: "Kuang-Chun Cheng" To: "Jules Colding" Subject: Re: getting ORBit examples to work across the network In-Reply-To: <1202203636.12072.284.camel@omc-2.42tools.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> <1202203636.12072.284.camel@omc-2.42tools.com> Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 12:39:05 -0000 On Feb 5, 2008 5:27 PM, Jules Colding wrote: > > On Tue, 2008-02-05 at 16:03 +0800, Kuang-Chun Cheng wrote: > > Hi Amir, > > > > Make sure your client can see server by hostname. Two hosts connected > > OK by IP address is not enough for ORBit2, AFAIK. > > It is: > > 2005-07-25 Jules Colding > > * src/orb/orb-core/corba-orb.c: Added new ORB_init option, ORBNetID. Cool ... I did not know this option before :-) KC > Valid values for a hypothetical local host (FQDN:thor.test.com, IP:10.0.3.2): > "local": all attempts to resolve the local host will be done using "localhost" > "short": all attempts to resolve the local host will be done using "thor". > "fqdn" : all attempts to resolve the local host will be done using "thor.test.com". > "ipaddr: all attempts to resolve the local host will be done using "10.0.3.2". > The new option will be evaluated after ORBLocalOnly but ORBLocalOnly will always take > precedence. > > Best regards, > jules > > > > > > Regards > > KC > > > > On Feb 5, 2008 3:58 PM, Jules Colding wrote: > > > Hi Amir, > > > > > > > > > On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote: > > > > Hi all, > > > > > > > > I have been trying to get the simple example of > > > > echo-server/echo-client to work on 2 machines on the network but Ive > > > > had no luck for almost 2 days, I can run both server and client on a > > > > single machine but when i place the client on a different machine I > > > > get the following error massage: > > > > > > > > ** ERROR **: service raised exception : > > > > IDL:omg.org/CORBA/COMM_FAILURE:1.0 > > > > > > > > I have been searching on google and the only issue that is ever > > > > brought up is that IIOP over IP server sockets in default setting and > > > > there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 > > > > in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command > > > > line. I have tried both of these extensively and no luck, any help > > > > regarding this would be greatly appriciated. > > > > > > I just need to give the client a reference to the server. You can do > > > this by stringifying the server object, put the ior in a text file and > > > feed this to the client. > > > > > > There are more elegant methods (corbaloc) but something like the above > > > should be relatively easy to set up. > > > > > > HTH, > > > jules > > > > > > > > > _______________________________________________ > > > orbit-list mailing list > > > orbit-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/orbit-list > > > > > From amirafrah@gmail.com Tue Feb 5 22:55:47 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDF98750119 for ; Tue, 5 Feb 2008 22:55:47 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.049 X-Spam-Level: X-Spam-Status: No, score=-2.049 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.175] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 6267 hrs), (distance 12, link: (Google 2)), [64.233.166.182] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eKSv0d6oTBLV for ; Tue, 5 Feb 2008 22:55:42 +0000 (GMT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 0EFDA7500E8 for ; Tue, 5 Feb 2008 22:55:41 +0000 (GMT) Received: by py-out-1112.google.com with SMTP id w49so3833252pyg.36 for ; Tue, 05 Feb 2008 14:55:40 -0800 (PST) Received: by 10.64.243.10 with SMTP id q10mr16948715qbh.15.1202252138115; Tue, 05 Feb 2008 14:55:38 -0800 (PST) Received: by 10.65.251.9 with HTTP; Tue, 5 Feb 2008 14:55:38 -0800 (PST) Message-ID: <89969fd00802051455v24c23f87q939ad790e57c5735@mail.gmail.com> Date: Tue, 5 Feb 2008 14:55:38 -0800 From: "Amir Afrah" To: "Jules Colding" Subject: Re: getting ORBit examples to work across the network In-Reply-To: <1202203636.12072.284.camel@omc-2.42tools.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11983_33184183.1202252138096" References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> <1202203636.12072.284.camel@omc-2.42tools.com> Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2008 22:55:48 -0000 ------=_Part_11983_33184183.1202252138096 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for the replies guys, So I figured out that the issue is with the way that the hostname is obtained: The command "/bin/hostname" on both of the machines that Im running simply return the machines name (i.e. machine-x) and this is what is used in the ior file, when i manually change the machines name to its IP address this issue is resolved since "/bin/hostname" then returns the IP address. Although this works it seems like a hack and Im sure there is a better way of doing it, any suggestions? Jules, I dont really know how to set the ORB_init option to use "ipaddr" since it doesnt seem to be doing it automatically. Thanks alot!! Amir On Feb 5, 2008 1:27 AM, Jules Colding wrote: > > On Tue, 2008-02-05 at 16:03 +0800, Kuang-Chun Cheng wrote: > > Hi Amir, > > > > Make sure your client can see server by hostname. Two hosts connected > > OK by IP address is not enough for ORBit2, AFAIK. > > It is: > > 2005-07-25 Jules Colding > > * src/orb/orb-core/corba-orb.c: Added new ORB_init option, > ORBNetID. > Valid values for a hypothetical local host (FQDN:thor.test.com, IP: > 10.0.3.2): > "local": all attempts to resolve the local host will be done > using "localhost" > "short": all attempts to resolve the local host will be done > using "thor". > "fqdn" : all attempts to resolve the local host will be done > using "thor.test.com". > "ipaddr: all attempts to resolve the local host will be done > using "10.0.3.2". > The new option will be evaluated after ORBLocalOnly but > ORBLocalOnly will always take > precedence. > > Best regards, > jules > > > > > Regards > > KC > > > > On Feb 5, 2008 3:58 PM, Jules Colding wrote: > > > Hi Amir, > > > > > > > > > On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote: > > > > Hi all, > > > > > > > > I have been trying to get the simple example of > > > > echo-server/echo-client to work on 2 machines on the network but Ive > > > > had no luck for almost 2 days, I can run both server and client on a > > > > single machine but when i place the client on a different machine I > > > > get the following error massage: > > > > > > > > ** ERROR **: service raised exception : > > > > IDL:omg.org/CORBA/COMM_FAILURE:1.0 > > > > > > > > I have been searching on google and the only issue that is ever > > > > brought up is that IIOP over IP server sockets in default setting > and > > > > there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1 > > > > in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to > command > > > > line. I have tried both of these extensively and no luck, any help > > > > regarding this would be greatly appriciated. > > > > > > I just need to give the client a reference to the server. You can do > > > this by stringifying the server object, put the ior in a text file and > > > feed this to the client. > > > > > > There are more elegant methods (corbaloc) but something like the above > > > should be relatively easy to set up. > > > > > > HTH, > > > jules > > > > > > > > > _______________________________________________ > > > orbit-list mailing list > > > orbit-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/orbit-list > > > > > -- Amir Afrah ------=_Part_11983_33184183.1202252138096 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for the replies guys,

So I figured out that the issue is with the way that the hostname is obtained: The command "/bin/hostname" on both of the machines that Im running simply return the machines name (i.e. machine-x) and this is what is used in the ior file, when i manually change the machines name to its IP address this issue is resolved since "/bin/hostname" then returns the IP address. Although this works it seems like a hack and Im sure there is a better way of doing it, any suggestions?
 Jules, I dont really know how to set the ORB_init option to use "ipaddr" since it doesnt seem to be doing it automatically. Thanks alot!!

Amir
 
On Feb 5, 2008 1:27 AM, Jules Colding <colding@42tools.com> wrote:

On Tue, 2008-02-05 at 16:03 +0800, Kuang-Chun Cheng wrote:
> Hi Amir,
>
> Make sure your client can see server by hostname.  Two hosts connected
> OK by IP address is not enough for ORBit2, AFAIK.

It is:

2005-07-25  Jules Colding  <colding@omesc.com>

       * src/orb/orb-core/corba-orb.c: Added new ORB_init option, ORBNetID.
       Valid values for a hypothetical local host (FQDN:thor.test.com, IP:10.0.3.2):
          "local": all attempts to resolve the local host will be done using "localhost"
          "short": all attempts to resolve the local host will be done using "thor".
          "fqdn" : all attempts to resolve the local host will be done using "thor.test.com".
          "ipaddr: all attempts to resolve the local host will be done using "10.0.3.2".
       The new option will be evaluated after ORBLocalOnly but ORBLocalOnly will always take
       precedence.

Best regards,
 jules



> Regards
> KC
>
> On Feb 5, 2008 3:58 PM, Jules Colding <colding@42tools.com> wrote:
> > Hi Amir,
> >
> >
> > On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote:
> > > Hi all,
> > >
> > > I have been trying to get the simple example of
> > > echo-server/echo-client to work on 2 machines on the network but Ive
> > > had no luck for almost 2 days, I can run both server and client on a
> > > single machine but when i place the client on a different machine I
> > > get the following error massage:
> > >
> > > ** ERROR **: service raised exception :
> > > IDL:omg.org/CORBA/COMM_FAILURE:1.0
> > >
> > > I have been searching on google and the only issue that is ever
> > > brought up is that IIOP over IP server sockets in default setting and
> > > there is 2 methods to change that setting 1) by adding ORBIIOPIPv4=1
> > > in /etc/orbitrc or ~/.orbitrc 2) by adding --ORBIIOPIPv4=1 to command
> > > line. I have tried both of these extensively and no luck, any help
> > > regarding this would be greatly appriciated.
> >
> > I just need to give the client a reference to the server. You can do
> > this by stringifying the server object, put the ior in a text file and
> > feed this to the client.
> >
> > There are more elegant methods (corbaloc) but something like the above
> > should be relatively easy to set up.
> >
> > HTH,
> >   jules
> >
> >
> > _______________________________________________
> > orbit-list mailing list
> > orbit-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/orbit-list
> >




--
Amir Afrah ------=_Part_11983_33184183.1202252138096-- From colding@42tools.com Wed Feb 6 08:06:56 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EA0A075007B for ; Wed, 6 Feb 2008 08:06:55 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_RG=0.077] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 1963 hrs), (distance 18, link: ethernet/modem), [195.41.139.234] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cfkhdvdv2jBJ for ; Wed, 6 Feb 2008 08:06:45 +0000 (GMT) Received: from mail.42tools.com (mail.42tools.com [195.41.139.234]) by menubar.gnome.org (Postfix) with ESMTP id 415817500EE for ; Wed, 6 Feb 2008 08:05:57 +0000 (GMT) Received: from [192.168.0.2] (unknown [85.218.191.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.42tools.com (Postfix) with ESMTP id 8D152F38050; Wed, 6 Feb 2008 08:05:54 +0000 (Local time zone must be set--see zic manual page) Subject: Re: getting ORBit examples to work across the network From: Jules Colding To: Amir Afrah In-Reply-To: <89969fd00802051455v24c23f87q939ad790e57c5735@mail.gmail.com> References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> <1202203636.12072.284.camel@omc-2.42tools.com> <89969fd00802051455v24c23f87q939ad790e57c5735@mail.gmail.com> Content-Type: text/plain Date: Wed, 06 Feb 2008 09:05:53 +0100 Message-Id: <1202285153.12072.369.camel@omc-2.42tools.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 08:06:56 -0000 Hi Amir, On Tue, 2008-02-05 at 14:55 -0800, Amir Afrah wrote: > Jules, I dont really know how to set the ORB_init option to use > "ipaddr" since it doesnt seem to be doing it automatically. Thanks > alot!! Just add this command line parameter to your app: --ORBNetID=ipaddr You can also customize argv and create the ORB explicitly: static CORBA_ORB create_orb(CORBA_Environment *ev) { CORBA_ORB orb = CORBA_OBJECT_NIL; int init_argc = 2; char **init_argv = (char**)malloc(sizeof(char*) * (init_argc)); if (!init_argv) return CORBA_OBJECT_NIL; init_argv[0] = "DUMMY_ARGV0"; init_argv[1] = "--ORBNetID=ipaddr"; // initialize the ORB orb = CORBA_ORB_init(&init_argc, init_argv, "orb_orbit-io-thread", ev); if (ORBIT2_EX(ev)) orb = CORBA_OBJECT_NIL; free(init_argv); return orb; } HTH, jules > Amir > > On Feb 5, 2008 1:27 AM, Jules Colding wrote: > > On Tue, 2008-02-05 at 16:03 +0800, Kuang-Chun Cheng wrote: > > Hi Amir, > > > > Make sure your client can see server by hostname. Two hosts > connected > > OK by IP address is not enough for ORBit2, AFAIK. > > > It is: > > 2005-07-25 Jules Colding > > * src/orb/orb-core/corba-orb.c: Added new ORB_init > option, ORBNetID. > Valid values for a hypothetical local host > (FQDN:thor.test.com, IP:10.0.3.2): > "local": all attempts to resolve the local host will > be done using "localhost" > "short": all attempts to resolve the local host will > be done using "thor". > "fqdn" : all attempts to resolve the local host will > be done using "thor.test.com". > "ipaddr: all attempts to resolve the local host will > be done using "10.0.3.2". > The new option will be evaluated after ORBLocalOnly but > ORBLocalOnly will always take > precedence. > > Best regards, > jules > > > > > > Regards > > KC > > > > On Feb 5, 2008 3:58 PM, Jules Colding > wrote: > > > Hi Amir, > > > > > > > > > On Mon, 2008-02-04 at 18:39 -0800, Amir Afrah wrote: > > > > Hi all, > > > > > > > > I have been trying to get the simple example of > > > > echo-server/echo-client to work on 2 machines on the > network but Ive > > > > had no luck for almost 2 days, I can run both server and > client on a > > > > single machine but when i place the client on a > different machine I > > > > get the following error massage: > > > > > > > > ** ERROR **: service raised exception : > > > > IDL:omg.org/CORBA/COMM_FAILURE:1.0 > > > > > > > > I have been searching on google and the only issue that > is ever > > > > brought up is that IIOP over IP server sockets in > default setting and > > > > there is 2 methods to change that setting 1) by adding > ORBIIOPIPv4=1 > > > > in /etc/orbitrc or ~/.orbitrc 2) by adding > --ORBIIOPIPv4=1 to command > > > > line. I have tried both of these extensively and no > luck, any help > > > > regarding this would be greatly appriciated. > > > > > > I just need to give the client a reference to the server. > You can do > > > this by stringifying the server object, put the ior in a > text file and > > > feed this to the client. > > > > > > There are more elegant methods (corbaloc) but something > like the above > > > should be relatively easy to set up. > > > > > > HTH, > > > jules > > > > > > > > > _______________________________________________ > > > orbit-list mailing list > > > orbit-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/orbit-list > > > > > > > > > -- > Amir Afrah From colding@42tools.com Wed Feb 6 08:12:03 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF092750188 for ; Wed, 6 Feb 2008 08:12:03 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_RG=0.077, UPPERCASE_25_50=0] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 1963 hrs), (distance 18, link: ethernet/modem), [195.41.139.234] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L8WvrbguBEvj for ; Wed, 6 Feb 2008 08:11:59 +0000 (GMT) Received: from mail.42tools.com (mail.42tools.com [195.41.139.234]) by menubar.gnome.org (Postfix) with ESMTP id 54C8D7500F1 for ; Wed, 6 Feb 2008 08:11:37 +0000 (GMT) Received: from [192.168.0.2] (unknown [85.218.191.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.42tools.com (Postfix) with ESMTP id 465F0F38060; Wed, 6 Feb 2008 08:11:35 +0000 (Local time zone must be set--see zic manual page) Subject: Re: getting ORBit examples to work across the network From: Jules Colding To: Amir Afrah In-Reply-To: <1202285153.12072.369.camel@omc-2.42tools.com> References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> <1202203636.12072.284.camel@omc-2.42tools.com> <89969fd00802051455v24c23f87q939ad790e57c5735@mail.gmail.com> <1202285153.12072.369.camel@omc-2.42tools.com> Content-Type: text/plain Date: Wed, 06 Feb 2008 09:11:34 +0100 Message-Id: <1202285494.12072.371.camel@omc-2.42tools.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 08:12:04 -0000 On Wed, 2008-02-06 at 09:05 +0100, Jules Colding wrote: > You can also customize argv and create the ORB explicitly: > > static CORBA_ORB > create_orb(CORBA_Environment *ev) > { > CORBA_ORB orb = CORBA_OBJECT_NIL; > int init_argc = 2; > char **init_argv = (char**)malloc(sizeof(char*) * (init_argc)); > if (!init_argv) > return CORBA_OBJECT_NIL; > > init_argv[0] = "DUMMY_ARGV0"; > init_argv[1] = "--ORBNetID=ipaddr"; > > // initialize the ORB > orb = CORBA_ORB_init(&init_argc, init_argv, "orb_orbit-io-thread", ev); > if (ORBIT2_EX(ev)) > orb = CORBA_OBJECT_NIL; > > free(init_argv); > > return orb; > } Forgot this: #undef ORBIT2_EX #define ORBIT2_EX(_ev_) ((NULL != _ev_) && ((_ev_)->_major != CORBA_NO_EXCEPTION)) -- jules From amirafrah@gmail.com Wed Feb 6 22:25:53 2008 Return-Path: X-Original-To: orbit-list@gnome.org Delivered-To: orbit-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 71D2C750050 for ; Wed, 6 Feb 2008 22:25:53 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.025 X-Spam-Level: X-Spam-Status: No, score=-2.025 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, TW_RG=0.077, UPPERCASE_25_50=0] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 6502 hrs), (distance 12, link: (Google 2)), [64.233.166.176] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qpzXYnwLLNDa for ; Wed, 6 Feb 2008 22:25:50 +0000 (GMT) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 10893750008 for ; Wed, 6 Feb 2008 22:25:49 +0000 (GMT) Received: by py-out-1112.google.com with SMTP id w49so4362456pyg.36 for ; Wed, 06 Feb 2008 14:25:48 -0800 (PST) Received: by 10.65.216.19 with SMTP id t19mr19868723qbq.95.1202336748009; Wed, 06 Feb 2008 14:25:48 -0800 (PST) Received: by 10.65.251.9 with HTTP; Wed, 6 Feb 2008 14:25:47 -0800 (PST) Message-ID: <89969fd00802061425w3b2c0d98gc6f2943851120ed@mail.gmail.com> Date: Wed, 6 Feb 2008 14:25:47 -0800 From: "Amir Afrah" To: "Jules Colding" Subject: Re: getting ORBit examples to work across the network In-Reply-To: <1202285494.12072.371.camel@omc-2.42tools.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15968_12625571.1202336747885" References: <89969fd00802041839h1fcae1e0nbbfa9fc0305b6b33@mail.gmail.com> <1202198299.12072.259.camel@omc-2.42tools.com> <5eb4b0650802050003m6d783adeg30906507bc2307c6@mail.gmail.com> <1202203636.12072.284.camel@omc-2.42tools.com> <89969fd00802051455v24c23f87q939ad790e57c5735@mail.gmail.com> <1202285153.12072.369.camel@omc-2.42tools.com> <1202285494.12072.371.camel@omc-2.42tools.com> Cc: orbit-list@gnome.org X-BeenThere: orbit-list@gnome.org X-Mailman-Version: 2.1.8 Precedence: list List-Id: ORBit CORBA implementation use & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 22:25:53 -0000 ------=_Part_15968_12625571.1202336747885 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I just included ORBNetID=ipaddr in ~/.orbitrc and it seems to take care of it Thanks alot for the help! On Feb 6, 2008 12:11 AM, Jules Colding wrote: > > On Wed, 2008-02-06 at 09:05 +0100, Jules Colding wrote: > > You can also customize argv and create the ORB explicitly: > > > > static CORBA_ORB > > create_orb(CORBA_Environment *ev) > > { > > CORBA_ORB orb = CORBA_OBJECT_NIL; > > int init_argc = 2; > > char **init_argv = (char**)malloc(sizeof(char*) * (init_argc)); > > if (!init_argv) > > return CORBA_OBJECT_NIL; > > > > init_argv[0] = "DUMMY_ARGV0"; > > init_argv[1] = "--ORBNetID=ipaddr"; > > > > // initialize the ORB > > orb = CORBA_ORB_init(&init_argc, init_argv, "orb_orbit-io-thread", > ev); > > if (ORBIT2_EX(ev)) > > orb = CORBA_OBJECT_NIL; > > > > free(init_argv); > > > > return orb; > > } > > > Forgot this: > > #undef ORBIT2_EX > #define ORBIT2_EX(_ev_) ((NULL != _ev_) && ((_ev_)->_major != > CORBA_NO_EXCEPTION)) > > > -- > jules > > > -- Amir Afrah ------=_Part_15968_12625571.1202336747885 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline  I just included ORBNetID=ipaddr in ~/.orbitrc and it seems to take care of it
Thanks alot for the help!

On Feb 6, 2008 12:11 AM, Jules Colding <colding@42tools.com> wrote:

On Wed, 2008-02-06 at 09:05 +0100, Jules Colding wrote:
> You can also customize argv and create the ORB explicitly:
>
> static CORBA_ORB
> create_orb(CORBA_Environment *ev)
> {
>       CORBA_ORB orb = CORBA_OBJECT_NIL;
>       int init_argc = 2;
>       char **init_argv = (char**)malloc(sizeof(char*) * (init_argc));
>       if (!init_argv)
>               return CORBA_OBJECT_NIL;
>
>       init_argv[0] = "DUMMY_ARGV0";
>       init_argv[1] = "--ORBNetID=ipaddr";
>
>       // initialize the ORB
>       orb = CORBA_ORB_init(&init_argc, init_argv, "orb_orbit-io-thread", ev);
>       if (ORBIT2_EX(ev))
>               orb = CORBA_OBJECT_NIL;
>
>       free(init_argv);
>
>       return orb;
> }


Forgot this:

#undef ORBIT2_EX
#define ORBIT2_EX(_ev_) ((NULL != _ev_) && ((_ev_)->_major != CORBA_NO_EXCEPTION))


--
 jules





--
Amir Afrah ------=_Part_15968_12625571.1202336747885--