[omniORB] Valuetype factory issue omniiORBpy

Jonathan Walsh jwalsh at atl.lmco.com
Thu Jul 21 17:17:07 BST 2005


Duncan Grisby wrote:

>On Thursday 30 June, Jonathan Walsh wrote:
>
>  
>
>>The code I am writing is in python and calling a function from servant
>>object running on a different ORB.  I am receiving the exception
>>"omniORB.CORBA.MARSHAL: Minor: MARSHAL_NoValueFactory, COMPLETED_YES."
>>when I make the call "cookie = bmdevice_obj.subscribe_data_available(
>>dacFinal_o )"  the function is called on a regular CORBA object, it
>>returns a valuetype Component.Cookie and takes a valuetype
>>BasicSP.DataAvailableConsumer as a parameter.  I have the following
>>value factories registered with the orb:
>>   orb.register_value_factory( CORBA.id( Components.Cookie ),
>>Components.Cookie )
>>   orb.register_value_factory( CORBA.id( BasicSP.DataAvailableConsumer ),
>>                                BMClosedEDImpl.DataAvailableConsumer_i )
>>
>>I attempted to model my value factory registration from the example
>>contained in the distribution, however I am unsure if I need to
>>specifically implement a value factory object somewhere.  Thank you in
>>advance for any help with this issue.
>>    
>>
>
>Sorry for the delay in replying to this. 
>
No worries, thanks for replying. 

>Please run your code with
>-ORBtraceLevel 40 and post the results.
>
>Cheers,
>
>Duncan.
>
>  
>
I attached the output I get when running with that switch on.  I hope
this helps to see what the problem is...  Thanks again for looking at it!

-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:34832
omniORB: Creating ref to remote: key<....NST...Bn.......................>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/BMDevice:1.0
omniORB: Creating Python ref to remote: key<....NST...Bn.......................> 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<....NST...Bn.......................>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:BasicSP/BMDisplay:1.0
omniORB: Creating Python ref to remote: key<....NST...Bn.......................> 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<....NST...Bn.......................>
omniORB: Client attempt to connect to giop:tcp:brielle:34817
omniORB: Client opened connection to giop:tcp:166.17.242.101:34817
omniORB: sendChunk: to giop:tcp:166.17.242.101:34817 59 bytes
omniORB:
4749 4f50 0102 0103 2f00 0000 0200 0000 GIOP..../.......
0000 300a 2300 0000 1401 0f00 4e53 545f ..0.#.......NST_
01e0 426e dc03 0001 0000 0001 0000 0003 ..Bn............
0000 0001 0000 0004 0000 00             ...........
omniORB: inputMessage: from giop:tcp:166.17.242.101:34817 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:34817 112 bytes
omniORB:
4749 4f50 0102 0100 6400 0000 0400 0000 GIOP....d.......
0300 0000 0000 0000 2300 0000 1401 0f00 ........#.......
4e53 545f 01e0 426e dc03 0001 0000 0001 NST_..Bn........
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:34817 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 0188 0000 3d00 0000 1401 0f00 lle.....=.......
4e55 545f 01e0 42b6 dd03 0002 0000 0001 NUT_..B.........
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 0171 1a06 0100 0100 .........q......
0000 0000 0901 0100 0000 0000           ............
omniORB: Creating Python ref to remote: key<....NUT...B....................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 -1218561952
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<....NST...Bn.......................>
omniORB: sendChunk: to giop:tcp:166.17.242.101:34817 59 bytes
omniORB:
4749 4f50 0102 0103 2f00 0000 0600 0000 GIOP..../.......
0000 0000 2300 0000 1401 0f00 4e53 545f ....#.......NST_
01e0 426e dc03 0001 0000 0001 0000 0001 ..Bn............
0000 0001 0000 0002 0000 00             ...........
omniORB: inputMessage: from giop:tcp:166.17.242.101:34817 20 bytes
omniORB:
4749 4f50 0102 0104 0800 0000 0600 0000 GIOP............
0100 0000                               ....
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.= ........
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 1088 0000 0e00 0000 feaf 01e0 01..............
4200 0032 f000 0000 0000 0000 0200 0000 B..2............
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: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.
omniORB: throw UNKNOWN from pyCallDescriptor.cc:233 (NO,UNKNOWN_UserException)
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 61, in main
    bmdisplay_obj.connect_comp_data( rdFinal_o )
  File "/home/jwalsh/projects/PythonToCIAO/BasicSP/python/BMDisplay_IDL2_idl.py", line 199, in connect_comp_data
    return _omnipy.invoke(self, "connect_comp_data", _0_BasicSP.BMDisplay._d_connect_comp_data, args)
omniORB.CORBA.UNKNOWN: Minor: UNKNOWN_UserException, COMPLETED_NO.
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/BMDisplay:1.0) -- deleted.
omniORB: omniRemoteIdentity deleted.
omniORB: ObjRef(IDL:BasicSP/BMDevice:1.0) -- deleted.
omniORB: ORB not destroyed; no final clean-up.


More information about the omniORB-list mailing list