[omniORB] omniORB within Windows service - Startup problems

joe80 schroen.wurst at gmx.net
Mon Apr 14 03:57:48 BST 2008


Hello everyone,

in our company we're using omniORB within an application that's installed as
a Windows service. This works fine if the service is started while Windows
is already running.

But when the service is started automatically at Windows boot time, the
application hangs when trying to resolve the RootPOA (
orb->resolve_initial_references("RootPOA") ) until the service control
manager intervenes and kills it. In the meantime I've isolated the to call
to listen() in tcpEndpoint::Bind() as point-of-failure. I've rerouted the
omniORB trace messages to one of our log files and appended the output to
this posting - may that's of some help.

We're using omniORB 4.1.0 compiled with MS Visual C++ 8.0 (VS2005). The
effect could be observed on both Windows XP Pro and Windows Server 2003.

Any help regarding this problem is appreciated. Thanks in advance,
joe80



This is the output of omniORB's logging when started at Windows startup:


10:46:21,281 I ..........(788) omniORB: Distribution date: Tue Nov 28
13:27:23 GMT 2006 dgrisby

10:46:21,296 I ..........(788) omniORB: Warning: WSAIoctl
SIO_ADDRESS_LIST_QUERY failed.
Unable to obtain the list of all IPv6 interface addresses.
WSAGetLastError() = 10038

10:46:21,296 I ..........(788) omniORB: My addresses are: 
omniORB: 192.168.64.135
omniORB: 127.0.0.1

10:46:21,296 I ..........(788) omniORB: Maximum supported GIOP version is
1.2

10:46:21,296 I ..........(788) omniORB: Native char code sets: UTF-8
ISO-8859-1.

10:46:21,296 I ..........(788) omniORB: Transmission char code sets:
UTF-8(1.2) UTF-8(1.1) ISO-8859-1(1.2) ISO-8859-1(1.1) ISO-8859-1(1.0).

10:46:21,296 I ..........(788) omniORB: Native wide char code sets: UTF-16.

10:46:21,296 I ..........(788) omniORB: Transmission wide char code sets:
UTF-16(1.2).

10:46:21,296 I ..........(788) omniORB: Initialising omniDynamic library.

10:46:21,296 I ..........(788) omniORB: Current configuration is as follows:
omniORB:   DefaultInitRef (file) = 
omniORB:   DefaultInitRef (args) = 
omniORB:   abortOnInternalError = 0
omniORB:   abortOnNativeException = 0
omniORB:   acceptBiDirectionalGIOP = 0
omniORB:   acceptMisalignedTcIndirections = 0
omniORB:   bootstrapAgentHostname = 
omniORB:   bootstrapAgentPort = 900
omniORB:   clientCallTimeOutPeriod = 0
omniORB:   clientConnectTimeOutPeriod = 0
omniORB:   clientTransportRule = * unix,ssl,tcp
omniORB:   configFile = C:\\OMNIORB.CFG
omniORB:   connectionWatchImmediate = 0
omniORB:   connectionWatchPeriod = 50000
omniORB:   copyValuesInLocalCalls = 1
omniORB:   diiThrowsSysExceptions = 0
omniORB:   dumpConfiguration = 0
omniORB:   endPoint = giop:tcp::
omniORB:   endPointPublish = addr
omniORB:   giopMaxMsgSize = 2097152
omniORB:   giopTargetAddressMode = KeyAddr
omniORB:   id = omniORB4
omniORB:   idleThreadTimeout = 10
omniORB:   inConScanPeriod = 180
omniORB:   lcdMode = 0
omniORB:   maxGIOPConnectionPerServer = 5
omniORB:   maxGIOPVersion = 1.2
omniORB:   maxInterleavedCallsPerConnection = 5
omniORB:   maxServerThreadPerConnection = 100
omniORB:   maxServerThreadPoolSize = 100
omniORB:   maxSocketRecv = 131072
omniORB:   maxSocketSend = 131072
omniORB:   nativeCharCodeSet = ISO-8859-1
omniORB:   nativeWCharCodeSet = UTF-16
omniORB:   objectTableSize = 0
omniORB:   offerBiDirectionalGIOP = 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:   traceExceptions = 1
omniORB:   traceFile = [stderr]
omniORB:   traceInvocationReturns = 0
omniORB:   traceInvocations = 0
omniORB:   traceLevel = 40
omniORB:   traceThreadId = 0
omniORB:   traceTime = 0
omniORB:   unixTransportDirectory = /tmp/omni-%u
omniORB:   unixTransportPermission =  777
omniORB:   useTypeCodeIndirections = 1
omniORB:   verifyObjectExistsAndType = 1

10:46:21,296 I ..........(788) omniORB: Initialising incoming endpoints.

10:46:21,296 I ..........(788) omniORB: Instantiate endpoint 'giop:tcp::0'

10:46:21,296 I ..........(788) omniORB: Bind to address 0.0.0.0

-- 
View this message in context: http://www.nabble.com/omniORB-within-Windows-service---Startup-problems-tp16627313p16627313.html
Sent from the OmniORB - User mailing list archive at Nabble.com.




More information about the omniORB-list mailing list