[omniORB] Valuetype factory issue omniiORBpy

Jonathan Walsh jwalsh at atl.lmco.com
Fri Jul 22 09:49:56 BST 2005


Duncan Grisby wrote:

>On Thursday 21 July, Jonathan Walsh wrote:
>
>[...]
>  
>
>>omniORB: sendChunk: to giop:tcp:166.17.242.101:34817 244 bytes
>>omniORB:
>>4749 4f50 0102 0100 e800 0000 0800 0000 GIOP............
>>0300 0000 0000 0000 2300 0000 1401 0f00 ........#.......
>>4e53 545f 01e0 426e dc03 0001 0000 0001 NST_..Bn........
>>0000 0001 0000 0001 0000 0002 0000 0020 ...............
>>1200 0000 636f 6e6e 6563 745f 636f 6d70 ....connect_comp
>>5f64 6174 6100 3d20 0000 0000 0100 0000 _data.= ........
>>    
>>
>
>This shows omniORB calling an operation called connect_comp_data...
>
>  
>
>>omniORB: inputMessage: from giop:tcp:166.17.242.101:34817 72 bytes
>>omniORB:
>>4749 4f50 0102 0101 3c00 0000 0800 0000 GIOP....<.......
>>0100 0000 0000 0000 2c00 0000 4944 4c3a ........,...IDL:
>>6f6d 672e 6f72 672f 436f 6d70 6f6e 656e omg.org/Componen
>>7473 2f41 6c72 6561 6479 436f 6e6e 6563 ts/AlreadyConnec
>>7465 643a 312e 3000                     ted:1.0.
>>    
>>
>
>The operation raises a user exception of Components::AlreadyConnected...
>
>  
>
>>omniORB: throw UNKNOWN from pyCallDescriptor.cc:233
>>(NO,UNKNOWN_UserException)
>>    
>>
>
>But omniORB thinks the exception was not declared in the IDL, so it
>throws a CORBA::Unknown exception.
>
>You should check that the idl on client and server match each other.
>
>This is a different problem to the one you originally mentioned, where
>you were getting an exception about having no value factory.
>
>Cheers,
>
>Duncan.
>
>  
>
I'm sorry it had been a while, I ran the wrong part of the program!  I
attached the output again.  This time I double checked it's definatly
the NoValueFactory exception from subscribe_data_avaiable (sorry again
for wasting time).  Thanks for looking at this.

-Jonathan Walsh
-------------- next part --------------
bash-2.05b$ /home/jwalsh/projects/PythonToCIAO/BasicSP/python/pyBMClosedED.py -ORBtraceLevel 40
omniORB: Configuration file "/etc/omniORB.cfg" either does not exist or is not a file. No settings read.
omniORB: Distribution date: Wed Jun 29 18:21:45 BST 2005 dgrisby
omniORB: My addresses are:
omniORB: 127.0.0.1
omniORB: 166.17.242.101
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: 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 = 0
omniORB:   clientTransportRule = * unix,ssl,tcp
omniORB:   copyValuesInLocalCalls = 1
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:   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:   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
omniORB: omniORBpy distribution date: Wed Jun 29 18:29:11 BST 2005 dgrisby
omniORB: Python thread state scavenger start.
omniORB: Initialising incoming endpoints.
omniORB: Bind to address 0.0.0.0.
omniORB: Starting serving incoming endpoints.
omniORB: AsyncInvoker: thread id = 2 has started. Total threads = 1
omniORB: giopRendezvouser task execute for giop:tcp:166.17.242.101:35141
omniORB: Creating ref to remote: key<....NSTD..B0.......................>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/BMDevice:1.0
omniORB: Creating Python ref to remote: key<....NSTD..B0.......................> target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/BMDevice:1.0
omniORB: omniRemoteIdentity deleted.
omniORB: ObjRef(IDL:BasicSP/BMDevice:1.0) -- deleted.
omniORB: Creating ref to remote: key<....NSTD..B0.......................>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/BMDisplay:1.0
omniORB: Creating Python ref to remote: key<....NSTD..B0.......................> target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/BMDisplay:1.0
omniORB: omniRemoteIdentity deleted.
omniORB: ObjRef(IDL:BasicSP/BMDisplay:1.0) -- deleted.
Successfully connected to neighbor components
omniORB: LocateRequest to remote: key<....NSTD..B0.......................>
omniORB: Client attempt to connect to giop:tcp:brielle:35132
omniORB: Client opened connection to giop:tcp:166.17.242.101:35132
omniORB: sendChunk: to giop:tcp:166.17.242.101:35132 59 bytes
omniORB:
4749 4f50 0102 0103 2f00 0000 0200 0000 GIOP..../.......
0000 300a 2300 0000 1401 0f00 4e53 5444 ..0.#.......NSTD
e9e0 4230 d404 0001 0000 0001 0000 0003 ..B0............
0000 0001 0000 0004 0000 00             ...........
omniORB: inputMessage: from giop:tcp:166.17.242.101:35132 20 bytes
omniORB:
4749 4f50 0102 0104 0800 0000 0200 0000 GIOP............
0100 0000                               ....
omniORB:  send codeset service context: (ISO-8859-1,UTF-16)
omniORB: sendChunk: to giop:tcp:166.17.242.101:35132 112 bytes
omniORB:
4749 4f50 0102 0100 6400 0000 0400 0000 GIOP....d.......
0300 0000 0000 0000 2300 0000 1401 0f00 ........#.......
4e53 5444 e9e0 4230 d404 0001 0000 0001 NSTD..B0........
0000 0003 0000 0001 0000 0004 0000 0020 ...............
1200 0000 7072 6f76 6964 655f 6461 7461 ....provide_data
5f72 6561 6400 3d20 0100 0000 0100 0000 _read.= ........
0c00 0000 0100 0000 0100 0100 0901 0100 ................
omniORB: inputMessage: from giop:tcp:166.17.242.101:35132 204 bytes
omniORB:
4749 4f50 0102 0101 c000 0000 0400 0000 GIOP............
0000 0000 0000 0000 1900 0000 4944 4c3a ............IDL:
4261 7369 6353 502f 5265 6164 4461 7461 BasicSP/ReadData
3a31 2e30 0000 0000 0100 0000 0000 0000 :1.0............
8800 0000 0101 0200 0800 0000 6272 6965 ............brie
6c6c 6500 3c89 0000 3d00 0000 1401 0f00 lle.<...=.......
4e55 5444 e9e0 426f d504 0002 0000 0001 NUTD..Bo........
0000 0001 0000 0001 0000 0042 6173 6963 ...........Basic
5350 2d42 4d44 6576 6963 652d 6964 645f SP-BMDevice-idd_
6461 7461 5f72 6561 6400 0000 0200 0000 data_read.......
0000 0000 0800 0000 0100 0000 004f 4154 .............OAT
0100 0000 1400 0000 0141 e600 0100 0100 .........A......
0000 0000 0901 0100 0000 0000           ............
omniORB: Creating Python ref to remote: key<....NUTD..Bo...................BasicSP.BMDevice.idd.data.read>
 target id      : IDL:BasicSP/ReadData:1.0
 most derived id: IDL:BasicSP/ReadData:1.0
omniORB: Creating new Python state for thread id -1218541472
omniORB: Adding root<0> (activating) to object table.
omniORB: State root<0> (activating) -> active
omniORB: Creating ref to local: root<0>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/ReadData:1.0
omniORB: Creating Python ref to local: root<0>
 target id      : IDL:BasicSP/ReadData:1.0
 most derived id: IDL:BasicSP/ReadData:1.0
omniORB: ObjRef(IDL:BasicSP/ReadData:1.0) -- deleted.
omniORB: LocateRequest to remote: key<....NSTD..B0.......................>
omniORB: sendChunk: to giop:tcp:166.17.242.101:35132 59 bytes
omniORB:
4749 4f50 0102 0103 2f00 0000 0600 0000 GIOP..../.......
0000 0000 2300 0000 1401 0f00 4e53 5444 ....#.......NSTD
e9e0 4230 d404 0001 0000 0001 0000 0001 ..B0............
0000 0001 0000 0002 0000 00             ...........
omniORB: inputMessage: from giop:tcp:166.17.242.101:35132 20 bytes
omniORB:
4749 4f50 0102 0104 0800 0000 0600 0000 GIOP............
0100 0000                               ....
omniORB: sendChunk: to giop:tcp:166.17.242.101:35132 244 bytes
omniORB:
4749 4f50 0102 0100 e800 0000 0800 0000 GIOP............
0300 0000 0000 0000 2300 0000 1401 0f00 ........#.......
4e53 5444 e9e0 4230 d404 0001 0000 0001 NSTD..B0........
0000 0001 0000 0001 0000 0002 0000 0020 ...............
1200 0000 636f 6e6e 6563 745f 636f 6d70 ....connect_comp
5f64 6174 6100 3d20 0000 0000 0100 0000 _data.= ........
1900 0000 4944 4c3a 4261 7369 6353 502f ....IDL:BasicSP/
5265 6164 4461 7461 3a31 2e30 000a 6f6d ReadData:1.0..om
0100 0000 0000 0000 6800 0000 0101 0200 ........h.......
0f00 0000 3136 362e 3137 2e32 3432 2e31 ....166.17.242.1
3031 0000 4589 0000 0e00 0000 fe5a e9e0 01..E........Z..
4200 0036 3a00 0000 0000 0000 0200 0000 B..6:...........
0000 0000 0800 0000 0100 0000 0054 5441 .............TTA
0100 0000 1c00 0000 0100 0000 0100 0100 ................
0100 0000 0100 0105 0901 0100 0100 0000 ................
0901 0100                               ....
omniORB: inputMessage: from giop:tcp:166.17.242.101:35132 24 bytes
omniORB:
4749 4f50 0102 0101 0c00 0000 0800 0000 GIOP............
0000 0000 0000 0000                     ........
omniORB: Adding root<1> (activating) to object table.
omniORB: State root<1> (activating) -> active
omniORB: Creating ref to local: root<1>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/DataAvailableConsumer:1.0
omniORB: Creating Python ref to local: root<1>
 target id      : IDL:BasicSP/DataAvailableConsumer:1.0
 most derived id: IDL:BasicSP/DataAvailableConsumer:1.0
omniORB: ObjRef(IDL:BasicSP/DataAvailableConsumer:1.0) -- deleted.
omniORB: sendChunk: to giop:tcp:166.17.242.101:35132 264 bytes
omniORB:
4749 4f50 0102 0100 fc00 0000 0a00 0000 GIOP............
0300 0000 0000 0000 2300 0000 1401 0f00 ........#.......
4e53 5444 e9e0 4230 d404 0001 0000 0001 NSTD..B0........
0000 0003 0000 0001 0000 0004 0000 0020 ...............
1900 0000 7375 6273 6372 6962 655f 6461 ....subscribe_da
7461 5f61 7661 696c 6162 6c65 0000 0000 ta_available....
0000 0000 4944 4c3a 2600 0000 4944 4c3a ....IDL:&...IDL:
4261 7369 6353 502f 4461 7461 4176 6169 BasicSP/DataAvai
6c61 626c 6543 6f6e 7375 6d65 723a 312e lableConsumer:1.
3000 0000 0100 0000 0000 0000 6800 0000 0...........h...
0101 0200 0f00 0000 3136 362e 3137 2e32 ........166.17.2
3432 2e31 3031 0000 4589 0000 0e00 0000 42.101..E.......
fe5a e9e0 4200 0036 3a00 0000 0001 0000 .Z..B..6:.......
0200 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                     ........
omniORB: inputMessage: from giop:tcp:166.17.242.101:35132 80 bytes
omniORB:
4749 4f50 0102 0101 4400 0000 0a00 0000 GIOP....D.......
0000 0000 0000 0000 02ff ff7f 2200 0000 ............"...
4944 4c3a 6f6d 672e 6f72 672f 436f 6d70 IDL:omg.org/Comp
6f6e 656e 7473 2f43 6f6f 6b69 653a 312e onents/Cookie:1.
3000 0000 0800 0000 0000 0000 0100 0000 0...............
omniORB: Create Python input value indirection tracker
omniORB: throw MARSHAL from pyValueType.cc:827 (YES,MARSHAL_NoValueFactory)
omniORB: Unexpected error encountered in talking to the server giop:tcp:166.17.242.101:35132 . The connection is closed immediately.
omniORB: Client connection refcount = 0
omniORB: Client close connection to giop:tcp:166.17.242.101:35132
omniORB: Delete Python input value indirection tracker
Traceback (most recent call last):
omniORB: AsyncInvoker: thread id = 3 has started. Total threads = 2
omniORB: Scavenger task execute.
  File "/home/jwalsh/projects/PythonToCIAO/BasicSP/python/pyBMClosedED.py", line 91, in ?
    main( sys.argv )
  File "/home/jwalsh/projects/PythonToCIAO/BasicSP/python/pyBMClosedED.py", line 83, in main
    cookie = bmdevice_obj.subscribe_data_available( dacFinal_o )
  File "/home/jwalsh/projects/PythonToCIAO/BasicSP/python/BMDevice_IDL2_idl.py", line 202, in subscribe_data_available
    return _omnipy.invoke(self, "subscribe_data_available", _0_BasicSP.BMDevice._d_subscribe_data_available, args)
omniORB.CORBA.MARSHAL: Minor: MARSHAL_NoValueFactory, COMPLETED_YES.
omniORB: ObjRef(IDL:BasicSP/ReadData:1.0) -- deleted.
omniORB: omniRemoteIdentity deleted.
omniORB: ObjRef(IDL:BasicSP/ReadData:1.0) -- deleted.
omniORB: omniRemoteIdentity deleted.
omniORB: ObjRef(IDL:BasicSP/BMDevice:1.0) -- deleted.
omniORB: ObjRef(IDL:BasicSP/DataAvailableConsumer:1.0) -- deleted.
omniORB: ORB not destroyed; no final clean-up.


More information about the omniORB-list mailing list