Discussion:
[Erp5-dev] ERROR : Missing input variable, thread_id
Kevin Deldycke
2005-05-30 13:21:54 UTC
Permalink
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.
Yoshinori Okuji
2005-05-30 15:50:50 UTC
Permalink
Post by Kevin Deldycke
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>
You are using an older z_produce_reserved_uid_list. You must recreate catalog
methods as I described before.

YO
--
Yoshinori Okuji, Nexedi Research Director
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Free / Open Source ERP Software for small and medium companies
http://www.erp5.org
Storever: OpenBrick, WiFi infrastructure, notebooks and servers
http://www.storever.com
Loading...