[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mico-announce
Subject:    [mico-devel] IIOP connection error
From:       "Jon Azpiazu" <jon.azpiazu () gmail ! com>
Date:       2006-03-08 15:05:48
Message-ID: 2bcfecb60603080705h320eb94fm862e4df108482d40 () mail ! gmail ! com
[Download RAW message or body]

Hi,

I am trying to run a sample based on the example from
mico-2.3.12/doc/mico/examples/services/naming

If I run both, the server and the client on the same host, everything
works fine. But when I run the naming service daemon and the server on
one host, and the client on the other host, I get the following error:

(server)
server host:  192.168.1.162
starting Naming Service daemon ...
nsd -ORBIIOPAddr inet:192.168.1.162:12456
starting TheTime server ...
./timeserver -ORBInitRef NameService=corbaloc::192.168.1.162:12456/NameService
Binding TheTime in the Naming Service ... done.
timeserver: Running.
press enter to finish


(client)
server host:  192.168.1.162
running client ...
./timeclient -ORBInitRef NameService=corbaloc::192.168.1.162:12456/NameService
Using 0 as a concurrency model of whole orb.
Using thread-pool concurrency model.
Using client concurrency model: threaded
MICO::InputHandler::InputHandler()
ActiveMsgQueue::ActiveMsgQueue(): (0x8057ef0)
MICO::MTDispatcher::MTDispatcher()
ActiveMsgQueue::ActiveMsgQueue(): (0x80580d0)
IIOP: server listening on inet:0.0.0.0:33027 IIOP version 1.0
binding to inet:localhost.localdomain:33027
void_array::__fast_insert (0x8058b80):    return 0
ORB::add_invoke (MsgId=2)
IIOP: making new GIOP 1.0 connection to inet:192.168.1.162:12456
GIOPCodec::GIOPCodec(): 0x8056c38
MICO::GIOPConnReader::GIOPConnReader(0x805aa60)
GIOP: Codeset negotiation with inet:192.168.1.162:12456 using GIOP version 1.0
GIOP: sending Request to inet:192.168.1.162:12456 msgid is 2
IIOPProxy::add_invoke: rec=0x8056bb0, id=0x8057458, msgid=2)
MICO::GIOPConn::output (CORBA::Buffer *b)
     b: 0x805ac58
  Out Data  47 49 4f 50 01 00 01 00 58 00 00 00 00 00 00 00  GIOP....X.......
            02 00 00 00 01 00 00 00 0b 00 00 00 4e 61 6d 65  ............Name
            53 65 72 76 69 63 65 00 06 00 00 00 5f 69 73 5f  Service....._is_
            61 00 00 00 00 00 00 00 28 00 00 00 49 44 4c 3a  a.......(...IDL:
            6f 6d 67 2e 6f 72 67 2f 43 6f 73 4e 61 6d 69 6e  omg.org/CosNamin
            67 2f 4e 61 6d 69 6e 67 43 6f 6e 74 65 78 74 3a  g/NamingContext:
            31 2e 30 00                                      1.0.
ORB::wait for 0x8057458
MICO::GIOPConnReader::_run()
MICO::GIOPConn::input_ready ()
  conn: 0x805aa60
    ev: GIOPConnCallback::InputReady
 t_mod: 0
  pool:
  conn:
   req:
_activerefs: 2
   In Data  47 49 4f 50 01 00 01 01 0d 00 00 00 00 00 00 00  GIOP............
            02 00 00 00 00 00 00 00 01                       .........
IIOP: incoming data from inet:192.168.1.162:12456
GIOP: incoming Reply from inet:192.168.1.162:12456 for msgid 2 status is 0
ORB::get_invoke (MsgId=2)
IIOPProxy::pull_invoke: id=0x8057458, rec = 0x8056bb0
IIOPProxy::handle_invoke_reply: rec=0x8056bb0)
IIOPProxy::del_invoke: rec = 0x8056bb0
MICO::IIOPProxy::exec_invoke_reply (obj=0, *req=0x8057418, *conn=0x805aa60)
ORB::del_invoke (MsgId=2)
timeclient: Looking up Timeserver ... ORB::add_invoke (MsgId=3)
GIOP: sending Request to inet:192.168.1.162:12456 msgid is 3
IIOPProxy::add_invoke: rec=0x8056bb0, id=0x8056790, msgid=3)
MICO::GIOPConn::output (CORBA::Buffer *b)
     b: 0x805ac58
  Out Data  47 49 4f 50 01 00 01 00 41 00 00 00 00 00 00 00  GIOP....A.......
            03 00 00 00 01 00 00 00 0b 00 00 00 4e 61 6d 65  ............Name
            53 65 72 76 69 63 65 00 08 00 00 00 72 65 73 6f  Service.....reso
            6c 76 65 00 00 00 00 00 01 00 00 00 08 00 00 00  lve.............
            54 68 65 54 69 6d 65 00 01 00 00 00 00           TheTime......
ORB::wait for 0x8056790
GIOPConn::deref: 0x805aa60, refcnt: 2, activerefs: 2
MICO::GIOPConn::input_ready ()
  conn: 0x805aa60
    ev: GIOPConnCallback::InputReady
 t_mod: 0
  pool:
  conn:
   req:
_activerefs: 2
   In Data  47 49 4f 50 01 00 01 01 84 00 00 00 00 00 00 00  GIOP............
            03 00 00 00 00 00 00 00 10 00 00 00 49 44 4c 3a  ............IDL:
            54 68 65 54 69 6d 65 3a 31 2e 30 00 02 00 00 00  TheTime:1.0.....
            00 00 00 00 2c 00 00 00 01 01 00 00 0a 00 00 00  ....,...........
            31 32 37 2e 30 2e 30 2e 31 00 31 dd 14 00 00 00  127.0.0.1.1Ý....
            2f 32 34 36 33 38 2f 31 31 34 31 38 32 37 35 38  /24638/114182758
            33 2f 5f 30 01 00 00 00 24 00 00 00 01 00 00 00  3/_0....$.......
            01 00 00 00 01 00 00 00 14 00 00 00 01 00 00 00  ................
            01 00 01 00 00 00 00 00 09 01 01 00 00 00 00 00  ................
IIOP: incoming data from inet:192.168.1.162:12456
GIOP: incoming Reply from inet:192.168.1.162:12456 for msgid 3 status is 0
ORB::get_invoke (MsgId=3)
IIOPProxy::pull_invoke: id=0x8056790, rec = 0x8056bb0
IIOPProxy::handle_invoke_reply: rec=0x8056bb0)
IIOPProxy::del_invoke: rec = 0x8056bb0
MICO::IIOPProxy::exec_invoke_reply (obj=0, *req=0xbffff7c8, *conn=0x805aa60)
ORB::del_invoke (MsgId=3)
done.
ORB::add_invoke (MsgId=4)
IIOP: making new GIOP 1.0 connection to inet:127.0.0.1:56625
IIOP: connect to inet:127.0.0.1:56625 failed: Connection refused
ORB::wait for 0x80573b8
ORB::del_invoke (MsgId=4)
uncaught MICO exception: IDL:omg.org/CORBA/COMM_FAILURE:1.0 (0, not-completed)
Exception stack trace:
/home/jazpiazu/bin/mico-2.3.12//lib/libmico2.3.12.so(CORBA::Exception::Exception()+0x87)
 [0x402ba6c7]
/home/jazpiazu/bin/mico-2.3.12//lib/libmico2.3.12.so(CORBA::SystemException::SystemException(CORBA::SystemException
 const&)+0x28) [0x402bb578]
/home/jazpiazu/bin/mico-2.3.12//lib/libmico2.3.12.so(CORBA::COMM_FAILURE::COMM_FAILURE(CORBA::COMM_FAILURE
 const&)+0x29) [0x403a6559]
/home/jazpiazu/bin/mico-2.3.12//lib/libmico2.3.12.so(CORBA::COMM_FAILURE::_throwit()
const+0x34) [0x403a6744]
./timeclient(__gxx_personality_v0+0x132) [0x804c27e]
./timeclient(__gxx_personality_v0+0x1f4) [0x804c340]
./timeclient(TheTime_stub::getTime()+0x62) [0x804cb02]
./timeclient(main+0x17e) [0x804d8de]
/lib/tls/libc.so.6(__libc_start_main+0xd0) [0x406d9ed0]
./timeclient(__gxx_personality_v0+0x95) [0x804c1e1]
GIOPConn::deref: 0x805aa60, refcnt: 1, activerefs: 2
./client_test: line 8: 19207 Abortado


The error seems to happen when the client tries to do the narrow()

Some help, please

Thanks,

Jon

_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic