WG: Problem by calling add_binding
"Decoster Jean Louis" <[email protected]> Thu, 22 Dec 2005 08:39:26 +0100
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Message-ID | <[email protected]> |
Hello Dave,
I found the solution for my problem with bootManager->add_binding(objId,s_placetable);. In fact the RTTI flag of my compiler was not ON.
I can create the link object-key; but when I start the client I receive a connection failure. With a ref.file my system works correctly. Can you give me some types how to proceed to solve this failure?
ObjDb = orb.string_to_object("corbaloc::127.0.0.1/ myObjectId ");
---------- Start ----------
org.omg.CORBA.TRANSIENT: attempt to establish connection failed: java.net.ConnectException: Connection refused: connect vmcid: 0x4f4f0000 minor code: 1 completed: No
at com.ooc.OCI.IIOP.Connector_impl.connect(Connector_impl.java:130)
at com.ooc.OB.GIOPClient.getWorker(GIOPClient.java:224)
at com.ooc.OB.GIOPClient.bind(GIOPClient.java:620)
at com.ooc.OB.DowncallStub.locate_request(DowncallStub.java:518)
at com.ooc.CORBA.Delegate._OB_getDowncallStub(Delegate.java:1248)
at com.ooc.CORBA.Delegate.request(Delegate.java:602)
at com.ooc.CORBA.Delegate.is_a(Delegate.java:401)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at eLockidl.placetableCorbaHelper.narrow(placetableCorbaHelper.java:96)
at eLockPlace.Start.run(Start.java:76)
at eLockPlace.Start.main(Start.java:31)
Thanks a lot for your response. Have a happy Christmas and a happy new year.
JOYEUSES FÊTES DE NOÊL ET MES MEILLEURES VOEUX POUR 2006
Regards
Jean-Louis
________________________________
Von: [email protected] [mailto:[email protected]] Im Auftrag von Decoster Jean Louis
Gesendet: Mittwoch, 21. Dezember 2005 09:22
An: David Weir
Cc: [email protected]
Betreff: [OB-Users] Problem by calling add_binding
Hello Dave,
First many thanks for your support. I have read Orbacus documentation about factory objects using C++ and learned quite a lot. Of course I will try to take care of your suggestions in the future.
At this moment my system goes wrong when I try to bind an ObjectId with an object to enable clients to use Corbaloc facility? I can use the object to write a reference file.
// Try to write a reference file
CORBA::String_var s;
FILE* fileref;
s = orb->object_to_string(s_placetable);
fileref = fopen("C:/placetable.ref","w");
fprintf(fileref,"%s",s);
fclose(fileref);
// Try to generate a n object-key to be used by clients
PortableServer::ObjectId_var objId = PortableServer::string_to_ObjectId("myObjectId");
bootManager->add_binding(objId,s_placetable);
Nicht abgefangene Ausnahme in eLOckDb_Cons.exe (MSVCRTD.DLL): 0xC0000005: Access Violation.
Nicht abgefangene Ausnahme in eLOckDb_Cons.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
I thought that my code could be correct; but it's not. Using the present information's can you tell me what I have to check to get my system running or can you tell me what you need more.
Merci à l'équipe de support d'Orbacus
Regards,
Jean-Louis
WWW: http://www.orbacus.com
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html
ATT07123.txt
(text/plain, 235 B)
_______________________________________________ OB-Users Mailing List - [email protected] http://mail.ooc.nf.ca/mailman/listinfo/ob-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html