[omniORB] Problem connecting from internet to multi home server
Damian Minkov
damian at space-comm.com
Thu May 19 13:20:46 BST 2005
I've just tried not using java built in orb, but jacorb and the result
is the same :
[jacorb.orb.iiop] INFO : Connected to xxxxxxxx:2809 from local port 2437
[jacorb.orb.giop] INFO : ClientConnectionManager: created new conn to
target 10.1.1.2:39338
[jacorb.orb.iiop] INFO : Retrying to connect to 10.1.1.2:39338
it is some issue with configuring omniorb. can anybody give some little
help with this ?
Damian Minkov wrote:
> I'm using a java client connecting to linux server.
> The server is located on host with 2 ethernets.
> 1. real IP internet (83.......)
> 2. internal network (10.1.1.2)
> Ethereal shows that client connects to server and then after some
> packets the client throws exception :
>
> 2005-5-18 16:40:41
> com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
> WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
> IIOP_CLEAR_TEXT; hostname: 10.1.1.2; port: 39299"
> org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed:
> No at
> com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown
> Source)
>
> The client tries to connect to the internal IP address of server. But
> they are in different networks so it fails.
> I tried with bidirectional but with no luck.
>
> Here is the config omniORB4.cfg, and the output of the starting of
> server with "-ORBtraceLevel 30"
>
>
> Any ideas, may be some missconfiguration ?
>
> ################## Config :
>
> traceExceptions = 0
> traceInvocations = 0
> traceThreadId = 0
> dumpConfiguration = 0
>
> maxGIOPVersion = 1.2
> giopMaxMsgSize = 2097152 # 2 MBytes.
> strictIIOP = 1
> lcdMode = 0
> tcAliasExpand = 0
> useTypeCodeIndirections = 1
>
> acceptMisalignedTcIndirections = 1
> scanGranularity = 5
> nativeCharCodeSet = ISO-8859-1
> nativeWCharCodeSet = UTF-16
> omniORB_27_CompatibleAnyExtraction = 0
> abortOnInternalError = 0
>
> # Client Side
> Options #
> InitRef = NameService=corbaname::<hostname intenet dns>
> DefaultInitRef = corbaloc::
>
> clientTransportRule = 10.1.1.0/255.255.255.0 unix,tcp
> clientTransportRule = * bidir,tcp
> clientCallTimeOutPeriod = 0
> outConScanPeriod = 120
> maxGIOPConnectionPerServer = 5
> oneCallPerConnection = 1
> offerBiDirectionalGIOP = 1
>
> diiThrowsSysExceptions = 1
>
> verifyObjectExistsAndType = 1
> giopTargetAddressMode = 0
>
> bootstrapAgentHostname = <hostname intenet dns>
> bootstrapAgentPort = 900
>
> # Server Side
> Options #
>
> #endPoint = giop:tcp:83.148.106.106:12345
> #endPointPublishAllIFs=true
>
> serverTransportRule = 10.1.1.0/255.255.255.0 unix,tcp
> serverTransportRule = * bidir,tcp
> serverCallTimeOutPeriod = 0
> inConScanPeriod = 180
> threadPerConnectionPolicy = 1
> maxServerThreadPerConnection = 100
> maxServerThreadPoolSize = 100
> threadPerConnectionUpperLimit = 10000
> threadPerConnectionLowerLimit = 9000
> threadPoolWatchConnection = 1
> acceptBiDirectionalGIOP = 1
> unixTransportDirectory = /tmp/omni-%u
> unixTransportPermission = 0777
> supportCurrent = 1
> objectTableSize = 0
> poaHoldRequestTimeout = 0
> supportBootstrapAgent = 1
>
>
>
> ################## Server start :
> ./Server -ORBtraceLevel 30
> omniORB: Read from configuration file "/etc/omniORB4.cfg".
> omniORB: Distribution date: Thu Apr 14 17:19:57 BST 2005 dgrisby
> omniORB: My addresses are:
> omniORB: 127.0.0.1
> omniORB: 10.1.1.2
> omniORB: 83.148.106.106
> omniORB: 83.148.106.105
> 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) UTF-8(1.1).
> omniORB: Native wide char code sets: UTF-16.
> omniORB: Transmission wide char code sets: UTF-16(1.2).
> omniORB: Initialising omniDynamic library.
> omniORB: Client policies specify a bidirectional connection, but no
> object adapters have been initialised. Using a non-bidirectional
> connection.
> omniORB: Creating ref to remote: key<INIT>
> target id : omg.org/CORBA/InitialReferences:1.0
> most derived id: omg.org/CORBA/InitialReferences:1.0
> omniORB: Current configuration is as follows:
> omniORB: DefaultInitRef (file) = corbaloc::
> omniORB: DefaultInitRef (args) =
> omniORB: abortOnInternalError = 0
> omniORB: acceptBiDirectionalGIOP = 1
> omniORB: acceptMisalignedTcIndirections = 1
> omniORB: bootstrapAgentHostname = <hostname internet DNS>
> omniORB: bootstrapAgentPort = 900
> omniORB: clientCallTimeOutPeriod = 0
> omniORB: clientTransportRule = 10.1.1.0/255.255.255.0 unix,tcp
> omniORB: clientTransportRule = * bidir,tcp
> omniORB: diiThrowsSysExceptions = 1
> 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 = 1
> 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 = 10.1.1.0/255.255.255.0 unix,tcp
> omniORB: serverTransportRule = * bidir,tcp
> omniORB: strictIIOP = 1
> omniORB: supportBootstrapAgent = 1
> omniORB: supportCurrent = 1
> omniORB: supportPerThreadTimeOut = 0
> omniORB: tcAliasExpand = 0
> omniORB: threadPerConnectionLowerLimit = 9000
> omniORB: threadPerConnectionPolicy = 1
> omniORB: threadPerConnectionUpperLimit = 10000
> omniORB: threadPoolWatchConnection = 1
> omniORB: traceExceptions = 1
> omniORB: traceInvocations = 0
> omniORB: traceLevel = 30
> 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.
> omniORB: Adding root<0> (activating) to object table.
> omniORB: State root<0> (activating) -> active
> omniORB: Creating ref to local: root<0>
> target id : IDL:Data/ServiceA:1.0
> most derived id: IDL:Data/ServiceA:1.0
> 'IOR:010000001600000049444c3a446174612f53657276696365413a312e30000000010000000000000060000000010102000900000031302e312e312e32000083990e000000fef4458b4200004e47000000000000000200000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100'
>
> omniORB: Trying to resolve initial reference `NameService'
> with configuration file default `corbaloc::/NameService'
> omniORB: Creating ref to remote: key<NameService>
> target id : IDL:omg.org/CORBA/Object:1.0
> most derived id:
> omniORB: Initial reference `NameService' resolved with configuration
> file ORBDefaultInitRef prefix.
> omniORB: Bidirectional client using normal connection because it is
> only GIOP 1.0
> omniORB: Client attempt to connect to giop:tcp:localhost:2809
> omniORB: Client opened connection to giop:tcp:127.0.0.1:2809
> omniORB: sendChunk: to giop:tcp:127.0.0.1:2809 100 bytes
> omniORB:
> 4749 4f50 0100 0100 5800 0000 0000 0000 GIOP....X.......
> 0200 0000 016e 6e65 0b00 0000 4e61 6d65 .....nne....Name
> 5365 7276 6963 6574 0600 0000 5f69 735f Servicet...._is_
> 6100 494f 0000 0000 2800 0000 4944 4c3a a.IO....(...IDL:
> 6f6d 672e 6f72 672f 436f 734e 616d 696e omg.org/CosNamin
> 672f 4e61 6d69 6e67 436f 6e74 6578 743a g/NamingContext:
> 312e 3000 1.0.
> omniORB: AsyncInvoker: thread id = 1 has started. Total threads = 2
> omniORB: AsyncInvoker: thread id = 2 has started. Total threads = 2
> omniORB: giopRendezvouser task execute for giop:tcp:10.1.1.2:39299
> omniORB: Scavenger task execute.
> omniORB: inputMessage: from giop:tcp:127.0.0.1:2809 25 bytes
> omniORB:
> 4749 4f50 0100 0101 0d00 0000 0000 0000 GIOP............
> 0200 0000 0000 0000 01 .........
> omniORB: Creating ref to remote: key<NameService>
> target id : IDL:omg.org/CosNaming/NamingContext:1.0
> most derived id:
> omniORB: Bidirectional client using normal connection because it is
> only GIOP 1.0
> omniORB: sendChunk: to giop:tcp:127.0.0.1:2809 228 bytes
> omniORB: 128 bytes out of 228
> 4749 4f50 0100 0100 d800 0000 0000 0000 GIOP............
> 0400 0000 016e 6e65 0b00 0000 4e61 6d65 .....nne....Name
> 5365 7276 6963 6574 0700 0000 7265 6269 Servicet....rebi
> 6e64 004f 0000 0000 0100 0000 1100 0000 nd.O............
> 4461 7461 5365 7276 6963 654e 616d 6531 DataServiceName1
> 002f 4e61 0100 0000 006f 6e74 1600 0000 ./Na.....ont....
> 4944 4c3a 4461 7461 2f53 6572 7669 6365 IDL:Data/Service
> 413a 312e 3000 0000 0100 0000 0000 0000 A:1.0...........
> omniORB: inputMessage: from giop:tcp:127.0.0.1:2809 24 bytes
> omniORB:
> 4749 4f50 0100 0101 0c00 0000 0000 0000 GIOP............
> 0400 0000 0000 0000 ........
> omniORB: Scan for idle connections (1116423673,225506000)
> omniORB: Scavenger reduce idle count for strand 0x80666f0 to 23
> omniORB: Scan for idle connections done (1116423673,225506000).
> omniORB: Scan for idle connections (1116423678,229122000)
> omniORB: Scavenger reduce idle count for strand 0x80666f0 to 22
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
--
Best Regards,
Damian Minkov
COSMOS Software Enterprises, Ltd.
SIP: 1010 at cosmo-tel.com
Tel: (+359-2) 856-19-43
400-55-65
Mobile: (+359-88) 853-28-25
E-Mail: damian at space-comm.com
http://www.space-comm.com
Post address:
P. O. Box 941,
1000 Sofia,
Bulgaria
Office address:
ap. 3, fl. 1, entr. A,
"Preki pat" str., No. 16,
kv. Pavlovo,
1618 Sofia,
Bulgaria
More information about the omniORB-list
mailing list