[omniORB] omniNames on a PowerPC

Andreas Groch groch at promessmontage.de
Thu Jul 28 13:02:09 BST 2005


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:        groch at 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


More information about the omniORB-list mailing list