[Erp5-dev] ERROR : Missing input variable, thread_id

Kevin Deldycke kevin at nexedi.com
Mon May 30 15:21:54 CEST 2005


Hi,

I've got some stranges error with brand new ERP5 Products. It seems to be 
related to the Activity tool, but it's the first time I see this type of 
errors. Alex experienced the same problem 2 days ago.

Here are the tracebacks :

2005-05-30T12:17:52 INFO(0) WARNING ActivityTool Could not call method SubSync 
on object ('', 'erp5_client', 'portal_synchronizations')
Traceback (most recent call last):
  File "/var/lib/zope/Products/CMFActivity/ActivityTool.py", line 102, in 
__call__
    result = getattr(object, self.method_id)(*self.args, **self.kw)
  File "/var/lib/zope/Products/ERP5SyncML/SubscriptionSynchronization.py", 
line 98, in SubSync
    response = self.SubSyncModif(self.getSubscription(id),xml_client)
  File "/var/lib/zope/Products/ERP5SyncML/SubscriptionSynchronization.py", 
line 111, in SubSyncModif
    return self.SyncModif(subscription, xml_client)
  File "/var/lib/zope/Products/ERP5SyncML/XMLSyncUtils.py", line 1015, in 
SyncModif
    conduit=conduit, simulate=simulate)
  File "/var/lib/zope/Products/ERP5SyncML/XMLSyncUtils.py", line 780, in 
applyActionList
    object_id=object_id)
  File "/var/lib/zope/Products/ERP5SyncML/Conduit/ERP5Conduit.py", line 157, 
in addNode
    subobject = self.constructContent(object, object_id, docid, portal_type)
  File "/var/lib/zope/Products/ERP5SyncML/Conduit/BaobabConduit.py", line 185, 
in constructContent
    , id          = object_id)
  File "/var/lib/zope/Products/ERP5Type/Document/Folder.py", line 76, in 
newContent
    id=new_id,
  File "/usr/lib/zope/lib/python/Products/CMFCore/TypesTool.py", line 709, in 
constructContent
    ob = apply(info.constructInstance, (container, id) + args, kw)
  File "/var/lib/zope/Products/ERP5Type/ERP5Type.py", line 132, in 
constructInstance
    ob = FactoryTypeInformation.constructInstance(self, container, id, *args, 
**kw)
  File "/usr/lib/zope/lib/python/Products/CMFCore/TypesTool.py", line 398, in 
constructInstance
    id = apply( m, args, kw ) or id  # allow factory to munge ID
  File "/var/lib/zope/Products/ERP5Type/Utils.py", line 257, in __call__
    o.uid = folder.portal_catalog.newUid()
  File "/var/lib/zope/Products/ZSQLCatalog/ZSQLCatalog.py", line 596, in 
newUid
    return catalog.newUid()
  File "/var/lib/zope/Products/ZSQLCatalog/SQLCatalog.py", line 702, in newUid
    self.produceUid()
  File "/var/lib/zope/Products/ZSQLCatalog/SQLCatalog.py", line 676, in 
produceUid
    new_uid_list = method(count = UID_BUFFER_SIZE, instance_id=instance_id)
  File 
"/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/ZRDB/DA.py", 
line 441, in __call__
  File 
"/usr/lib/zope/./build/build-base/python-2.4/build-lib/DocumentTemplate/DT_String.py", 
line 474, in __call__
  File 
"/usr/lib/zope/./build/build-base/python-2.4/build-lib/DocumentTemplate/DT_In.py", 
line 703, in renderwob
  File "/var/lib/zope/Products/ERP5Type/ZopePatch.py", line 1746, in 
SQLVar_render
    raise ValueError, 'Missing input variable, <em>%s</em>' % name
ValueError: Missing input variable, <em>thread_id</em>

-----

2005-05-30T12:17:55 INFO(0) WARNING ActivityTool Could not call method 
immediateReindexObject on object ('', 'erp5_client', 'organisation', 
'K00776')
Traceback (most recent call last):
  File "/var/lib/zope/Products/CMFActivity/ActivityTool.py", line 102, in 
__call__
    result = getattr(object, self.method_id)(*self.args, **self.kw)
  File "/var/lib/zope/Products/ERP5Type/Base.py", line 1642, in 
immediateReindexObject
    PortalContent.reindexObject(self, *args, **kw)
  File "/var/lib/zope/Products/ERP5Type/ZopePatch.py", line 1848, in 
reindexObject
    catalog.reindexObject(self, idxs=idxs, *args, **kw)
  File "/var/lib/zope/Products/ERP5Catalog/CatalogTool.py", line 395, in 
reindexObject
    self.catalog_object(object, url, idxs=idxs, 
sql_catalog_id=sql_catalog_id,**kw)
  File "/var/lib/zope/Products/ZSQLCatalog/ZSQLCatalog.py", line 625, in 
catalog_object
    catalog.catalogObject(obj, url, is_object_moved=is_object_moved) # support 
obj, not uid
  File "/var/lib/zope/Products/ZSQLCatalog/SQLCatalog.py", line 963, in 
catalogObject
    index = self.newUid()
  File "/var/lib/zope/Products/ZSQLCatalog/SQLCatalog.py", line 702, in newUid
    self.produceUid()
  File "/var/lib/zope/Products/ZSQLCatalog/SQLCatalog.py", line 676, in 
produceUid
    new_uid_list = method(count = UID_BUFFER_SIZE, instance_id=instance_id)
  File 
"/usr/lib/zope/./build/build-base/python-2.4/build-lib/Shared/DC/ZRDB/DA.py", 
line 441, in __call__
  File 
"/usr/lib/zope/./build/build-base/python-2.4/build-lib/DocumentTemplate/DT_String.py", 
line 474, in __call__
  File 
"/usr/lib/zope/./build/build-base/python-2.4/build-lib/DocumentTemplate/DT_In.py", 
line 703, in renderwob
  File "/var/lib/zope/Products/ERP5Type/ZopePatch.py", line 1746, in 
SQLVar_render
    raise ValueError, 'Missing input variable, <em>%s</em>' % name
ValueError: Missing input variable, <em>thread_id</em>

-- 

  Kev.



More information about the Erp5-dev mailing list