[omniORB] Client gets TRANSIENT_ConnectFailed exception.

Jochen Behrens jochen.behrens at barco.com
Mon Aug 18 21:22:35 BST 2003


Dependent on the network driver state of the first non-loopback 
interface of my server host the client application is able to get access 
to a server application or the call returns with the 
TRANSIENT_ConnectFailed exception. The server host is a gateway and the 
client is only able to get access via the second network interface.

Lets say the server application is started with

 > serverApp -ORBendPoint giop:tcp:<a-net>: -ORBendPoint giop:tcp:<b-net>

where <a-net> is the first non-loopback interface and <b-net> the second 
one.

The client host is able to ping the  server host only  via the <b-net> 
network address.
The client application gets an initial reference <a-ref> to the server 
application via the corbaloc/omniINSPOA approach. With the initial 
reference it gets another reference <b-ref> of a servant that is 
activated by the rootPOA in the same process space. Calls on this 
reference succeed with the above omniORB settings in case the interface 
driver of <a-net> is started (e.g. with ifconfig eth0 up).
 
But if I stop the first non-loopback interface on server side with

# ifconfig eth0 down

and restart client and server application the client is not able anymore 
to get access. Each subsequent call returns with the above exception. 
That puzzles me, because client and server are only connectable via 
<b-net> and (in my opinion) the state of the other interface shall not 
affect client/server behaviour.

Do I have to initiate a location forward in the client on application 
level? Maybe I do not understand the concept of multiple network support 
and location forwarding.

Any suggestions are welcome. I've added a client trace with level 50. 
Hope this will help a bit

Regards,
Jochen


client trace:

jabbah:~/work/orbtest(188)> subscriber -sh1 dsc-gw -ORBtraceLevel 50 
-ORBclientCallTimeOutPeriod 3000
omniORB: Configuration file "/etc/omniORB.cfg" either does not exist or 
is not a file. No settings read.
omniORB: Distribution date: Fri Mar 14 11:27:17 GMT 2003 dgrisby
omniORB: My addresses are:
omniORB: 127.0.0.1
omniORB: 172.16.2.196
omniORB: Maximum supported GIOP version is 1.2
omniORB: Native char code sets: ISO-8859-1 UTF-8.
omniORB: Transmission char code sets: ISO-8859-1(1.2) ISO-8859-1(1.1) 
ISO-8859-1(1.0) UTF-8(1.2).
omniORB: Native wide char code sets: UTF-16.
omniORB: Transmission wide char code sets: UTF-16(1.2).
omniORB: Information: the omniDynamic library is not linked.
omniORB: Current configuration is as follows:
omniORB:   DefaultInitRef (file) =
omniORB:   DefaultInitRef (args) =
omniORB:   abortOnInternalError = 0
omniORB:   acceptBiDirectionalGIOP = 0
omniORB:   acceptMisalignedTcIndirections = 0
omniORB:   bootstrapAgentHostname =
omniORB:   bootstrapAgentPort = 900
omniORB:   clientCallTimeOutPeriod = 3000
omniORB:   clientTransportRule = * unix,ssl,tcp
omniORB:   diiThrowsSysExceptions = 0
omniORB:   dumpConfiguration = 0
omniORB:   endPoint = giop:tcp::
omniORB:   endPointPublishAllIFs = 0
omniORB:   giopMaxMsgSize = 2097152
omniORB:   giopTargetAddressMode = KeyAddr
omniORB:   id = omniORB4
omniORB:   inConScanPeriod = 180
omniORB:   lcdMode = 0
omniORB:   maxGIOPConnectionPerServer = 5
omniORB:   maxGIOPVersion = 1.2
omniORB:   maxInterleavedCallsPerConnection = 5
omniORB:   maxServerThreadPerConnection = 100
omniORB:   maxServerThreadPoolSize = 100
omniORB:   nativeCharCodeSet = ISO-8859-1
omniORB:   nativeWCharCodeSet = UTF-16
omniORB:   objectTableSize = 0
omniORB:   offerBiDirectionalGIOP = 0
omniORB:   omniORB_27_CompatibleAnyExtraction = 0
omniORB:   oneCallPerConnection = 1
omniORB:   outConScanPeriod = 120
omniORB:   poaHoldRequestTimeout = 0
omniORB:   poaUniquePersistentSystemIds = 1
omniORB:   principal = [Null]
omniORB:   scanGranularity = 5
omniORB:   serverCallTimeOutPeriod = 0
omniORB:   serverTransportRule = * unix,ssl,tcp
omniORB:   strictIIOP = 1
omniORB:   supportBootstrapAgent = 0
omniORB:   supportCurrent = 1
omniORB:   supportPerThreadTimeOut = 0
omniORB:   tcAliasExpand = 0
omniORB:   threadPerConnectionLowerLimit = 9000
omniORB:   threadPerConnectionPolicy = 1
omniORB:   threadPerConnectionUpperLimit = 10000
omniORB:   threadPoolWatchConnection = 1
omniORB:   traceInvocations = 0
omniORB:   traceLevel = 50
omniORB:   traceThreadId = 0
omniORB:   unixTransportDirectory = /tmp/omni-%u
omniORB:   unixTransportPermission =  777
omniORB:   useTypeCodeIndirections = 1
omniORB:   verifyObjectExistsAndType = 1
omniORB: Initialising incoming endpoints.
omniORB: Bind to address 0.0.0.0.
omniORB: Starting serving incoming endpoints.
SubscriberImpl::SubscriberImpl
omniORB: Adding root<0> (activating) to object table.
omniORB: State root<0> (activating) -> active
omniORB: Creating ref to local: root<0>
 target id      : IDL:PS/Subscriber:1.0
 most derived id: IDL:PS/Subscriber:1.0
omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 1
omniORB: giopRendezvouser task execute for giop:tcp:172.16.2.196:57419
omniORB: Creating ref to remote: boa<0x4576656e7453657276696365>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id:
omniORB: AsyncInvoker: thread id = 2 has started. Total threads = 2
omniORB: Scavenger task execute.
omniORB: Client opened connection to giop:tcp:172.16.1.29:5555
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 84 bytes
omniORB:
4749 4f50 0100 0100 4800 0000 0000 0000 GIOP....H.......
0200 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0600 0000 5f69 735f tService...._is_
6100 0000 0000 0000 1800 0000 4944 4c3a a...........IDL:
5053 2f45 7665 6e74 5365 7276 6963 653a PS/EventService:
312e 3000                               1.0.
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 25 bytes
omniORB:
4749 4f50 0100 0101 0d00 0000 0000 0000 GIOP............
0200 0000 0000 0000 01                  .........
omniORB: Creating ref to remote: boa<0x4576656e7453657276696365>
 target id      : IDL:PS/EventService:1.0
 most derived id:
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 56 bytes
omniORB:
4749 4f50 0100 0100 2c00 0000 0000 0000 GIOP....,.......
0400 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0500 0000 5069 6e67 tService....Ping
0000 0000 0000 0000                     ........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 24 bytes
omniORB:
4749 4f50 0100 0101 0c00 0000 0000 0000 GIOP............
0400 0000 0000 0000                     ........
omniORB: ObjRef() -- deleted.
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 64 bytes
omniORB:
4749 4f50 0100 0100 3400 0000 0000 0000 GIOP....4.......
0600 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0d00 0000 4765 7450 tService....GetP
7562 6c69 7368 6572 0000 0000 0000 0000 ublisher........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 234 bytes
omniORB:
4749 4f50 0100 0101 de00 0000 0000 0000 GIOP............
0600 0000 0000 0000 1500 0000 4944 4c3a ............IDL:
5053 2f50 7562 6c69 7368 6572 3a31 2e30 PS/Publisher:1.0
0000 0000 0100 0000 0000 0000 aa00 0000 ................
0101 0200 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 b315 0000 0e00 0000 207.251.........
feb0 1841 3f00 001d d400 0000 0000 0000 ...A?...........
0400 0000 0000 0000 0800 0000 0100 0000 ................
0054 5441 0100 0000 1c00 0000 0100 0000 .TTA............
0100 0100 0100 0000 0100 0105 0901 0100 ................
0100 0000 0901 0100 0300 0000 1a00 0000 ................
0100 0000 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 c4a7 0000 0300 0000 207.251.........
1600 0000 0100 0000 0c00 0000 3137 322e ............172.
3136 2e31 2e32 3900 c5a7                16.1.29...
omniORB: Creating ref to remote: root<0>
 target id      : IDL:PS/Publisher:1.0
 most derived id: IDL:PS/Publisher:1.0
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(0,NO,TRANSIENT_ConnectFailed)
omniORB: Scan for idle connections (1061230778,167557000)
omniORB: Scavenger reduce idle count for strand 0x81ce1e0 to 23
omniORB: Scan for idle connections done (1061230778,167557000).
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 64 bytes
omniORB:
4749 4f50 0100 0100 3400 0000 0000 0000 GIOP....4.......
0800 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0d00 0000 4765 7450 tService....GetP
7562 6c69 7368 6572 0000 0000 0000 0000 ublisher........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 234 bytes
omniORB:
4749 4f50 0100 0101 de00 0000 0000 0000 GIOP............
0800 0000 0000 0000 1500 0000 4944 4c3a ............IDL:
5053 2f50 7562 6c69 7368 6572 3a31 2e30 PS/Publisher:1.0
0000 0000 0100 0000 0000 0000 aa00 0000 ................
0101 0200 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 b315 0000 0e00 0000 207.251.........
feb0 1841 3f00 001d d400 0000 0000 0000 ...A?...........
0400 0000 0000 0000 0800 0000 0100 0000 ................
0054 5441 0100 0000 1c00 0000 0100 0000 .TTA............
0100 0100 0100 0000 0100 0105 0901 0100 ................
0100 0000 0901 0100 0300 0000 1a00 0000 ................
0100 0000 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 c4a7 0000 0300 0000 207.251.........
1600 0000 0100 0000 0c00 0000 3137 322e ............172.
3136 2e31 2e32 3900 c5a7                16.1.29...
omniORB: Creating ref to remote: root<0>
 target id      : IDL:PS/Publisher:1.0
 most derived id: IDL:PS/Publisher:1.0
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(0,NO,TRANSIENT_ConnectFailed)
omniORB: Scan for idle connections (1061230783,174711000)
omniORB: Scavenger reduce idle count for strand 0x81ce1e0 to 23
omniORB: Scan for idle connections done (1061230783,174711000).
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 64 bytes
omniORB:
4749 4f50 0100 0100 3400 0000 0000 0000 GIOP....4.......
0a00 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0d00 0000 4765 7450 tService....GetP
7562 6c69 7368 6572 0000 0000 0000 0000 ublisher........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 234 bytes
omniORB:
4749 4f50 0100 0101 de00 0000 0000 0000 GIOP............
0a00 0000 0000 0000 1500 0000 4944 4c3a ............IDL:
5053 2f50 7562 6c69 7368 6572 3a31 2e30 PS/Publisher:1.0
0000 0000 0100 0000 0000 0000 aa00 0000 ................
0101 0200 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 b315 0000 0e00 0000 207.251.........
feb0 1841 3f00 001d d400 0000 0000 0000 ...A?...........
0400 0000 0000 0000 0800 0000 0100 0000 ................
0054 5441 0100 0000 1c00 0000 0100 0000 .TTA............
0100 0100 0100 0000 0100 0105 0901 0100 ................
0100 0000 0901 0100 0300 0000 1a00 0000 ................
0100 0000 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 c4a7 0000 0300 0000 207.251.........
1600 0000 0100 0000 0c00 0000 3137 322e ............172.
3136 2e31 2e32 3900 c5a7                16.1.29...
omniORB: Creating ref to remote: root<0>
 target id      : IDL:PS/Publisher:1.0
 most derived id: IDL:PS/Publisher:1.0
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(0,NO,TRANSIENT_ConnectFailed)
omniORB: Scan for idle connections (1061230788,184536000)
omniORB: Scavenger reduce idle count for strand 0x81ce1e0 to 23
omniORB: Scan for idle connections done (1061230788,184536000).
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 64 bytes
omniORB:
4749 4f50 0100 0100 3400 0000 0000 0000 GIOP....4.......
0c00 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0d00 0000 4765 7450 tService....GetP
7562 6c69 7368 6572 0000 0000 0000 0000 ublisher........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 234 bytes
omniORB:
4749 4f50 0100 0101 de00 0000 0000 0000 GIOP............
0c00 0000 0000 0000 1500 0000 4944 4c3a ............IDL:
5053 2f50 7562 6c69 7368 6572 3a31 2e30 PS/Publisher:1.0
0000 0000 0100 0000 0000 0000 aa00 0000 ................
0101 0200 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 b315 0000 0e00 0000 207.251.........
feb0 1841 3f00 001d d400 0000 0000 0000 ...A?...........
0400 0000 0000 0000 0800 0000 0100 0000 ................
0054 5441 0100 0000 1c00 0000 0100 0000 .TTA............
0100 0100 0100 0000 0100 0105 0901 0100 ................
0100 0000 0901 0100 0300 0000 1a00 0000 ................
0100 0000 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 c4a7 0000 0300 0000 207.251.........
1600 0000 0100 0000 0c00 0000 3137 322e ............172.
3136 2e31 2e32 3900 c5a7                16.1.29...
omniORB: Creating ref to remote: root<0>
 target id      : IDL:PS/Publisher:1.0
 most derived id: IDL:PS/Publisher:1.0
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(0,NO,TRANSIENT_ConnectFailed)
omniORB: Scan for idle connections (1061230793,194315000)
omniORB: Scavenger reduce idle count for strand 0x81ce1e0 to 23
omniORB: Scan for idle connections done (1061230793,194315000).
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 64 bytes
omniORB:
4749 4f50 0100 0100 3400 0000 0000 0000 GIOP....4.......
0e00 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0d00 0000 4765 7450 tService....GetP
7562 6c69 7368 6572 0000 0000 0000 0000 ublisher........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 234 bytes
omniORB:
4749 4f50 0100 0101 de00 0000 0000 0000 GIOP............
0e00 0000 0000 0000 1500 0000 4944 4c3a ............IDL:
5053 2f50 7562 6c69 7368 6572 3a31 2e30 PS/Publisher:1.0
0000 0000 0100 0000 0000 0000 aa00 0000 ................
0101 0200 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 b315 0000 0e00 0000 207.251.........
feb0 1841 3f00 001d d400 0000 0000 0000 ...A?...........
0400 0000 0000 0000 0800 0000 0100 0000 ................
0054 5441 0100 0000 1c00 0000 0100 0000 .TTA............
0100 0100 0100 0000 0100 0105 0901 0100 ................
0100 0000 0901 0100 0300 0000 1a00 0000 ................
0100 0000 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 c4a7 0000 0300 0000 207.251.........
1600 0000 0100 0000 0c00 0000 3137 322e ............172.
3136 2e31 2e32 3900 c5a7                16.1.29...
omniORB: Creating ref to remote: root<0>
 target id      : IDL:PS/Publisher:1.0
 most derived id: IDL:PS/Publisher:1.0
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(1,NO,TRANSIENT_ConnectFailed)
omniORB: LocateRequest to remote: root<0>
omniORB: throw giopStream::CommFailure from 
giopStream.cc:1052(0,NO,TRANSIENT_ConnectFailed)
omniORB: Scan for idle connections (1061230798,204111000)
omniORB: Scavenger reduce idle count for strand 0x81ce1e0 to 23
omniORB: Scan for idle connections done (1061230798,204111000).
omniORB: sendChunk: to giop:tcp:172.16.1.29:5555 64 bytes
omniORB:
4749 4f50 0100 0100 3400 0000 0000 0000 GIOP....4.......
1000 0000 0100 0000 0c00 0000 4576 656e ............Even
7453 6572 7669 6365 0d00 0000 4765 7450 tService....GetP
7562 6c69 7368 6572 0000 0000 0000 0000 ublisher........
omniORB: inputMessage: from giop:tcp:172.16.1.29:5555 234 bytes
omniORB:
4749 4f50 0100 0101 de00 0000 0000 0000 GIOP............
1000 0000 0000 0000 1500 0000 4944 4c3a ............IDL:
5053 2f50 7562 6c69 7368 6572 3a31 2e30 PS/Publisher:1.0
0000 0000 0100 0000 0000 0000 aa00 0000 ................
0101 0200 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 b315 0000 0e00 0000 207.251.........
feb0 1841 3f00 001d d400 0000 0000 0000 ...A?...........
0400 0000 0000 0000 0800 0000 0100 0000 ................
0054 5441 0100 0000 1c00 0000 0100 0000 .TTA............
0100 0100 0100 0000 0100 0105 0901 0100 ................
0100 0000 0901 0100 0300 0000 1a00 0000 ................
0100 0000 1000 0000 3139 322e 3136 382e ........192.168.
3230 372e 3235 3100 c4a7 0000 0300 0000 207.251.........
1600 0000 0100 0000 0c00 0000 3137 322e ............172.
3136 2e31 2e32 3900 c5a7                16.1.29...
omniORB: Creating ref to remote: root<0>
 target id      : IDL:PS/Publisher:1.0
 most derived id: IDL:PS/Publisher:1.0
omniORB: LocateRequest to remote: root<0>





-- 
-----------------------------------
Jochen Behrens
Software Engineer

Barco Orthogon AG
Hastedter Osterdeich 222
28207 Bremen

Tel +49-421-20122-447
Fax +49-421-20122-999
www.barco-orthogon.com
Jochen.Behrens at barco.com





More information about the omniORB-list mailing list