John Nevius
2014-06-25 21:34:34 UTC
This is omniORBpy-4.2.0, Python 2.7 (Python 2.7 (r27:82525), Win-32
I'm hitting an odd message on a section of my program that loops through
the contents of a series of tables.
A code segment follows, as well as the full Python error:
nvTable = nv.findElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_TABLE)
nvTableInternalName=nvTable.getSnapshot()[2]
tableSettings = nvTable.getSnapshot()[0]
while nvTable:
tablename =
tableSettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_TABLE_NAME)[0]
tablenum =
tableSettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_TABLE_INDEX)[0]
print "NV Table # ",tablenum
if tablenum.startswith('1') and len(tablenum) ==7:
if tablenum[1:] not in RATE_CENTERS:
RATE_CENTERS[tablenum[1:]]=[]
print
print "*****Table %s
%s****************"%(tablenum,tablename)
nvEntry =
nvTable.findElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_ENTRY)
while nvEntry:
nvEntrySettings = nvEntry.getSnapshot()[0]
nvEntryInternalName = nvEntry.getSnapshot()[2]
entryname =
nvEntrySettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_ENTRY_NAME)[0]
entryindex =
nvEntrySettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_ENTRY_INDEX)[0]
if len(entryindex) == 6:
print entryindex,entryname
nvEntry.destroy()
nvEntry =
nvTable.findNextElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_ENTRY,nvEntryInternalName)
nvTable.destroy()
nvTable =
rps.findNextElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_TABLE,nvTableInternalName)
tableSettings = nvTable.getSnapshot()[0]
nvTableInternalName = nvTable.getSnapshot()[2]
Traceback (most recent call last):
File "corba_test6.py", line 94, in <module>
entryname =
nvEntrySettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_ENTRY_NAME)[0]
File "C:\Working\Saddleback
Communications\CORBA\SettingsUserInterface_idl.py", line 381, in
getFieldAsStringByName
return self._obj.invoke("getFieldAsStringByName",
_0__GlobalIDL.SettingsUserInterface._d_getFieldAsStringByName, args)
omniORB.CORBA.OBJECT_NOT_EXIST:
CORBA.OBJECT_NOT_EXIST(omniORB.OBJECT_NOT_EXIST_IncarnateFailed,
CORBA.COMPLETED_NO)
This error is thrown after approximately 400 passes through the loop, but
the exact spot where the program barfs is not constant
Help is most appreciated !
John N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140625/d0d24691/attachment.html>
I'm hitting an odd message on a section of my program that loops through
the contents of a series of tables.
A code segment follows, as well as the full Python error:
nvTable = nv.findElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_TABLE)
nvTableInternalName=nvTable.getSnapshot()[2]
tableSettings = nvTable.getSnapshot()[0]
while nvTable:
tablename =
tableSettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_TABLE_NAME)[0]
tablenum =
tableSettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_TABLE_INDEX)[0]
print "NV Table # ",tablenum
if tablenum.startswith('1') and len(tablenum) ==7:
if tablenum[1:] not in RATE_CENTERS:
RATE_CENTERS[tablenum[1:]]=[]
print "*****Table %s
%s****************"%(tablenum,tablename)
nvEntry =
nvTable.findElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_ENTRY)
while nvEntry:
nvEntrySettings = nvEntry.getSnapshot()[0]
nvEntryInternalName = nvEntry.getSnapshot()[2]
entryname =
nvEntrySettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_ENTRY_NAME)[0]
entryindex =
nvEntrySettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_ENTRY_INDEX)[0]
if len(entryindex) == 6:
print entryindex,entryname
nvEntry.destroy()
nvEntry =
nvTable.findNextElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_ENTRY,nvEntryInternalName)
nvTable.destroy()
nvTable =
rps.findNextElement(_GlobalIDL.omlapi.O_NUMBER_VALIDATION_TABLE,nvTableInternalName)
tableSettings = nvTable.getSnapshot()[0]
nvTableInternalName = nvTable.getSnapshot()[2]
Traceback (most recent call last):
File "corba_test6.py", line 94, in <module>
entryname =
nvEntrySettings.getFieldAsStringByName(_GlobalIDL.omlapi.F_NUMBER_VALIDATION_ENTRY_NAME)[0]
File "C:\Working\Saddleback
Communications\CORBA\SettingsUserInterface_idl.py", line 381, in
getFieldAsStringByName
return self._obj.invoke("getFieldAsStringByName",
_0__GlobalIDL.SettingsUserInterface._d_getFieldAsStringByName, args)
omniORB.CORBA.OBJECT_NOT_EXIST:
CORBA.OBJECT_NOT_EXIST(omniORB.OBJECT_NOT_EXIST_IncarnateFailed,
CORBA.COMPLETED_NO)
This error is thrown after approximately 400 passes through the loop, but
the exact spot where the program barfs is not constant
Help is most appreciated !
John N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140625/d0d24691/attachment.html>