Discussion:
[omniORB] omniNames on a PowerPC
Andreas Groch
2005-07-28 16:02:45 UTC
Permalink
Hi all,

I have some trouble to get the Naming service working on a PowerPC.


It works when I try to connect to the Naming service from a server
application running on a different PC.

when I perform:

CORBA::Object obj = resolve_initial_references(?NameService?);
CosNaming::NamingContext_var root_Context =
CosNaming::NamingContext::_narrow(obj);

The console output of the PC says:

omniORB: Distribution date: Thu Apr 14 17:19:57 BST 2005 dgrisby
omniORB: Initialising omniDynamic library.
omniORB: Creating ref to remote: key<NameService>
target id : IDL:omg.org/CORBA/Object:1.0
most derived id:
omniORB: Initial reference `NameService' resolved from configuration
file.
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: Creating ref to remote: key<NameService>
target id : IDL:omg.org/CosNaming/NamingContext:1.0
most derived id:

The console output of the PPC says:

omniORB: Accepted connection from giop:tcp:192.168.1.100:32777 because
of this rule: "* unix,ssl,tcp"


But it does NOT work when I try to connect to the Naming service from
the same PC:

The console output of the PPC says:

omniORB: Distribution date: Thu Apr 14 17:19:57 BST 2005 dgrisby
omniORB: Initialising omniDynamic library.
omniORB: Creating ref to remote: key<NameService>
target id : IDL:omg.org/CORBA/Object:1.0
most derived id:
omniORB: Initial reference `NameService' resolved from configuration
file.
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: throw giopStream::CommFailure from
giopStream.cc:1076(0,NO,TRANSIENT_ConnectFailed)
omniORB: throw TRANSIENT from omniObjRef.cc:759
(NO,TRANSIENT_ConnectFailed)

It seems that the ?CosNaming::NamingContext::_narrow(obj);? instruction
throws an exception, but I don?t know why. I edited the InitRef line of
the omniORB.cfg file in the PPC like that:

InitRef = NameService=corbaname::pro

Or

InitRef = NameService=corbaname::192.168.1.104

Or

InitRef = NameService=corbaname::localhost

(pro is the hostname of PPC, 192.168.1.104 is the IP address of the PPC)

Any help would be greatly appreciated.

Best regards/Mit freundlichen Gr??en

Andreas Groch
.........................
Promess Gesellschaft f?r Montage- und Pr?fsysteme mbH
Nunsdorfer Ring. 29
D-12277 Berlin

Tel.: 0049 - (0)30 - 62 88 72 - 0
Fax: 0049 - (0)30 - 62 88 72 - 59
Mobil: 0049 - (0)
E-Mail: ***@promessmontage.de
Web: <file:///\\www.promessmontage.de\> www.promessmontage.de

........................

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050728/67aad6c4/attachment-0001.htm
Thomas Lockhart
2005-07-28 20:40:30 UTC
Permalink
Post by Andreas Groch
I have some trouble to get the Naming service working on a PowerPC.
Make sure that the IOR or reference to the naming service uses the name
of the server computer as that computer thinks it is. Also, my
references always have a form which includes "NameService" in the
string, like

-ORBInitRef NameService=corbaloc::mymachine.mydomain:10011/NameService

hth

- Tom
jkiddo
2009-08-19 20:26:05 UTC
Permalink
What powerpc architecture are you using? Could you please post the
<platform>.mk file? I have problems myself just compiling to the powerpc
405.
Post by Andreas Groch
Hi all,
I have some trouble to get the Naming service working on a PowerPC.
It works when I try to connect to the Naming service from a server
application running on a different PC.
CORBA::Object obj = resolve_initial_references(?NameService?);
CosNaming::NamingContext_var root_Context =
CosNaming::NamingContext::_narrow(obj);
omniORB: Distribution date: Thu Apr 14 17:19:57 BST 2005 dgrisby
omniORB: Initialising omniDynamic library.
omniORB: Creating ref to remote: key<NameService>
target id : IDL:omg.org/CORBA/Object:1.0
omniORB: Initial reference `NameService' resolved from configuration
file.
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: Creating ref to remote: key<NameService>
target id : IDL:omg.org/CosNaming/NamingContext:1.0
omniORB: Accepted connection from giop:tcp:192.168.1.100:32777 because
of this rule: "* unix,ssl,tcp"
But it does NOT work when I try to connect to the Naming service from
omniORB: Distribution date: Thu Apr 14 17:19:57 BST 2005 dgrisby
omniORB: Initialising omniDynamic library.
omniORB: Creating ref to remote: key<NameService>
target id : IDL:omg.org/CORBA/Object:1.0
omniORB: Initial reference `NameService' resolved from configuration
file.
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: throw giopStream::CommFailure from
giopStream.cc:1076(0,NO,TRANSIENT_ConnectFailed)
omniORB: throw TRANSIENT from omniObjRef.cc:759
(NO,TRANSIENT_ConnectFailed)
It seems that the ?CosNaming::NamingContext::_narrow(obj);? instruction
throws an exception, but I don?t know why. I edited the InitRef line of
InitRef = NameService=corbaname::pro
Or
InitRef = NameService=corbaname::192.168.1.104
Or
InitRef = NameService=corbaname::localhost
(pro is the hostname of PPC, 192.168.1.104 is the IP address of the PPC)
Any help would be greatly appreciated.
Best regards/Mit freundlichen Gr??en
Andreas Groch
.........................
Promess Gesellschaft f?r Montage- und Pr?fsysteme mbH
Nunsdorfer Ring. 29
D-12277 Berlin
Tel.: 0049 - (0)30 - 62 88 72 - 0
Fax: 0049 - (0)30 - 62 88 72 - 59
Mobil: 0049 - (0)
Web: <file:///\\www.promessmontage.de\> www.promessmontage.de
........................
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
View this message in context: http://www.nabble.com/omniNames-on-a-PowerPC-tp502529p25045156.html
Sent from the OmniORB - User mailing list archive at Nabble.com.
Loading...